Spaces:
Build error
Build error
download
#23
by
sabrineiitor
- opened
app.py
CHANGED
@@ -31,13 +31,19 @@ FONTS = {'amiko': "font/Amiko-Regular.ttf",
|
|
31 |
Megadet_Models = {'md_v5a': "megadet_model/md_v5a.0.0.pt",
|
32 |
'md_v5b': "megadet_model/md_v5b.0.0.pt"}
|
33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
DLC_models = {'full_cat': "model/DLC_Cat_resnet_50_iteration-0_shuffle-0",
|
35 |
'full_dog': "model/DLC_Dog_resnet_50_iteration-0_shuffle-0",
|
36 |
'primate_face': "model/DLC_FacialLandmarks_resnet_50_iteration-1_shuffle-1",
|
37 |
'full_human': "model/DLC_human_dancing_resnet_101_iteration-0_shuffle-1",
|
38 |
-
'full_macaque': 'model/DLC_monkey_resnet_50_iteration-0_shuffle-1'}
|
39 |
|
40 |
-
DLC_models_list = ['full_cat', 'full_dog','
|
41 |
|
42 |
#########################################
|
43 |
# Draw keypoints on image
|
@@ -307,7 +313,7 @@ gr_slider_conf_keypoints = gr.inputs.Slider(0,1,.05,0.25,
|
|
307 |
label='Set confidence threshold for keypoints')
|
308 |
|
309 |
# Data viz
|
310 |
-
gr_keypt_color = gr.ColorPicker(
|
311 |
|
312 |
gr_labels_font_style = gr.inputs.Dropdown(choices=['amiko', 'nature', 'painter', 'animals', 'zen'],
|
313 |
default='amiko',
|
|
|
31 |
Megadet_Models = {'md_v5a': "megadet_model/md_v5a.0.0.pt",
|
32 |
'md_v5b': "megadet_model/md_v5b.0.0.pt"}
|
33 |
|
34 |
+
DLC_folders = {'full_cat': "model/DLC_Cat/",
|
35 |
+
'full_dog': "model/DLC_Dog/",
|
36 |
+
'primate_face': "model/DLC_FacialLandmarks/",
|
37 |
+
'full_human': "model/DLC_human_dancing/",
|
38 |
+
'full_macaque': 'model/DLC_monkey/'}
|
39 |
+
|
40 |
DLC_models = {'full_cat': "model/DLC_Cat_resnet_50_iteration-0_shuffle-0",
|
41 |
'full_dog': "model/DLC_Dog_resnet_50_iteration-0_shuffle-0",
|
42 |
'primate_face': "model/DLC_FacialLandmarks_resnet_50_iteration-1_shuffle-1",
|
43 |
'full_human': "model/DLC_human_dancing_resnet_101_iteration-0_shuffle-1",
|
44 |
+
'full_macaque': 'model/DLC_monkey_resnet_50_iteration-0_shuffle-1'}
|
45 |
|
46 |
+
DLC_models_list = ['full_cat', 'full_dog','primate_face', 'full_human', 'full_macaque']
|
47 |
|
48 |
#########################################
|
49 |
# Draw keypoints on image
|
|
|
313 |
label='Set confidence threshold for keypoints')
|
314 |
|
315 |
# Data viz
|
316 |
+
gr_keypt_color = gr.ColorPicker(label="choose color for keypoint label")
|
317 |
|
318 |
gr_labels_font_style = gr.inputs.Dropdown(choices=['amiko', 'nature', 'painter', 'animals', 'zen'],
|
319 |
default='amiko',
|