File size: 2,923 Bytes
58c10d3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
---
license: cdla-permissive-1.0
task_categories:
  - image-classification
tags:
  - camera-trap
  - wildlife
  - serengeti
  - snapshot-safari
  - megadetector
pretty_name: Snapshot Safari SER Balanced  Classroom Subset v1.0
size_categories:
  - 1K<n<10K
---

# Snapshot Safari SER (Serengeti) — Balanced Classroom Subset v1.0

## Summary

A curated, balanced subset of the Snapshot Safari 2024 Expansion SER (Serengeti
National Park) camera trap dataset, prepared for use in the CAS Deep Learning —
Computer Vision course exercises.

| Archive | Images | Description |
|---------------------|-------:|-----------------------------------|
| `ser_balanced.tar.gz` | 1,850 | Balanced, ≤200/class, full frames |

## Source

- **Dataset:** Snapshot Safari 2024 Expansion — SER (Serengeti) subset
- **URL:** https://lila.science/datasets/snapshot-safari-2024-expansion/
- **License:** Community Data License Agreement — Permissive variant 1.0
- **Attribution:** Snapshot Safari / University of Minnesota Lion Center

## MegaDetector

Pre-computed MegaDetector v1000-redwood RDE-filtered results from LILA Science:
`snapshot-safari-2024-expansion-SER-subset-v1000.0.0-redwood_detections.threshold.filtered.json.zip`

Used to filter frames (conf ≥ 0.8) and select the best frame per sequence.

## Species

buffalo, elephant, empty, gazellegrants, gazellethomsons, hartebeest, impala,
warthog, wildebeestblue, zebraplains

## Statistics

| Class           | Train | Val | Test | Total |
|-----------------|------:|----:|-----:|------:|
| buffalo         |   140 |  30 |   30 |   200 |
| elephant        |   140 |  30 |   30 |   200 |
| empty           |    35 |   8 |    7 |    50 |
| gazellegrants   |   140 |  30 |   30 |   200 |
| gazellethomsons |   140 |  30 |   30 |   200 |
| hartebeest      |   140 |  30 |   30 |   200 |
| impala          |   140 |  30 |   30 |   200 |
| warthog         |   140 |  30 |   30 |   200 |
| wildebeestblue  |   140 |  30 |   30 |   200 |
| zebraplains     |   140 |  30 |   30 |   200 |
| **Total**       |  1295 | 278 |  277 |  1850 |

**Note:** ~56% of images are IR/night (near-infrared, nearly greyscale).

## Curation Details

- **Deduplication:** one image per sequence (highest MD animal confidence frame)
- **Animal filter:** MD animal confidence ≥ 0.8
- **Empty filter:** max MD animal confidence < 0.2
- **Split strategy:** stratified 70/15/15 by sequence ID — no sequence spans splits
- **Image resolution:** resized to max 1024 px on longer side, JPEG quality 92
- **Format:** ImageFolder layout — `<split>/<label>/<filename>.jpg`

## Usage

```python
from huggingface_hub import hf_hub_download
import tarfile

archive = hf_hub_download(
    "marco-willi/ser_balanced",
    "ser_balanced.tar.gz",
    repo_type="dataset",
)
with tarfile.open(archive) as tar:
    tar.extractall(DATA_PATH)
# → DATA_PATH/ser/ser_balanced/{train,val,test}/<label>/*.jpg
```