SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2609.03233 · September 2026

Counting Animals in Camera-Traps Image Sequences without Count Labels: Winning Solution to the iWildCam 2021 Challenge

Fagner Cunha, Juan G. Colonna, Eulanda M. dos Santos, Juan Colonna, Eulanda Dos Santos

arXiv · PDF · Open in the Atlas

Code that ran

5 of 10 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 2 failures of our instrument; 5 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2609.03233.json · badge: /api/ran/2609.03233.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
alcunha/iwildcam2021ufam canonical (classifier label)
classifier basis: census
5 ran · 5 no recorded run
FunctionStatusWhere it lives
format_instance_id Ran
ran; our contract draft was wrong, not the code
alcunha/iwildcam2021ufam/classification/filter_bbox.py
code served (permissive licence) · get_code("7822f210799e0cb5")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The function expects instance_ids to be a list of byte strings
# It decodes each one from utf-8 to string
instance_ids = [
    b"instance_001",
    b"instance_002"
]

ARGS = {
    "instance_ids": instance_ids
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
format_instance_id Ran
ran; our contract draft was wrong, not the code
alcunha/iwildcam2021ufam/classification/predict.py
code served (permissive licence) · get_code("90a7a7c793d77632")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

# The function expects instance_ids to be a list of byte strings
# It decodes each filename from bytes to utf-8 string and removes the last 4 characters (file extension)

ARGS = {
    "instance_ids": [
        b"example_instance_001.txt",
        b"another_instance_002.png",
        b"test_file_name_003.jpg"
    ]
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
lr_cosine_decay Ran
ran, honoured the contract we drafted
alcunha/iwildcam2021ufam/classification/lr_schedulers.py
code served (permissive licence) · get_code("f9ef3dfe8de0cabe")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned EagerTensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import math
import tensorflow as tf

ARGS = {
    "initial_learning_rate": 0.1,
    "current_step": 5,
    "decay_steps": 10,
    "alpha": 0.01
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
lr_linear_warmup Ran
ran, honoured the contract we drafted
alcunha/iwildcam2021ufam/classification/lr_schedulers.py
code served (permissive licence) · get_code("404fac58372a9aaf")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

ARGS = {
    "initial_learning_rate": 0.001,
    "current_step": 5,
    "warmup_steps": 10
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
mix_predictions Ran
ran, violated the contract we drafted
alcunha/iwildcam2021ufam/classification/eval_main.py
code served (permissive licence) · get_code("8e635a41c294cdd9")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned EagerTensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tensorflow as tf
import numpy as np

# Create small TensorFlow tensors for the function parameters
# The function expects:
# - cnn_preds: tensor of predictions from CNN
# - prior_preds: tensor of predictions from prior
# - valid: tensor of validity flags (will be expanded in the function)

batch_size = 2
feature_dim = 4

# CNN predictions: shape (batch_size, feature_dim)
cnn_preds = tf.constant(
    np.random.randn(batch_size, feature_dim).astype(np.float32)
)

# Prior predictions: shape (batch_size, feature_dim)
prior_preds = tf.constant(
    np.random.randn(batch_size, feature_dim).astype(np.float32)
)

# Valid flags: shape (batch_size,) - binary validity mask
valid = tf.constant(
    np.array([1.0, 0.0], dtype=np.float32)
)

ARGS = {
    "cnn_preds": cnn_preds,
    "prior_preds": prior_preds,
    "valid": valid,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
count_images_per_seq Not yet run
unverified (harvested, no recorded run)
alcunha/iwildcam2021ufam/classification/filter_bbox.py
code served (permissive licence) · get_code("3d9a63d08a3090ef")
How it ran

no invocation recorded.

predict_classifier Not yet run
unverified (harvested, no recorded run)
alcunha/iwildcam2021ufam/classification/eval_main.py
code served (permissive licence) · get_code("fcdfb3d3b9ae1e2e")
How it ran

no invocation recorded.

predict_classifier Not yet run
unverified (harvested, no recorded run)
alcunha/iwildcam2021ufam/classification/filter_bbox.py
code served (permissive licence) · get_code("ef9ea75251a3a797")
How it ran

no invocation recorded.

predict_classifier Not yet run
unverified (harvested, no recorded run)
alcunha/iwildcam2021ufam/classification/predict.py
code served (permissive licence) · get_code("a9079497f69c3044")
How it ran

no invocation recorded.

predict_w_geo_prior Not yet run
unverified (harvested, no recorded run)
alcunha/iwildcam2021ufam/classification/eval_main.py
code served (permissive licence) · get_code("f88c7a4d5c318ace")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 10 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Camera traps have become an essential tool for wildlife monitoring, motivating the development of computer vision methods for the automated extraction of information from these data. While most prior work has focused on species identification, many ecological applications also require estimating the number of unique individuals appearing across short image sequences. This task is particularly challenging because camera traps typically acquire bursts of images at approximately one frame per second, creating large temporal discontinuities that may make conventional multi-object tracking methods unreliable, and because manually collecting individual count annotations is prohibitively expensive. In this work, we describe the winning solution to the iWildCam 2021 Challenge, which introduced a benchmark for counting animals at the sequence level under realistic annotation constraints where count annotations are unavailable for training. Our approach, MaxBoxCount, combines a strong species classification pipeline with a simple yet effective counting heuristic based on MegaDetector detections to estimate the number of unique individuals without requiring count annotations. Code is available at https://github.com/alcunha/iwildcam2021ufam.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2609.03233")
get_code_for_paper("2609.03233")
have("2609.03233")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2609.03233.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2609.03233.svg)](https://syntology.ai/paper/2609.03233)

Connect an agent — have() is free.