Commit f3a141c
Update example for converting DLC project to benchmark (v2) (#49)
* Add tree utility for displaying directory structures
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Add frames_to_poseinterface and fix predictions output suffix
Add frames_to_poseinterface utility to copy and rename frame images
according to filenames in a COCO JSON file. Also fix the output
filename of predictions_to_poseinterface to use _cliplabels.json
suffix matching the naming convention.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Add lightweight DLC project fixture for testing and examples
Adds a minimal DLC project under tests/data/dlc/ with 2 sessions,
each containing a small (100 frames) video, placeholder PNGs, and
annotation/prediction CSVs.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Add convert_dlc_to_benchmark sphinx-gallery example
Replace SWC-plusmaze_to_benchmark example with a new end-to-end
example showing how to convert a DLC project to the poseinterface
benchmark dataset format. Update sphinx-gallery config to execute
examples, add API entries for new functions, and add jupyter and
matplotlib dependencies.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Pin movement>=0.16.0 and update supported Python versions to 3.12-3.14
* updated conversion example
* add workflow image to the conversion example
* add API reference entry for `predictions_to_poseinterface`
* Fix predictions_to_poseinterface kwargs in example after rebase
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* fix typo
* Rename frames_to_poseinterface params to input_dir/output_dir
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* temporarily try on real data and add provenance
* switch back to using small fixture in example
* remove duplicate prediction_to_interface entry in API index
* Apply suggestions about frames_to_poseinterface
Co-authored-by: Chang Huan Lo <changhuanlo@yahoo.com>
* Apply suggestions about tree
Co-authored-by: Chang Huan Lo <changhuanlo@yahoo.com>
* Apply suggestions about simplifying tests for tree
Co-authored-by: Chang Huan Lo <changhuanlo@yahoo.com>
* Fix missing warnings import and add test for partial frame match
Add `import warnings` to io.py (needed after review suggestion
introduced `warnings.warn`), update error message match in existing
test, and add a new test for the partial-match warning path.
Includes minor formatting fixes from ruff-format.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Apply suggestions about gallery example
Co-authored-by: Chang Huan Lo <changhuanlo@yahoo.com>
* add myst target for folder structure
* Suppress spurious cell output in provenance example cell
The write_text() return value (byte count) was rendered as cell
output by sphinx-gallery. Use capture_repr = () to suppress it.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Enable always_use_bars_union for modern union type rendering
Renders `Path | str` instead of `Union[Path, str]` in API docs.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* replace image placeholders with real images
* add custom example thumbnail
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Chang Huan Lo <changhuanlo@yahoo.com>1 parent 2e72f28 commit f3a141c
24 files changed
Lines changed: 968 additions & 139 deletions
File tree
- docs/source
- _static
- examples
- poseinterface
- tests
- data/dlc/MouseTopDown-Loukia-2022-09-13
- labeled-data
- M708154_EPM_20200317_185651629-converted
- M727755_EPM_20200317_170544999-converted
- videos
- test_unit
Loading
Loading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| 21 | + | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
79 | 82 | | |
80 | 83 | | |
81 | 84 | | |
| |||
86 | 89 | | |
87 | 90 | | |
88 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
89 | 98 | | |
90 | 99 | | |
91 | 100 | | |
| |||
138 | 147 | | |
139 | 148 | | |
140 | 149 | | |
| 150 | + | |
141 | 151 | | |
142 | 152 | | |
143 | 153 | | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
| 154 | + | |
| 155 | + | |
149 | 156 | | |
150 | 157 | | |
151 | 158 | | |
| |||
This file was deleted.
0 commit comments