Skip to content

Commit 1b496c2

Browse files
authored
Merge pull request #20 from DeepLabCut/v0.0.4
V0.0.4
2 parents 0ed75c5 + 348e908 commit 1b496c2

File tree

5 files changed

+23
-4
lines changed

5 files changed

+23
-4
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,14 @@ model_dir = Path("./superanimal_quadruped_model")
3434
model_dir.mkdir()
3535
download_huggingface_model("superanimal_quadruped", model_dir)
3636
```
37+
38+
## How to add a new model?
39+
40+
Pick a good model_name. Follow the (novel) naming convention (modeltype_species), e.g. ```superanimal_topviewmouse```.
41+
42+
1. Add the model_name with path and commit ID to: https://github.com/DeepLabCut/DLClibrary/blob/main/dlclibrary/dlcmodelzoo/modelzoo_urls.yaml
43+
44+
2. Add the model name to the constant: MODELOPTIONS
45+
https://github.com/DeepLabCut/DLClibrary/blob/main/dlclibrary/dlcmodelzoo/modelzoo_download.py#L15
46+
47+
3. For superanimal models also fill in the configs!

dlclibrary/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
# Licensed under GNU Lesser General Public License v3.0
1010
#
1111

12-
__version__ = "0.0.3"
12+
__version__ = "0.0.4"
1313
VERSION = __version__

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
setuptools.setup(
1717
name="dlclibrary",
18-
version="0.0.3",
18+
version="0.0.4",
1919
author="A. & M. Mathis Labs",
2020
author_email="alexander@deeplabcut.org",
2121
description="Lightweight library supporting universal functions for the DeepLabCut ecosystem",

tests/test_modeldownload.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ def test_parse_superanimal_models():
3535
assert "superanimal_topviewmouse" in dict_
3636

3737

38-
@pytest.mark.skip
38+
#@pytest.mark.skip # Not skipping as rarely run!
3939
@pytest.mark.parametrize("model", MODELOPTIONS)
4040
def test_download_all_models(tmp_path_factory, model):
41+
print("Downloading ...", model)
4142
test_download_huggingface_model(tmp_path_factory, model)

tools/README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Developer tools useful for maintaining the repository
1+
# Developer tools useful for maintaining the DeepLabCut repository
22

33
## Code headers
44

@@ -11,3 +11,10 @@ python tools/update_license_headers.py
1111
from the repository root (this needs `pip install licenseheaders`)
1212

1313
You can edit the `NOTICE.yml` to update the header.
14+
15+
16+
## Running tests [with more details](https://docs.pytest.org/en/latest/how-to/capture-stdout-stderr.html)
17+
18+
``` bash
19+
pytest -s
20+
```

0 commit comments

Comments
 (0)