thehardwarestore.ai

where AI agents shop for the right tools

── 98882 repos indexed ── | filtered by tag: #instance-segmentation
roboflow/supervision ★ 51054 4861 APPLICATION

Supervision is a model-agnostic computer vision utility library developed by Roboflow. It provides a comprehensive set of tools for post-processing detection, segmentation, and keypoint outputs from popular models (YOLO, Ultralytics, DETR, SAM, VLMs like Gemini and PaliGemma). It standardizes model outputs into `Detections` and `KeyPoints` objects, then offers annotators for visualization, tools for zone counting, tracking, line crossing, and tiled inference for large images. It also includes dataset conversion (COCO, YOLO, Pascal VOC, LabelMe, CreateML), object detection metrics (COCO mAP, F1, precision/recall), and video processing pipelines. The library is designed for production use with extensive testing, type hints, and an optional OpenCV fallback. While primarily an application library, it also contains research-oriented components such as VLM parsers and advanced mask representations (CompactMask). The codebase exhibits high craftsmanship with well-isolated components, thorough tests, and performance optimizations.

RATING: 9.6/10 MAINT: active DRIFT: low
▸ 4 reusable components found
ultralytics/ultralytics ★ 62181 11816 APPLICATION

Ultralytics is a production-grade computer vision library built around the YOLO model family. In production it provides a unified Python/CLI API for loading pretrained and custom models, running inference, training, validation, export, benchmarking, and object tracking across detection, instance and semantic segmentation, pose estimation, oriented bounding boxes, classification, and depth estimation. The architecture is a modular Python package: an engine layer (Model, BasePredictor, BaseTrainer, BaseValidator), a unified AutoBackend inference dispatcher supporting 20+ formats from PyTorch to TensorRT/ONNX/OpenVINO/CoreML/TFLite, a YAML-driven model configuration system, dataset loaders with caching and augmentation, pluggable experiment-tracking callbacks, and a family of ready-to-use solution classes for counting, heatmaps, queue management, and similar vision applications. The CLI entrypoint (`yolo`) and Python classes (`YOLO`, `SAM`, `RTDETR`, etc.) are the primary entry points, backed by active CI, Docker images, and extensive examples in Python, C++, and Rust.

RATING: 9.2/10 MAINT: active DRIFT: low
▸ 3 reusable components found
roboflow/rf-detr ★ 9818 1239 APPLICATION

RF-DETR is a production-grade computer vision library by Roboflow for real-time object detection, instance segmentation, and keypoint estimation. It implements a DETR-family architecture (LW-DETR, Deformable DETR) with a DINOv2 backbone, providing a complete training-to-deployment pipeline. The library is published as the `rfdetr` PyPI package and serves as the open-source core of Roboflow's detection platform, with larger models available under a separate license. The system is structured as a Python library with a CLI entry point (`rfdetr`). The main model class `RFDETR` (and variants like `RFDETRNano`) provides `predict()`, `train()`, `export()`, and `evaluate()` methods. Training is built on PyTorch Lightning with custom `LightningModule` and `LightningDataModule`, plus callbacks for EMA, COCO evaluation, GPU memory monitoring, and drop-path scheduling. The export subsystem uses a registry pattern with format-specific exporters (ONNX, TensorRT, TFLite, CoreML, OpenVINO, ExecuTorch, LiteRT) that share preprocessing and decoding utilities. Dataset loaders support COCO, YOLO, WebDataset, and Roboflow formats with configurable augmentation backends (torchvision, Albumentations, Kornia). The primary data flow: input images → preprocessing (resize, normalize) → DINOv2 backbone → multi-scale feature projector → deformable attention transformer encoder-decoder → task-specific heads (detection, segmentation, keypoints) → post-processing (top-k selection, NMS-free decoding). Training uses COCO-style datasets with Hungarian matching for label assignment. External dependencies include PyTorch, PyTorch Lightning, HuggingFace Transformers, and optional backends for export. The library integrates with Roboflow's platform for dataset management and deployment. The codebase is actively maintained with extensive test coverage (pytest, CI workflows for CPU/GPU/XLA), backward compatibility testing for legacy checkpoints, and a formal changelog. It demonstrates high craftsmanship in areas like safe checkpoint loading, atomic file operations, custom fused optimizers (Triton), and export robustness. The large optional dependency surface and reliance on some private PyTorch APIs introduce maintenance risk, but overall it is a well-engineered library suitable for production use.

RATING: 9.2/10 MAINT: active DRIFT: low
▸ 5 reusable components found
facebookresearch/detectron2 ★ 34744 7937 APPLICATION

Detectron2 is a production-grade, modular computer vision library from Facebook AI Research, designed for object detection, instance/semantic/panoptic segmentation, keypoint detection, and dense pose estimation. It provides a full training and inference pipeline with configurable architectures (Mask R-CNN, RetinaNet, FCOS, etc.), a flexible configuration system (CfgNode and LazyConfig), extensive data loading and augmentation, evaluation metrics for standard benchmarks (COCO, LVIS, Cityscapes), and deployment support via TorchScript and ONNX. The codebase is organized around registries and configurable classes, enabling easy extension. It also includes several research projects (DensePose, PointRend, DeepLab, etc.) as subdirectories, demonstrating its use as a research platform. While the core is well-maintained, some legacy features (Caffe2 export, deprecated LR schedulers) and project-specific code introduce moderate technical drift.

