forked from DeepLabCut/DeepLabCut
-
Notifications
You must be signed in to change notification settings - Fork 0
/
testscript_superanimal_inference.py
45 lines (40 loc) · 1.1 KB
/
testscript_superanimal_inference.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#
# DeepLabCut Toolbox (deeplabcut.org)
# © A. & M.W. Mathis Labs
# https://github.com/DeepLabCut/DeepLabCut
#
# Please see AUTHORS for contributors.
# https://github.com/DeepLabCut/DeepLabCut/blob/master/AUTHORS
#
# Licensed under GNU Lesser General Public License v3.0
#
"""
Testscript for super animal inference
"""
import deeplabcut
import os
if __name__ == "__main__":
basepath = os.path.dirname(os.path.realpath(__file__))
videoname = "reachingvideo1"
video = [
os.path.join(
basepath, "Reaching-Mackenzie-2018-08-30", "videos", videoname + ".avi"
)
]
print("testing superanimal_topviewmouse")
superanimal_name = "superanimal_topviewmouse"
scale_list = [200, 300, 400]
deeplabcut.video_inference_superanimal(
video,
superanimal_name,
videotype=".avi",
scale_list=scale_list,
)
print("testing superanimal_quadruped")
superanimal_name = "superanimal_quadruped"
deeplabcut.video_inference_superanimal(
video,
superanimal_name,
videotype=".avi",
scale_list=scale_list,
)