Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions utilsDetector.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,13 +319,9 @@ def runMMposeVideo(

# copy /data/output to pathOutputPkl
os.system("cp /data/output_mmpose/* {pathOutputPkl}/".format(pathOutputPkl=pathOutputPkl))
pkl_path_tmp = os.path.join(pathOutputPkl, 'human.pkl')
if os.path.exists(pkl_path_tmp):
os.rename(pkl_path_tmp, pklPath)
else:
raise FileNotFoundError(
"We could not detect any pose in your video. Please verify that the subject is correctly in front of the camera."
)
pkl_path_tmp = os.path.join(pathOutputPkl, 'human.pkl')
os.rename(pkl_path_tmp, pklPath)

except Exception as e:
if len(e.args) == 2: # specific exception
raise Exception(e.args[0], e.args[1])
Expand Down