fastdup

visual-layer活跃维护

快速扫描图像和视频数据集,找出重复、相似和异常样本,帮助清洗数据、提升标签质量并降低数据运维成本。

fastdup is a powerful, free tool designed to rapidly generate valuable insights from image and video datasets. It helps enhance the quality of both images and labels, while significantly reducing data operation costs, all with unmatched scalability.

v2.2_3.8发布于 2024-06-14 09:05 UTC1,915star95fork同步于 2026-11-07 07:33 UTC

怎么上手

由 README 提炼,执行前请确认
pip install fastdup
import fastdup
fd = fastdup.create(input_dir="IMAGE_FOLDER/")
fd.run()
硬件要求按 README 说明

README 未说明显存或 GPU 要求,强调优化 C++ 引擎可在低资源 CPU 机器上运行,单 CPU 机器可处理 4 亿张图;支持 macOS、Linux 和 Windows(WSL2)。

纯 CPU 可运行
下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

本地分析图像视频数据集,快速找出重复、离群和错标样本

快速扫描图像和视频数据集,找出重复、相似和异常样本,帮助清洗数据、提升标签质量并降低数据运维成本。

核心能力

  • 检测重复与近重复图片,默认相似度阈值 0.96
  • 一键 remove_duplicates 直接从磁盘删除重复图
  • 识别离群图、错标、损坏图和模糊过暗过亮图
  • 提供重复、离群、相似、统计等多种可视化画廊
  • 优化 C++ 引擎,单台 CPU 机器可处理 4 亿张图

容易踩的坑

remove_duplicates 默认会直接删除磁盘文件,建议先用 dry_run=True 预览;相似度阈值由 distance 参数控制,默认 0.96,调低会删得更多;Windows 需通过 WSL2 运行。

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

5 个版本v2.2_3.8
  1. v2.2_3.7Centos 7.0.9 Stable release2024-06-14 · 2024-06-14 09:05 UTC
    查看更新说明

    Current

  2. v2.2_3.8Centos 7.0.9 Stable release最新正式版2024-06-14 · 2024-06-14 09:05 UTC

    Current

  3. v1.119Ubuntu 182024-04-04 · 2024-04-04 03:50 UTC
    查看更新说明

    fastdup1.119

  4. v1.65_3.7Centos 7.0.9 Stable release2023-11-03 · 2023-11-03 08:26 UTC
    查看更新说明

    Current

  5. v1.65_3.8Centos 7.0.9 Stable release2023-11-03 · 2023-11-03 08:26 UTC
    查看更新说明

    Current

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    PyPi PyPi PyPi Contributors License OS

    Getting Started

    pip install fastdup from PyPI:

    pip install fastdup
    

    More installation options are available here.

    Initialize and run fastdup:

    import fastdup
    
    fd = fastdup.create(input_dir="IMAGE_FOLDER/")
    fd.run()
    

    Remove duplicates from your dataset in a single call:

    import fastdup
    fastdup.remove_duplicates("IMAGE_FOLDER/")
    

    This finds and deletes duplicate images (similarity > 0.96 by default) directly from disk. Use dry_run=True to preview which files would be removed before deleting, and adjust the distance parameter to control the similarity threshold.

    run

    Visualize the results in a static gallery:

    fd.vis.duplicates_gallery()    # gallery of duplicates
    fd.vis.outliers_gallery()      # gallery of outliers
    fd.vis.component_gallery()     # gallery of connected components
    fd.vis.stats_gallery()         # gallery of image statistics (e.g. blur, brightness, etc.)
    fd.vis.similarity_gallery()    # gallery of similar images
    

    Check this quickstart tutorial for more info

    https://github.com/user-attachments/assets/738a329d-8063-4515-a961-f2527934a0ca

    Features & Advantages

    fastdup handles labeled/unlabeled datasets in image or video format, providing a range of features:

    What sets fastdup apart from other similar tools:

    • Quality: High-quality analysis to identify duplicates/near-duplicates, outliers, mislabels, broken images, and low-quality images.
    • Scale: Highly scalable, capable of processing 400M images on a single CPU machine. Scales up to billions of images.
    • Speed: Optimized C++ engine enables high performance even on low-resource CPU machines.
    • Privacy: Runs locally or on your cloud infrastructure. Your data stays where it is.
    • Ease of use: Works on labeled or unlabeled datasets in image or video format with support for major operating systems like MacOS, Linux and Windows.

    Learn from Examples

    Learn the basics of fastdup through interactive examples. View the notebooks on GitHub or nbviewer. Even better, run them on Google Colab or Kaggle, for free.

    See more examples.

    Join the Community

    Get help from the fastdup team or community members via the following channels:

    Community-contributed blog posts on fastdup:

    What our users say:

    feedback

    feedback2

    Visual Layer Cloud

    Visual Layer offers commercial services for managing, cleaning, and curating visual data at scale.

    Sign-up for free.

    https://github.com/visual-layer/fastdup/assets/6821286/57f13d77-0ac4-4c74-8031-07fae87c5b00

    Not convinced? Interact with Visual Layer Cloud public dataset with no sign-up required.

    Disclaimer

    We have added an experimental crash report collection using Sentry.

    We DO NOT collect user-specific information such as folder names, user names, image names, image content, etc. We do collect data related to fastdup's internal operations and performance statistics such as total number of images, average runtime per image, total free memory, total free disk space, number of cores, etc.

    This help us identify and resolve stability issues, thereby improving the overall reliability of fastdup. The code for the data collection is found here. On MAC we use Google crashpad to report crashes.

    Users have the option to opt out of the experimental crash reporting system through one of the following methods:

    • Define an environment variable called SENTRY_OPT_OUT
    • or run() with turi_param='run_sentry=0'

    License

    fastdup is licensed under Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International Public License.

    For any more information or inquiries regarding the license, please contact us at [email protected] or see the LICENSE file.