Datasets:
upload labels and configs
Browse files- CollectedData.csv +0 -0
- CollectedData_test.csv +0 -0
- README.md +93 -0
- config_marmoset3k.yaml +98 -0
- project.yaml +19 -0
CollectedData.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
CollectedData_test.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
README.md
CHANGED
|
@@ -1,3 +1,96 @@
|
|
| 1 |
---
|
|
|
|
|
|
|
| 2 |
license: cc-by-4.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
task_categories:
|
| 3 |
+
- keypoint-detection
|
| 4 |
license: cc-by-4.0
|
| 5 |
+
tags:
|
| 6 |
+
- biology
|
| 7 |
+
- pose-estimation
|
| 8 |
+
- marmoset
|
| 9 |
+
- primate
|
| 10 |
+
- lightning-pose
|
| 11 |
+
pretty_name: Marmoset3k
|
| 12 |
+
size_categories:
|
| 13 |
+
- 1K<n<10K
|
| 14 |
---
|
| 15 |
+
|
| 16 |
+
# Marmoset3k — Lightning Pose Single-View Dataset
|
| 17 |
+
|
| 18 |
+
Top-down pose estimation dataset for common marmosets (*Callithrix jacchus*), packaged for use with [Lightning Pose](https://github.com/paninski-lab/lightning-pose).
|
| 19 |
+
|
| 20 |
+
## Dataset Description
|
| 21 |
+
|
| 22 |
+
Marmosets were recorded from a top-down camera in two configurations: alone (single) and in pairs. For pair sessions, individual animals are tracked — each labeled frame contains one focal animal cropped from a scene with two marmosets. **16 full-body keypoints** are labeled per animal.
|
| 23 |
+
|
| 24 |
+
Source data: original archive at https://zenodo.org/records/14672425.
|
| 25 |
+
|
| 26 |
+
## Data Splits
|
| 27 |
+
|
| 28 |
+
| Split | Labeled frames | Sessions |
|
| 29 |
+
|-------|---------------:|---------:|
|
| 30 |
+
| In-distribution (InD) | 3,920 | 4 (2 pair, 2 single) |
|
| 31 |
+
| Out-of-distribution (OOD) | 824 | 2 (1 pair, 1 single) |
|
| 32 |
+
|
| 33 |
+
InD and OOD sessions contain **different animals**.
|
| 34 |
+
|
| 35 |
+
- `CollectedData.csv` — InD labels; `videos/` — InD videos
|
| 36 |
+
- `CollectedData_test.csv` — OOD labels
|
| 37 |
+
|
| 38 |
+
## Keypoints
|
| 39 |
+
|
| 40 |
+
16 full-body keypoints.
|
| 41 |
+
|
| 42 |
+
| Region | Keypoints |
|
| 43 |
+
|--------|-----------|
|
| 44 |
+
| Head | head, leftear, rightear |
|
| 45 |
+
| Torso | neck, spinemid |
|
| 46 |
+
| Forelimbs | leftelbow, rightelbow, lefthand, righthand |
|
| 47 |
+
| Hindlimbs | leftknee, rightknee, leftfoot, rightfoot |
|
| 48 |
+
| Tail | tailbase, tailmid, tailend |
|
| 49 |
+
|
| 50 |
+
## Directory Structure
|
| 51 |
+
|
| 52 |
+
```
|
| 53 |
+
marmoset3k/
|
| 54 |
+
├── labeled-data/ # Extracted frames per session; includes ±2 context frames
|
| 55 |
+
├── videos/ # InD session video clips
|
| 56 |
+
├── CollectedData.csv # InD 2D keypoint labels (x,y per keypoint)
|
| 57 |
+
├── CollectedData_test.csv # OOD 2D keypoint labels
|
| 58 |
+
├── config_marmoset3k.yaml # Sample Lightning Pose training config
|
| 59 |
+
└── project.yaml # View and keypoint definitions (required by LP App)
|
| 60 |
+
```
|
| 61 |
+
|
| 62 |
+
See the Lightning Pose documentation for full details on the [single-view data directory structure](https://lightning-pose.readthedocs.io/en/latest/source/directory_structure_reference/singleview_structure.html).
|
| 63 |
+
|
| 64 |
+
## Usage with Lightning Pose
|
| 65 |
+
|
| 66 |
+
The included `config_marmoset3k.yaml` is a ready-to-use training config. Key settings:
|
| 67 |
+
|
| 68 |
+
- **Image resize:** 256 × 256
|
| 69 |
+
- **Backbone:** `resnet50_animal_ap10k`
|
| 70 |
+
- **Keypoints:** 16
|
| 71 |
+
|
| 72 |
+
Update `data.data_dir` to an absolute path on your machine before training.
|
| 73 |
+
|
| 74 |
+
```bash
|
| 75 |
+
litpose train config_marmoset3k.yaml
|
| 76 |
+
```
|
| 77 |
+
|
| 78 |
+
## Citation
|
| 79 |
+
|
| 80 |
+
If you use this dataset, please cite:
|
| 81 |
+
|
| 82 |
+
```bibtex
|
| 83 |
+
@article{cheng2025real,
|
| 84 |
+
title = {A real-time, multi-subject three-dimensional pose tracking system
|
| 85 |
+
for the behavioral analysis of non-human primates},
|
| 86 |
+
author = {Cheng, Chaoqun and Huang, Zijian and Zhang, Ruiming and Huang, Guozheng
|
| 87 |
+
and Wang, Han and Tang, Likai and Wang, Xiaoqin},
|
| 88 |
+
journal = {Cell Reports Methods},
|
| 89 |
+
volume = {5},
|
| 90 |
+
number = {2},
|
| 91 |
+
year = {2025},
|
| 92 |
+
publisher = {Elsevier}
|
| 93 |
+
}
|
| 94 |
+
```
|
| 95 |
+
|
| 96 |
+
Original data archive: https://zenodo.org/records/14672425.
|
config_marmoset3k.yaml
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
data:
|
| 2 |
+
image_resize_dims:
|
| 3 |
+
height: 256
|
| 4 |
+
width: 256
|
| 5 |
+
data_dir: ${LP_ROOT_PATH:}/data/mirror-mouse-fused
|
| 6 |
+
video_dir: ${data.data_dir}/videos
|
| 7 |
+
csv_file: CollectedData.csv
|
| 8 |
+
num_keypoints: 16
|
| 9 |
+
keypoint_names:
|
| 10 |
+
- head
|
| 11 |
+
- leftear
|
| 12 |
+
- rightear
|
| 13 |
+
- neck
|
| 14 |
+
- leftelbow
|
| 15 |
+
- rightelbow
|
| 16 |
+
- lefthand
|
| 17 |
+
- righthand
|
| 18 |
+
- spinemid
|
| 19 |
+
- tailbase
|
| 20 |
+
- leftknee
|
| 21 |
+
- rightknee
|
| 22 |
+
- leftfoot
|
| 23 |
+
- rightfoot
|
| 24 |
+
- tailmid
|
| 25 |
+
- tailend
|
| 26 |
+
columns_for_singleview_pca: null
|
| 27 |
+
|
| 28 |
+
training:
|
| 29 |
+
imgaug: dlc-top-down
|
| 30 |
+
train_batch_size: 8
|
| 31 |
+
val_batch_size: 32
|
| 32 |
+
test_batch_size: 32
|
| 33 |
+
train_prob: 0.95
|
| 34 |
+
val_prob: 0.05
|
| 35 |
+
train_frames: 1
|
| 36 |
+
num_gpus: 1
|
| 37 |
+
unfreezing_epoch: 20
|
| 38 |
+
min_epochs: 400
|
| 39 |
+
max_epochs: 400
|
| 40 |
+
log_every_n_steps: 10
|
| 41 |
+
check_val_every_n_epoch: 5
|
| 42 |
+
rng_seed_data_pt: 0
|
| 43 |
+
rng_seed_model_pt: 0
|
| 44 |
+
optimizer: Adam
|
| 45 |
+
optimizer_params:
|
| 46 |
+
learning_rate: 1e-3
|
| 47 |
+
lr_scheduler: multisteplr
|
| 48 |
+
lr_scheduler_params:
|
| 49 |
+
multisteplr:
|
| 50 |
+
milestones: [150, 200, 250]
|
| 51 |
+
gamma: 0.5
|
| 52 |
+
uniform_heatmaps_for_nan_keypoints: true
|
| 53 |
+
|
| 54 |
+
model:
|
| 55 |
+
losses_to_use: []
|
| 56 |
+
backbone: resnet50_animal_ap10k
|
| 57 |
+
model_type: heatmap
|
| 58 |
+
heatmap_loss_type: mse
|
| 59 |
+
model_name: test_model
|
| 60 |
+
|
| 61 |
+
dali:
|
| 62 |
+
general:
|
| 63 |
+
seed: 123456
|
| 64 |
+
base:
|
| 65 |
+
train:
|
| 66 |
+
sequence_length: 32
|
| 67 |
+
predict:
|
| 68 |
+
sequence_length: 64
|
| 69 |
+
context:
|
| 70 |
+
train:
|
| 71 |
+
batch_size: 16
|
| 72 |
+
predict:
|
| 73 |
+
sequence_length: 64
|
| 74 |
+
|
| 75 |
+
losses:
|
| 76 |
+
pca_singleview:
|
| 77 |
+
log_weight: 10.7
|
| 78 |
+
components_to_keep: 0.99
|
| 79 |
+
epsilon: null
|
| 80 |
+
temporal:
|
| 81 |
+
log_weight: 10.7
|
| 82 |
+
epsilon: 10.0
|
| 83 |
+
prob_threshold: 0.05
|
| 84 |
+
|
| 85 |
+
eval:
|
| 86 |
+
predict_vids_after_training: false
|
| 87 |
+
save_vids_after_training: false
|
| 88 |
+
test_videos_directory: ${data.video_dir}
|
| 89 |
+
confidence_thresh_for_vid: 0.90
|
| 90 |
+
|
| 91 |
+
callbacks:
|
| 92 |
+
anneal_weight:
|
| 93 |
+
attr_name: total_unsupervised_importance
|
| 94 |
+
init_val: 0.0
|
| 95 |
+
increase_factor: 0.01
|
| 96 |
+
final_val: 1.0
|
| 97 |
+
freeze_until_epoch: 60
|
| 98 |
+
|
project.yaml
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
keypoint_names:
|
| 2 |
+
- head
|
| 3 |
+
- leftear
|
| 4 |
+
- rightear
|
| 5 |
+
- neck
|
| 6 |
+
- leftelbow
|
| 7 |
+
- rightelbow
|
| 8 |
+
- lefthand
|
| 9 |
+
- righthand
|
| 10 |
+
- spinemid
|
| 11 |
+
- tailbase
|
| 12 |
+
- leftknee
|
| 13 |
+
- rightknee
|
| 14 |
+
- leftfoot
|
| 15 |
+
- rightfoot
|
| 16 |
+
- tailmid
|
| 17 |
+
- tailend
|
| 18 |
+
schema_version: 1
|
| 19 |
+
view_names: []
|