|
20 | 20 | from cebra import CEBRA |
21 | 21 | from cebra import load_data |
22 | 22 |
|
23 | | -ANNOTATED_DLC_URL = "https://github.com/DeepLabCut/DeepLabCut/blob/main/examples/Reaching-Mackenzie-2018-08-30/labeled-data/reachingvideo1/CollectedData_Mackenzie.h5?raw=true" |
| 23 | +# NOTE(stes): The original data URL is |
| 24 | +# https://github.com/DeepLabCut/DeepLabCut/blob/main/examples |
| 25 | +# /Reaching-Mackenzie-2018-08-30/labeled-data/reachingvideo1 |
| 26 | +# /CollectedData_Mackenzie.h5?raw=true |
| 27 | +# which is replaced here due to rate limitations we observed in the past. |
| 28 | +ANNOTATED_DLC_URL = "https://figshare.com/ndownloader/files/42303564?private_link=b917317bfab725e0b207" |
| 29 | + |
| 30 | +# NOTE(stes): The original data URL is |
| 31 | +# https://github.com/DeepLabCut/UnitTestData/raw/main/data.zip") |
| 32 | +# which is replaced here due to rate limitations we observed in the past. |
24 | 33 | MULTISESSION_PRED_DLC_URL = ( |
25 | | - "https://github.com/DeepLabCut/UnitTestData/raw/main/data.zip") |
| 34 | + "https://figshare.com/ndownloader/files/42303561?private_link=b917317bfab725e0b207" |
| 35 | +) |
26 | 36 |
|
27 | 37 | MULTISESSION_PRED_KEYPOINTS = ["head", "tail"] |
28 | 38 | ANNOTATED_KEYPOINTS = ["Hand", "Tongue"] |
@@ -159,14 +169,14 @@ def test_load_data_dlc_invalid_keypoints(filename, keypoints): |
159 | 169 | ### multi-animals |
160 | 170 | def test_multianimal_dlc_file(): |
161 | 171 | filename = cebra.helper.download_file_from_zip_url( |
162 | | - url=MULTISESSION_PRED_DLC_URL) |
| 172 | + url=MULTISESSION_PRED_DLC_URL, file="montblanc_tracks.h5") |
163 | 173 | with pytest.raises(NotImplementedError, match="Multi-animals.*"): |
164 | 174 | _ = cebra_dlc.load_deeplabcut(filename) |
165 | 175 |
|
166 | 176 |
|
167 | 177 | def test_multianimal_data_dlc_file(): |
168 | 178 | filename = cebra.helper.download_file_from_zip_url( |
169 | | - url=MULTISESSION_PRED_DLC_URL) |
| 179 | + url=MULTISESSION_PRED_DLC_URL, file="montblanc_tracks.h5") |
170 | 180 | with pytest.raises(NotImplementedError, match="Multi-animals.*"): |
171 | 181 | _ = load_data(filename) |
172 | 182 |
|
|
0 commit comments