Run this model with HF Jobs

Run martintomov/InsectSAM on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/martintomov/InsectSAM. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/martintomov/InsectSAM on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

InsectSAM: Insect Segmentation and Monitoring

rb-ibdm-banner

Overview

InsectSAM is a fine-tuned version of Meta AI's segment-anything model, optimized for insect segmentation and monitoring in the Netherlands. Designed for use with the DIOPSIS camera systems, algorithms and datasets, it enhances the accuracy of insect biodiversity segmentation from complex backgrounds.

Purpose

Trained to segment insects against diverse backgrounds, InsectSAM adapts to changing environments, ensuring its long-term utility for the DIOPSIS datasets.

Model Architecture

Built on the segment-anything architecture, InsectSAM is fine-tuned on an insect-specific dataset and integrated with GroundingDINO for improved detail recognition.

Quick Start

Prerequisites

  • Python
  • Hugging Face Transformers
  • PyTorch

Usage

Install

!pip install --upgrade -q git+https://github.com/huggingface/transformers
!pip install torch

Load model via πŸ€— Transformers

from transformers import AutoProcessor, AutoModelForMaskGeneration

processor = AutoProcessor.from_pretrained("martintomov/InsectSAM")
model = AutoModelForMaskGeneration.from_pretrained("martintomov/InsectSAM")

Notebooks

Explore InsectSAM's capabilities and integration with GroundingDINO through three Jupyter notebooks available on the RB-IBDM GitHub page:

GitHub: https://github.com/martintmv-git/RB-IBDM/tree/main/InsectSAM

Downloads last month
33
Safetensors
Model size
93.7M params
Tensor type
F32
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Spaces using martintomov/InsectSAM 3