File tree Expand file tree Collapse file tree 5 files changed +23
-4
lines changed Expand file tree Collapse file tree 5 files changed +23
-4
lines changed Original file line number Diff line number Diff line change @@ -34,3 +34,14 @@ model_dir = Path("./superanimal_quadruped_model")
3434model_dir.mkdir()
3535download_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!
Original file line number Diff line number Diff line change 99# Licensed under GNU Lesser General Public License v3.0
1010#
1111
12- __version__ = "0.0.3 "
12+ __version__ = "0.0.4 "
1313VERSION = __version__
Original file line number Diff line number Diff line change 1515
1616setuptools .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" ,
Original file line number Diff line number Diff 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 )
4040def test_download_all_models (tmp_path_factory , model ):
41+ print ("Downloading ..." , model )
4142 test_download_huggingface_model (tmp_path_factory , model )
Original file line number Diff line number Diff line change 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
1111from the repository root (this needs ` pip install licenseheaders ` )
1212
1313You 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+ ```
You can’t perform that action at this time.
0 commit comments