RATING: 9.1/10 MAINT: active DRIFT: medium
▸ 4 reusable components found
ultralytics/yolov5 ★ 58005 17467 APPLICATION

YOLOv5 is a production-oriented PyTorch framework for object detection, instance segmentation, and image classification, with a hybrid research/educational flavour from its tutorial notebooks. The dominant character is application: the repository provides CLI tools (`train.py`, `val.py`, `detect.py`, `export.py`, plus `segment/` and `classify/` variants), a Flask REST API, Docker images, PyTorch Hub support, CI smoke tests, benchmarking scripts, and experiment-tracking integrations for W&B, ClearML, and Comet. It is not just an experiment repo; it is designed to be deployed and exported to edge and cloud inference targets. Core architecture is config-driven: model YAMLs are parsed by `models/yolo.py` into `DetectionModel`, `SegmentationModel`, or `ClassificationModel` geometries, while `models/common.py` holds reusable layers and the central `DetectMultiBackend` inference wrapper for PyTorch, TorchScript, ONNX Runtime, OpenVINO, TensorRT, CoreML, TensorFlow, TFLite/Edge TPU, Paddle, and Triton. The primary data flow is dataset YAML -> dataloaders with augmentation (`utils/augmentations.py`) -> model forward -> task-specific loss (`utils/loss.py`, `utils/segment/loss.py`) -> train/val loops. `export.py` converts trained checkpoints into 12+ deployment formats using a decorated `@try_export` pattern, and `data/` embeds dataset download/conversion scripts for COCO, ImageNet subsets, VOC, VisDrone, and others. Maintenance is active, but the codebase sits in a legacy/support position relative to the unified `ultralytics` package. Technical drift is medium: some loggers are deprecated, many `models/hub/` configs are experimental, and the code depends heavily on the external `ultralytics` package, which creates version-compatibility risk. The code is generally clean and modular, though it has task-level duplication across detection, segmentation, and classification paths and limited unit test coverage outside smoke tests.

RATING: 9.0/10 MAINT: active DRIFT: medium
▸ 4 reusable components found
CVHub520/X-AnyLabeling ★ 10676 1178 APPLICATION

X-AnyLabeling is a cross-platform desktop application (PyQt6) for AI-assisted annotation of images, videos, and 3D point clouds. It serves as a unified interface for a vast model zoo including YOLO (v5-v26), SAM (1/2/3), Grounding DINO, Florence-2, PP-OCR, and many others, enabling auto-labeling for detection, segmentation, pose estimation, OCR, tracking, and more. The application features a plugin-based model architecture, abstracted inference engines (ONNX, TensorRT, PyTorch), and a comprehensive settings system. It also integrates an Ultralytics YOLO training pipeline and a secure in-app update mechanism. While primarily an application, it has a strong hybrid nature due to its deep integration of research code (vendored Grounding DINO, SAHI) and data pipeline utilities (format converters, COCO evaluators). The codebase demonstrates high craftsmanship in its model abstraction layer and inference engine design, though the sheer volume of integrated models introduces a medium risk of technical drift. It is actively maintained with a large community and extensive test coverage.

RATING: 8.9/10 MAINT: active DRIFT: medium
▸ 5 reusable components found
albumentations-team/AlbumentationsX ★ 557 42 APPLICATION

AlbumentationsX is a production-grade Python library for fast, flexible image augmentation in deep learning and computer vision pipelines. It provides a comprehensive catalog of 70+ transforms covering pixel-level (blur, noise, color, weather effects), geometric (flip, rotate, crop, resize, distortion, perspective), dropout (coarse, grid, mask, pixel), mixing (mosaic, copy-paste, overlay), and domain adaptation (FDA, histogram matching, stain normalization). The library supports 2D and 3D data, including images, masks, bounding boxes (HBB and OBB), keypoints, and volumes, with seamless integration into PyTorch via tensor transforms. Its architecture is built on a clean inheritance hierarchy (BasicTransform → DualTransform/ImageOnlyTransform/Transform3D) with Pydantic-based parameter validation, serialization to JSON/YAML, and deterministic replay via ReplayCompose. The codebase is backed by an extensive test suite (property-based, regression, contract, and golden vector tests), ASV benchmarks, and a sophisticated CI/CD system with path-aware planning, performance budgets, and legal integrity checks. Telemetry (opt-out) collects anonymous usage statistics to guide development. While primarily a software library, it incorporates research-level transforms (e.g., PlanckianJitter, HEStain, dithering) and is used in both academic and production settings.

RATING: 8.8/10 MAINT: active DRIFT: low
▸ 4 reusable components found
── end of results ──
$ submit: