Skip to content

Commit d088ae4

Browse files
committed
download video from github; tested updated version
1 parent bcecf09 commit d088ae4

File tree

5 files changed

+10
-4
lines changed

5 files changed

+10
-4
lines changed

dlclive/check_install/check_install.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import os
1010
import shutil
1111
from dlclive import benchmark_videos
12+
import urllib.request
1213

1314

1415
def main():
@@ -20,6 +21,11 @@ def main():
2021
os.makedirs(tmp_dir, exist_ok=True)
2122
os.chdir(tmp_dir)
2223

24+
# download dog test video from github:
25+
url_link = 'https://github.com/DeepLabCut/DeepLabCut-live/blob/master/check_install/dog_clip.avi?raw=True'
26+
urllib.request.urlretrieve(url_link,"dog_clip.avi")
27+
video_file=os.path.join(url_link,"dog_clip.avi")
28+
2329
# download exported dog model from DeepLabCut Model Zoo
2430
print("Downloading full_dog model from the DeepLabCut Model Zoo...")
2531
model_url = "http://deeplabcut.rowland.harvard.edu/models/DLC_Dog_resnet_50_iteration-0_shuffle-0.tar.gz"
@@ -28,7 +34,7 @@ def main():
2834
# run benchmark videos
2935
print("\n Running inference...\n")
3036
model_dir = "DLC_Dog_resnet_50_iteration-0_shuffle-0"
31-
video_file = os.path.normpath(f"{os.path.dirname(__file__)}/dog_clip.avi")
37+
print(video_file)
3238
benchmark_videos(model_dir, video_file, display=True, resize=0.5, pcutoff=0.25)
3339

3440
# deleting temporary files

dlclive/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
"""
88

99

10-
__version__ = "0.0.1"
10+
__version__ = "0.0.2"
1111
VERSION = __version__

reinstall.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
pip uninstall deeplabcut-live
22
python3 setup.py sdist bdist_wheel
3-
pip install dist/deeplabcut_live-0.0.1-py3-none-any.whl
3+
pip install dist/deeplabcut_live-0.0.2-py3-none-any.whl

setup.py

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

3838
setuptools.setup(
3939
name="deeplabcut-live",
40-
version="0.0.1",
40+
version="0.0.2",
4141
author="A. & M. Mathis Labs",
4242
author_email="[email protected]",
4343
description="Class to load exported DeepLabCut networks and perform pose estimation on single frames (from a camera feed)",

0 commit comments

Comments
 (0)