Mindket

GeCo2 Object Counting

Newversion 1 · updated

Overview

Counts all instances of an object in an image after you mark a few examples, with no retraining or fixed list of classes. Suits researchers and anyone counting items in photos.

GeCo2 Object Counting is a kit in the Research category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.

At a glance

You need
  • Python 3.10.13 with pip on Windows, macOS or Linux
  • The Hugging Face hub client, which the first step installs
  • The packages listed in requirements.txt
Runs in
  • A browser: open the Space's page on Hugging Face, with nothing to install
  • A copy on Windows, macOS or Linux, using Python 3.10.13
Start with
pip install -U huggingface_hub
hf download jerpelhan/GECO2-demo --repo-type space --local-dir GECO2-demo
cd GECO2-demo

Platform

WindowsOperating system
macOSOperating system
LinuxOperating system

About

What it is

GeCo2 counts objects in a picture. You mark a few examples of the thing you care about, and it finds and counts every matching instance in the image. It needs no fixed list of object classes and no retraining. This Space is a Gradio demo of the GeCo2 model, and it is based on an earlier counting demo called CountGD.

Who it suits

It suits researchers working on few-shot counting, and people who need to count unusual objects where labelled data is scarce.

IndustryWho uses itHow they use itExample
Retail and stockInventory staffCount items shown in a photoMark one box on a shelf and count the rest
AgricultureGrowers and agronomistsCount plants or fruit in an imageMark two fruits and count the others in the tree photo
Lab workTechniciansCount small objects when no trained counter existsMark a few samples and count all similar ones in a picture
ResearchComputer vision researchersTry few-shot counting on new object typesCompare counts from different example choices

Skip it if you want a counter that needs no examples, since this one asks you to mark a few.

Where to use it

  • A browser: open the Space's page on Hugging Face, with nothing to install
  • A copy on Windows, macOS or Linux, using Python 3.10.13
Use caseWhoWhat they get back
Counting objects in a photoAnyone with a pictureAll matching instances found and counted
Exploring a new categoryResearchersA quick count without training a new model
Reading the codeDevelopersA repository with SAM 2 and Deformable-DETR folders

How to set it up

The online copy needs nothing. For a copy on your own computer, you need the following.

  • Python 3.10.13 with pip on Windows, macOS or Linux
  • The Hugging Face hub client, which the first step installs
  • The packages listed in requirements.txt
  1. Install the Hugging Face hub client.
  2. Download the Space's files into a local folder.
  3. Move into that folder.
  4. Install the Gradio version the Space pins.
  5. Install the remaining packages from requirements.txt.
  6. Start demo_gradio.py.
pip install -U huggingface_hub
hf download jerpelhan/GECO2-demo --repo-type space --local-dir GECO2-demo
cd GECO2-demo
pip install gradio==5.50.0
pip install -r requirements.txt
python demo_gradio.py

How to use it

Upload an image, then mark a few examples of the object you want counted. GeCo2 spreads that idea across the picture and counts the matches. The source does not describe the exact controls, so follow the labels on the page.

python demo_gradio.py

Example

You upload a photo of a bowl of oranges and mark two or three of them as examples. The Space returns the photo with the matching oranges detected, so you can read off how many there are. The source gives no accuracy figures.

For newcomers and experts

If you are new, pick a picture with many similar objects in clear view and mark two or three clean examples. Add one more example if the first count looks wrong.

If you know the field, GeCo2 detects and counts by learning the target from a handful of exemplars, with no fixed class list, then applying it over the whole image. The Space names four SAM 2 Hiera sizes, from tiny to large, and runs on zero-a10g hardware. The paper's claims on scale variation and varied domains are the author's own.

  1. You upload an image
  2. You mark a few example objects
  3. GeCo2 spreads the concept over the image
  4. Matching objects are detected and counted

Good to know

The source is a demo page, so speed and accuracy limits are not described.

  • License: mit, as listed on Hugging Face
  • Cost to run: no API key or paid service is named, and the online copy runs on zero-a10g hardware at Hugging Face
  • Data it reaches: the pictures you upload, which the online Space handles on Hugging Face's servers, plus an assets dataset the Space names
  • Not for: the source lists no exclusions, so use only pictures you have the right to use

README and files

README

GeCo2 Object Counting

Counts all instances of an object in an image after you mark a few examples, with no retraining or fixed list of classes. Suits researchers and anyone counting items in photos.

Made by jerpelhan on Hugging Face. These notes are Mindket's, written from its Space page and README; the app's own files and license are on Hugging Face.

About

What it is: GeCo2 counts objects in a picture. You mark a few examples of the thing you care about, and it finds and counts every matching instance in the image. It needs no fixed list of object classes and no retraining. This Space is a Gradio demo of the GeCo2 model, and it is based on an earlier counting demo called CountGD.

Who it suits: It suits researchers working on few-shot counting, and people who need to count unusual objects where labelled data is scarce.

