batch true and queue true again
Browse files- main_noweb.py +4 -4
main_noweb.py
CHANGED
@@ -159,7 +159,7 @@ def pose3dbatch(video, kpt_threshold):
|
|
159 |
vname, kname = pose3d(v, t)
|
160 |
outvids.append(vname)
|
161 |
kpoints.append(kname)
|
162 |
-
return kpoints, outvids
|
163 |
|
164 |
|
165 |
def pose2dhand(video, kpt_threshold):
|
@@ -312,12 +312,12 @@ print("Angle is: ", angle)
|
|
312 |
outputs = [video_output1, jsonoutput],
|
313 |
queue=True)
|
314 |
|
315 |
-
submit_pose3d_file.click(fn=
|
316 |
inputs= [video_input, file_kpthr],
|
317 |
-
outputs = [video_output2, jsonoutput],
|
318 |
batch=True,
|
319 |
max_batch_size=16,
|
320 |
-
queue=True)
|
321 |
|
322 |
submit_hand_file.click(fn=pose2dhand,
|
323 |
inputs= [video_input, file_kpthr],
|
|
|
159 |
vname, kname = pose3d(v, t)
|
160 |
outvids.append(vname)
|
161 |
kpoints.append(kname)
|
162 |
+
return [outvids]#kpoints, outvids
|
163 |
|
164 |
|
165 |
def pose2dhand(video, kpt_threshold):
|
|
|
312 |
outputs = [video_output1, jsonoutput],
|
313 |
queue=True)
|
314 |
|
315 |
+
submit_pose3d_file.click(fn=pose3dbatch,
|
316 |
inputs= [video_input, file_kpthr],
|
317 |
+
outputs = video_output2,#[video_output2, jsonoutput],
|
318 |
batch=True,
|
319 |
max_batch_size=16,
|
320 |
+
queue=True) # Sometimes it worked with queue false? But still slow
|
321 |
|
322 |
submit_hand_file.click(fn=pose2dhand,
|
323 |
inputs= [video_input, file_kpthr],
|