mmdetection VS segment-anything

Compare mmdetection vs segment-anything and see what are their differences.

segment-anything

The repository provides code for running inference with the SegmentAnything Model (SAM), links for downloading the trained model checkpoints, and example notebooks that show how to use the model. (by facebookresearch)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
mmdetection segment-anything
23 56
27,742 44,026
2.3% 3.2%
8.7 4.2
10 days ago 11 days ago
Python Jupyter Notebook
Apache License 2.0 Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

mmdetection

Posts with mentions or reviews of mmdetection. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-04-12.
  • Semantic segementation
    2 projects | /r/computervision | 12 Apr 2023
    When I look for benchmarks I always start here https://paperswithcode.com/task/instance-segmentation/codeless it has the lists of datasets to measure models accross lots o papers. Many are very specific models with low support or community but it gives you a good idea of ​​the state of the art. It also lists repositories related to good community. https://github.com/open-mmlab/mmdetection seems very active and the one that is being used the most, you could use the models that it has integrated in its model zoo, within the same repository. It has the benchmarks to compare those same models and some of them are from 2022
  • How to Convert Model Mask into Polygon and save JSON?
    1 project | /r/deeplearning | 18 Jan 2023
    MODEL: https://github.com/open-mmlab/mmdetection
  • Object Detection Model for Custom Dataset Training?
    1 project | /r/learnmachinelearning | 11 Jan 2023
    Would it make sense to work with OpenMMLab (https://github.com/open-mmlab/mmdetection) or Pytorch-image-models (https://github.com/rwightman/pytorch-image-models#models) since they offer a variety of models?
  • [P] Image search with localization and open-vocabulary reranking.
    8 projects | /r/MachineLearning | 15 Dec 2022
    I wanted to have a few choices getting localization into image search (index and search time). I immediately thought of using a region proposal network (rpn) from mask-rcnn to create patches that can also be indexed and searched (and add the localisation). I figured it might be somewhat agnostic to classes. I did not want to use mmdetection or detectron2 due to their dependencies and just getting the rpn was not worth it. I was encouraged by the PyTorch native implementations of detection/segmentation models but ended up finding yolox the best.
  • MMDeploy: Deploy All the Algorithms of OpenMMLab
    22 projects | /r/u_Allent_pjlab | 21 Nov 2022
    MMDetection: OpenMMLab detection toolbox and benchmark.
  • Removing the bounding box generated by OnnxRuntime segmentation
    2 projects | /r/computervision | 4 Nov 2022
    I have a semantic segmentation model trained using the mmdetection repo. Then it is converted to the ONNX format using the mmdeploy repo.
  • Keras vs Tensorflow vs Pytorch for a Final year Project
    2 projects | /r/tensorflow | 10 Oct 2022
    E.g. If you consider it an object detection problem it is: detect and localise all the pedestrians in a frame, and classify them by their (intended) action. IMO the easiest way to do this would be with mmdetection, which is built on top of pytorch. Just label your dataset, build a config, and boom you have a model. Inference with that model in only a few lines of code, you won't really need to learn too much to get started.
  • DeepSort with PyTorch(support yolo series)
    13 projects | /r/u_No_Experience9104 | 20 Sep 2022
    MMDetection
  • [D] Pre-trained networks and batch normalization
    1 project | /r/MachineLearning | 15 Sep 2022
    For example, in mmdetection, they expose options in their config & implementation to freeze batch norm layers in backbones and in this config, norm_eval is set to True meaning to freeze tracking of batch norm stats, while the ResNet backbone is frozen up to the 1st stage. Example of their backbone implementation can be found here.
  • Config files in plain Python
    3 projects | /r/Python | 25 Aug 2022
    MMDetection uses config Python scripting. It's easier to define nn.Module objects other than writing class name in a json config file

segment-anything

Posts with mentions or reviews of segment-anything. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-28.
  • What things are happening in ML that we can't hear oer the din of LLMs?
    3 projects | news.ycombinator.com | 28 Mar 2024
    - segment anything: https://github.com/facebookresearch/segment-anything
  • Zero-Shot Prediction Plugin for FiftyOne
    6 projects | dev.to | 13 Mar 2024
    In computer vision, this is known as zero-shot learning, or zero-shot prediction, because the goal is to generate predictions without explicitly being given any example predictions to learn from. With the advent of high quality multimodal models like CLIP and foundation models like Segment Anything, it is now possible to generate remarkably good zero-shot predictions for a variety of computer vision tasks, including:
  • Generate new version of a living-room with specific furniture
    2 projects | /r/StableDiffusion | 25 Oct 2023
    Render a new living room using a controlnet model of your choice to keep the basic structure. Load the original living room image and look for the furniture you want to change with a Segment Anything Model to create a mask. Use that mask on the new living room to inpaint new furniture.
  • How Do I read Github Pages? It is so exhausting, I always struggle, oh and I am on windows
    1 project | /r/github | 2 Oct 2023
    Hello,So I am trying to run some programs, python scripts from this page: https://github.com/facebookresearch/segment-anything, and found myself spending hours without succeeding in even understanding what's is written on that page. And I think this is ultimately related to programming.
  • Autodistill: A new way to create CV models
    6 projects | /r/developersIndia | 30 Sep 2023
    Some of the foundation/base models include: * GroundedSAM (Segment Anything Model) * DETIC * GroundingDINO
  • How to Fine-Tune Foundation Models to Auto-Label Training Data
    2 projects | news.ycombinator.com | 29 Sep 2023
    Webinar from last week on how to fine-tune VFMs, specifically Meta's Segment Anything Model (SAM).

    What you'll need to follow along the fine-tuning walkthrough:

    Images, ground-truth masks, and optionally, prompts from the Stamp Verification (StaVer) Dataset on Kaggle (https://www.kaggle.com/datasets/rtatman/stamp-verification-s...)

    Download the model weights for SAM the official GitHub repo (https://github.com/facebookresearch/segment-anything)

    Good understanding of the model architecture Segment Anything paper (https://ai.meta.com/research/publications/segment-anything/)

    GPU infra the NVIDIA A100 should do for this fine-tuning.

    Data curation and model evaluation tool Encord Active (https://github.com/encord-team/encord-active)

    Colab walkthrough for fine-tuning: https://colab.research.google.com/github/encord-team/encord-...

    I'd love to get your thoughts and feedback. Thank you.

  • Deploying a ML model (segment-anything) to GCP - how would you do it?
    1 project | /r/googlecloud | 31 Aug 2023
    I now want users to be able to use the segment-anything model (https://github.com/facebookresearch/segment-anything) in my app. It's in pytorch if that matters. How it should work is that
  • The Mathematics of Training LLMs
    3 projects | news.ycombinator.com | 16 Aug 2023
    Yeah, they are great and some of the reason (up the causal chain) for some of the work I've done! Seems really fun! <3 :))))

    Facebook's Segment Anything Model I think has a lot of potentially really fun usecases. Plaintext description -> Network segmentation (https://github.com/facebookresearch/segment-anything/blob/ma...) Not sure if that's what you're looking for or not, but I love that impressing your kids is where your heart is. That kind of parenting makes me very, very, very, happy. :') <3

  • How hard is it to "code" a tool based on segment-anything and Stable diffusion ?
    3 projects | /r/StableDiffusion | 13 Jul 2023
    There are some snippets of Python code on the segment-anything github readme that show how to do this. Once you have it installed you can import functions from the segment-anything module, load a segmentation model, and generate masks for input images that match the prompt of your choice. You don't need Stable Diffusion for this, but you could load it through diffusers to do things like inpaint your images using the masks.
  • The less i know the better
    2 projects | /r/StableDiffusion | 23 Jun 2023

What are some alternatives?

When comparing mmdetection and segment-anything you can also consider the following projects:

detectron2 - Detectron2 is a platform for object detection, segmentation and other visual recognition tasks.

Segment-Everything-Everywhere-All-At-Once - [NeurIPS 2023] Official implementation of the paper "Segment Everything Everywhere All at Once"

yolov5 - YOLOv5 πŸš€ in PyTorch > ONNX > CoreML > TFLite

backgroundremover - Background Remover lets you Remove Background from images and video using AI with a simple command line interface that is free and open source.

pytorch-lightning - Build high-performance AI models with PyTorch Lightning (organized PyTorch). Deploy models with Lightning Apps (organized Python to build end-to-end ML systems). [Moved to: https://github.com/Lightning-AI/lightning]

ComfyUI-extension-tutorials

PaddleDetection - Object Detection toolkit based on PaddlePaddle. It supports object detection, instance segmentation, multiple object tracking and real-time multi-person keypoint detection.

stable-diffusion-webui-Layer-Divider - Layer-Divider, an extension for stable-diffusion-webui using the segment-anything model (SAM)

mmdetection3d - OpenMMLab's next-generation platform for general 3D object detection.

Grounded-Segment-Anything - Grounded-SAM: Marrying Grounding-DINO with Segment Anything & Stable Diffusion & Recognize Anything - Automatically Detect , Segment and Generate Anything

sahi - Framework agnostic sliced/tiled inference + interactive ui + error analysis plots

GroundingDINO - Official implementation of the paper "Grounding DINO: Marrying DINO with Grounded Pre-Training for Open-Set Object Detection"