ソースを参照

added 2 SLEAP datasets: flies13 and bees

niksirbi 2 週間 前
親
コミット
bbfc14772c

+ 31 - 1
README.md

@@ -32,10 +32,40 @@ The `locusts-noqr_n-5_date-20250117_frame-bg.png` file constitutes the max proje
 ### IBL-paw dataset
 These data come from IBL Brainwide maps data release [3] and are licensed under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). The specific CSV files shared here (`EKS_IBL-paw_multicam_left.predictions.csv` and `EKS_IBL-paw_multicam_right.predictions.csv`) were generated using the Ensemble Kalman Smoother (EKS) on the multi-camera IBL-paw files that are distributed as part of the EKS repository https://github.com/paninski-lab/eks.
 
+### SLEAP datasets
+
+This repository contains portions of the [datasets](https://docs.sleap.ai/latest/reference/datasets/)
+originally acquired for [Pereira et al. (2022)](https://www.nature.com/articles/s41592-022-01426-1) [4]
+and distributed with the [SLEAP software](https://sleap.ai/).
+These datasets are available under the same license as the SLEAP codebase, 
+[BSD-3-Clause](https://github.com/talmolab/sleap#BSD-3-Clause-Clear-1-ov-file),
+and have been copied [with permission](https://github.com/talmolab/sleap/discussions/2906#discussioncomment-19503747).
+A copy of the original license is included here as `SLEAP_datasets_license.md`.
+
+| Poses file | Video file | Source SLEAP dataset | Credit |
+| --- | --- | --- | --- |
+| `SLEAP_two-bees.predictions.slp` | `two-bees_SLEAP_video.mp4` | bees | Grace McKenzie-Smith, Z. Yan Wang, Joshua Shaevitz, Sarah Kocher |
+| `SLEAP_two-flies.predictions.slp` | `two-flies_SLEAP_video.mp4` | flies13 | Junyu Li, Shruthi Ravindranath, Talmo Pereira, Mala Murthy |
+
+Each poses file is a copy of the “Tracking (.slp)” file from the corresponding source SLEAP dataset. Each video file was derived from the “Clip (.mp4)” file of the same dataset and transcoded using the following command:
+
+```bash
+ffmpeg -y -i source.mp4 \
+  -vf "setpts=(PTS-STARTPTS)/4" -r 100 -an \
+  -c:v libx264 -pix_fmt yuv420p -preset superfast -crf 23 \
+  -g 25 transcoded.mp4
+```
+
+This command sets the output frame rate to 100 fps (in agreement with the datasets' metadata),
+removes audio, and re-encodes the video as H.264 with a keyframe interval of 25 frames.
+The re-encoding can reduce file size, while the frequent keyframes support seeking.
+
 ## References
 
 1. Lamdouar, H., Yang, C., Xie, W., & Zisserman, A. (2020). "Betrayed by motion: Camouflaged object discovery via motion segmentation". In _Proceedings of the Asian Conference on Computer Vision_. [doi: 10.48550/arXiv.2011.11630](https://doi.org/10.48550/arXiv.2011.11630)
 
 2. Albi, Angela; Walter, Tristan; Carlesso, Daniele, 2025, "Example videos for multi-object tracking", [doi: 10.17617/3.7F5MGE](https://doi.org/10.17617/3.7F5MGE), Edmond, V1
 
-3. Laboratory, International Brain (2022). Data release - Brainwide map - Q4 2022. figshare. Preprint. [doi: 10.6084/m9.figshare.21400815.v6](https://doi.org/10.6084/m9.figshare.21400815.v6)
+3. Laboratory, International Brain (2022). Data release - Brainwide map - Q4 2022. figshare. Preprint. [doi: 10.6084/m9.figshare.21400815.v6](https://doi.org/10.6084/m9.figshare.21400815.v6)
+
+4. Pereira, T.D., Tabris, N., Matsliah, A. et al. SLEAP: A deep learning system for multi-animal pose tracking. Nat Methods 19, 486-495 (2022). [doi.org/10.1038/s41592-022-01426-1](https://doi.org/10.1038/s41592-022-01426-1) 

+ 32 - 0
SLEAP_datasets_license.md

@@ -0,0 +1,32 @@
+The Clear BSD License
+
+Copyright (c) [2019-2025] [Talmo Pereira and The Trustees of Princeton University]
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted (subject to the limitations in the disclaimer
+below) provided that the following conditions are met:
+
+     * Redistributions of source code must retain the above copyright notice,
+     this list of conditions and the following disclaimer.
+
+     * Redistributions in binary form must reproduce the above copyright
+     notice, this list of conditions and the following disclaimer in the
+     documentation and/or other materials provided with the distribution.
+
+     * Neither the name of the copyright holder nor the names of its
+     contributors may be used to endorse or promote products derived from this
+     software without specific prior written permission.
+
+NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY
+THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
+CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
+CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
+BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.

BIN
frames/two-bees_SLEAP_frame-0.png


BIN
frames/two-flies_SLEAP_frame-0.png


+ 40 - 0
metadata.yaml

@@ -417,6 +417,46 @@ SLEAP_two-mice_social-interaction.predictions.slp:
     sha256sum: null
   note: The tracks have not been fully corrected, there may be more tracks than mice.
     This file does NOT correspond to the .h5 file with the same prefix.
+SLEAP_two-bees.predictions.slp:
+  sha256sum: 63d96e13b4a7d9a37584175b6e0e996d3d28766760820a94830e8a881b436c58
+  source_software: SLEAP
+  type: poses
+  fps: 100
+  species: bumblebee
+  number_of_individuals: 2
+  shared_by:
+    name: Grace McKenzie-Smith, Z. Yan Wang, Joshua Shaevitz, Sarah Kocher
+    affiliation: See https://doi.org/10.1038/s41592-022-01426-1
+  frame:
+    file_name: two-bees_SLEAP_frame-0.png
+    sha256sum: e84deeb3007e0c5426fec26d228e47ff8a301f280508c71cf8d5ac8579103203
+  video:
+    file_name: two-bees_SLEAP_video.mp4
+    sha256sum: 5f74a09a94b78d8348c6f9d96a82164f0b745d304ca48ed443a19380eed53dad
+  note: This is a copy of the "Tracking (.slp)" file from the "bees" dataset distributed
+    by SLEAP. The associated video is a transcoded copy of the "Clip (.mp4)" file
+    from the same dataset. See https://docs.sleap.ai/latest/reference/datasets/#bees
+    for more information.
+SLEAP_two-flies.predictions.slp:
+  sha256sum: 7256ac029c2d5f22f334ff06b32a988117c29527f79e7a02f2d05382a800cd16
+  source_software: SLEAP
+  type: poses
+  fps: 100
+  species: fruit fly
+  number_of_individuals: 2
+  shared_by:
+    name: Junyu Li, Shruthi Ravindranath, Talmo Pereira, Mala Murthy
+    affiliation: See https://doi.org/10.1038/s41592-022-01426-1
+  frame:
+    file_name: two-flies_SLEAP_frame-0.png
+    sha256sum: 77843edc92210844684e92fb9b7c5685758f47d5375c18f7e647d3299dc4b82a
+  video:
+    file_name: two-flies_SLEAP_video.mp4
+    sha256sum: 8d66d65baaa0f8d883c9d37c7880123d74a9eeabc013acfcfc321df617220e0d
+  note: This is a copy of the "Tracking (.slp)" file from the "flies" dataset distributed
+    by SLEAP. The associated video is a transcoded copy of the "Clip (.mp4)" file
+    from the same dataset. See https://docs.sleap.ai/latest/reference/datasets/#flies13
+    for more information.
 VIA_multiple-crabs_5-frames_labels.csv:
   sha256sum: 98de641c2577b210263ea85b02a0c7bf17d144ed9268730242a7d5869f86434b
   source_software: VIA-tracks

BIN
poses/SLEAP_two-bees.predictions.slp


BIN
poses/SLEAP_two-flies.predictions.slp


+ 1 - 0
videos/two-bees_SLEAP_video.mp4

@@ -0,0 +1 @@
+/annex/objects/MD5-s15636244--a333b70dee95b968fdae5e1054faf592

BIN
videos/two-flies_SLEAP_video.mp4