Industry | Who uses it | How they use it | Example
Retail and stock | Inventory staff | Count items shown in a photo | Mark one box on a shelf and count the rest
Agriculture | Growers and agronomists | Count plants or fruit in an image | Mark two fruits and count the others in the tree photo
Lab work | Technicians | Count small objects when no trained counter exists | Mark a few samples and count all similar ones in a picture
Research | Computer vision researchers | Try few-shot counting on new object types | Compare counts from different example choices

Skip it if you want a counter that needs no examples, since this one asks you to mark a few.

Where to use it:

  • A browser: open the Space's page on Hugging Face, with nothing to install
  • A copy on Windows, macOS or Linux, using Python 3.10.13
Use case | Who | What they get back
Counting objects in a photo | Anyone with a picture | All matching instances found and counted
Exploring a new category | Researchers | A quick count without training a new model
Reading the code | Developers | A repository with SAM 2 and Deformable-DETR folders

How to set it up: The online copy needs nothing. For a copy on your own computer, you need the following.

  • Python 3.10.13 with pip on Windows, macOS or Linux
  • The Hugging Face hub client, which the first step installs
  • The packages listed in requirements.txt
  1. Install the Hugging Face hub client.
  2. Download the Space's files into a local folder.
  3. Move into that folder.
  4. Install the Gradio version the Space pins.
  5. Install the remaining packages from requirements.txt.
  6. Start demo_gradio.py.
pip install -U huggingface_hub
hf download jerpelhan/GECO2-demo --repo-type space --local-dir GECO2-demo
cd GECO2-demo
pip install gradio==5.50.0
pip install -r requirements.txt
python demo_gradio.py

How to use it: Upload an image, then mark a few examples of the object you want counted. GeCo2 spreads that idea across the picture and counts the matches. The source does not describe the exact controls, so follow the labels on the page.

python demo_gradio.py

Example: You upload a photo of a bowl of oranges and mark two or three of them as examples. The Space returns the photo with the matching oranges detected, so you can read off how many there are. The source gives no accuracy figures.

For newcomers and experts: If you are new, pick a picture with many similar objects in clear view and mark two or three clean examples. Add one more example if the first count looks wrong.

If you know the field, GeCo2 detects and counts by learning the target from a handful of exemplars, with no fixed class list, then applying it over the whole image. The Space names four SAM 2 Hiera sizes, from tiny to large, and runs on zero-a10g hardware. The paper's claims on scale variation and varied domains are the author's own.

You upload an image
You mark a few example objects
GeCo2 spreads the concept over the image
Matching objects are detected and counted

Good to know: The source is a demo page, so speed and accuracy limits are not described.

  • License: mit, as listed on Hugging Face
  • Cost to run: no API key or paid service is named, and the online copy runs on zero-a10g hardware at Hugging Face
  • Data it reaches: the pictures you upload, which the online Space handles on Hugging Face's servers, plus an assets dataset the Space names
  • Not for: the source lists no exclusions, so use only pictures you have the right to use

On Hugging Face, 13 November 2026

  • Likes: 11
  • Built with: gradio
  • License: mit

Links

Try it

Open the Space in your browser, or copy it to your own Hugging Face account from its page. Nothing in this kit runs by itself.

Files
README.md  5 KB

1 file, 5 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-12

Compare with similar

Listed Hugging Face Spaces in the same category that share the most tags with this one.

ProductLikesBuilt withLicenseLast change
GeCo2 Object Counting This page11gradiomit
Open VLM LeaderboardShares gradio1,034gradioapache-2.0
Face SwapShares gradio808gradiocc-by-nc-sa-4.0
TTS Spaces ArenaShares gradio493gradiozlib
Depth Anything 3Shares gradio490gradiocc-by-nc-4.0
BLIPShares gradio431gradiobsd-3-clause
Numbers as Mindket last read them, from 2026-11-12 to 2026-11-13.

Reviews

No ratings yet

Write a review

No reviews yet.

More from Mindket

See all from Mindket

Huashu Design

alchaincyf · Skill

Turns a one-line request in your AI agent into a finished design: a launch animation, a clickable app prototype, an editable slide deck, an infographic or a se…

New29.4k

Guizang PPT Skill

op7418 · Skill

Skill that makes single-file HTML slide decks, slide illustrations and platform covers in two visual styles, with a presenter mode for rehearsal. For speakers…

New29.8k

Claude Code Skills & Plugins

alirezarezvani · Skill

Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…

New29.8k

Similar in Research

See all in Research

EarthJev

dBenf · Kit

Answers typed questions about satellite image patches from all 12 Sentinel-2 bands, returning a probability for each option without writing text. A Qwen3.5-0.8…

New

getting-over-it-rl-jax

zimmerk4 · Kit

Plays the full game Getting Over It from the bottom to the end with a small trained policy network that learned inside a JAX physics simulator. For reinforceme…

New

ReFoCo

yuji-nozawa · Kit

Pretrained vision transformer checkpoints in three sizes from a research paper on training attention heads to focus on image regions. For researchers who extra…

New