ksikka commited on
Commit
fadaef3
·
1 Parent(s): fcdfcd3

commit dataset card

Browse files
Files changed (1) hide show
  1. README.md +109 -0
README.md ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ task_categories:
3
+ - keypoint-detection
4
+ license: cc-by-4.0
5
+ tags:
6
+ - biology
7
+ - pose-estimation
8
+ - multiview
9
+ - fly
10
+ - lightning-pose
11
+ pretty_name: Fly Anipose (Lightning Pose subset)
12
+ size_categories:
13
+ - 1K<n<10K
14
+ ---
15
+
16
+ # Fly Anipose — Lightning Pose Multiview Dataset
17
+
18
+ 6-camera pose estimation dataset for *Drosophila* leg keypoints, packaged for use with [Lightning Pose](https://github.com/danbider/lightning-pose).
19
+
20
+ ## Dataset Description
21
+
22
+ Head-fixed flies run on a spherical treadmill while 6 synchronized cameras capture locomotion at **300 Hz**. Each frame is labeled with **30 keypoints** — 5 joint segments (A–E) on each of 6 legs (left legs L1–L3, right legs R1–R3).
23
+
24
+ Labels are **filtered Anipose predictions**, not hand-labeled frames. They were constructed by:
25
+ 1. Removing instances with mean 3D reprojection error > 10 px
26
+ 2. Running k-means on 3D poses and keeping 25 instances per session
27
+ 3. Using filtered 2D predictions; setting keypoints with 2D reprojection error > 10 px to NaN
28
+
29
+ Source data: Karashchuk et al., *Cell Reports* 2021 — original archive at https://doi.org/10.5061/dryad.nzs7h44s4
30
+
31
+ ## Data Splits
32
+
33
+ | Split | Labeled instances | Sessions |
34
+ |-------|----------------:|--------:|
35
+ | In-distribution (InD) | 377 | 16 |
36
+ | Out-of-distribution (OOD) | 300 | 12 |
37
+
38
+ InD and OOD sets contain **different animals/sessions** (no overlap).
39
+
40
+ - `CollectedData_Cam-{A-F}.csv` — InD labels; `videos/` — InD videos
41
+ - `CollectedData_Cam-{A-F}_new.csv` — OOD labels; `videos_new/` — OOD videos
42
+
43
+ ## Keypoints
44
+
45
+ 30 keypoints total: side (`L`/`R`) + leg number (`1`–`3`) + segment (`A`–`E`, proximal→distal).
46
+
47
+ | Left legs | Right legs |
48
+ |-----------|------------|
49
+ | L1A, L1B, L1C, L1D, L1E | R1A, R1B, R1C, R1D, R1E |
50
+ | L2A, L2B, L2C, L2D, L2E | R2A, R2B, R2C, R2D, R2E |
51
+ | L3A, L3B, L3C, L3D, L3E | R3A, R3B, R3C, R3D, R3E |
52
+
53
+ ## Directory Structure
54
+
55
+ ```
56
+ fly_anipose_subset/
57
+ ├── labeled-data/ # Extracted frames per session×view; includes ±2 context frames
58
+ ├── videos/ # Full InD session videos (<SessionKey>_<View>.mp4)
59
+ ├── calibrations/ # Per-session camera calibration (.toml) for 3D features
60
+ ├── calibrations.csv # InD calibration index
61
+ ├── calibrations_new.csv # OOD calibration index
62
+ ├── CollectedData_Cam-{A-F}.csv # InD 2D keypoint labels (x,y per keypoint)
63
+ ├── CollectedData_Cam-{A-F}_new.csv # OOD 2D keypoint labels
64
+ ├── config_fly-anipose.yaml # Sample Lightning Pose training config
65
+ ├── project.yaml # View and keypoint definitions (required by LP App)
66
+ └── models/ # Pre-trained model checkpoints
67
+ ├── baseline/
68
+ ├── seed1/
69
+ ├── seed2/
70
+ └── pleasant_ensemble/
71
+ ```
72
+
73
+ See the Lightning Pose documentation for full details on the [multiview data directory structure](https://lightning-pose.readthedocs.io/en/latest/source/directory_structure_reference/multiview_structure.html) and [model directory structure](https://lightning-pose.readthedocs.io/en/latest/source/directory_structure_reference/model_dir_structure.html).
74
+
75
+ ## Usage with Lightning Pose
76
+
77
+ The included `config_fly-anipose.yaml` is a ready-to-use training config. Key settings:
78
+
79
+ - **Image resize:** 256 × 256
80
+ - **Backbone:** `resnet50_animal_ap10k`
81
+ - **Views:** Cam-A through Cam-F
82
+ - **Keypoints:** 30
83
+
84
+ Update `data.data_dir` and `data.video_dir` to absolute paths on your machine before training.
85
+
86
+ ```bash
87
+ python scripts/train_hydra.py --config-path /path/to/fly_anipose_subset \
88
+ --config-name config_fly-anipose
89
+ ```
90
+
91
+ ## Citation
92
+
93
+ If you use this dataset, please cite the original Anipose paper:
94
+
95
+ ```bibtex
96
+ @article{karashchuk2021anipose,
97
+ title = {Anipose: A toolkit for robust markerless 3D pose estimation},
98
+ author = {Karashchuk, Pierre and Rupp, Katie L and Dickinson, Evyn S and
99
+ Walling-Bell, Sarah and Sanders, Elisha and Azim, Eiman and
100
+ Brunton, Bingni W and Tuthill, John C},
101
+ journal = {Cell Reports},
102
+ volume = {36},
103
+ number = {13},
104
+ year = {2021},
105
+ doi = {10.1016/j.celrep.2021.109730}
106
+ }
107
+ ```
108
+
109
+ Original data archive: https://doi.org/10.5061/dryad.nzs7h44s4