Skip to content

Commit 7c12a1a

Browse files
authored
Update check_install.py
1 parent 6ddc83d commit 7c12a1a

1 file changed

Lines changed: 13 additions & 7 deletions

File tree

dlclive/check_install/check_install.py

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
import sys
1111
import shutil
1212
import warnings
13+
from dlclibrary.dlcmodelzoo.modelzoo_download import (
14+
download_huggingface_model,
15+
MODELOPTIONS,
16+
)
1317

1418
from dlclive import benchmark_videos
1519
import urllib.request
@@ -57,13 +61,15 @@ def main(display:bool=None):
5761
print('Tarball already downloaded, using cached version')
5862
else:
5963
print("Downloading full_dog model from the DeepLabCut Model Zoo...")
60-
model_url = "http://deeplabcut.rowland.harvard.edu/models/DLC_Dog_resnet_50_iteration-0_shuffle-0.tar.gz"
61-
urllib.request.urlretrieve(model_url, str(model_tarball), reporthook=urllib_pbar)
62-
63-
print('Untarring compressed model')
64-
model_file = tarfile.open(str(model_tarball))
65-
model_file.extractall(str(model_dir.parent))
66-
model_file.close()
64+
model = 'superanimal_quadruped'
65+
download_huggingface_model(model,model_dir)
66+
#model_url = "http://deeplabcut.rowland.harvard.edu/models/DLC_Dog_resnet_50_iteration-0_shuffle-0.tar.gz"
67+
#urllib.request.urlretrieve(model_url, str(model_tarball), reporthook=urllib_pbar)
68+
69+
#print('Untarring compressed model')
70+
#model_file = tarfile.open(str(model_tarball))
71+
# model_file.extractall(str(model_dir.parent))
72+
#model_file.close()
6773

6874
# assert these things exist so we can give informative error messages
6975
assert Path(video_file).exists()

0 commit comments

Comments
 (0)