From d904c6d71750e0aade2378222471d5a67d41aa42 Mon Sep 17 00:00:00 2001 From: Carlos Barreto Date: Wed, 21 Apr 2021 12:09:54 -0300 Subject: [PATCH 1/2] fix on the script to extract video fix to solver the "ValueError: Sign not allowed in string format specifier" error --- scripts/preprocess/extract_video.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/preprocess/extract_video.py b/scripts/preprocess/extract_video.py index abfc10f..21ae7af 100644 --- a/scripts/preprocess/extract_video.py +++ b/scripts/preprocess/extract_video.py @@ -27,7 +27,7 @@ def extract_video(videoname, path, start, end, step): os.makedirs(outpath, exist_ok=True) video = cv2.VideoCapture(videoname) totalFrames = int(video.get(cv2.CAP_PROP_FRAME_COUNT)) - for cnt in tqdm(range(totalFrames), desc='{:-10s}'.format(os.path.basename(videoname))): + for cnt in tqdm(range(totalFrames), desc='{:10s}'.format(os.path.basename(videoname))): ret, frame = video.read() if cnt < start:continue if cnt >= end:break @@ -127,7 +127,7 @@ def load_openpose(opname): def convert_from_openpose(src, dst, annotdir): # convert the 2d pose from openpose inputlist = sorted(os.listdir(src)) - for inp in tqdm(inputlist, desc='{:-10s}'.format(os.path.basename(dst))): + for inp in tqdm(inputlist, desc='{:10s}'.format(os.path.basename(dst))): annots = load_openpose(join(src, inp)) base = inp.replace('_keypoints.json', '') annotname = join(dst, base+'.json') From 3e24058ffc9b7afccb6e017be86e9ea6bbcc77d9 Mon Sep 17 00:00:00 2001 From: Carlos Barreto Date: Wed, 21 Apr 2021 14:24:32 -0300 Subject: [PATCH 2/2] adding tabulate adding package tabulate, needed for the calibration script --- requirements.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index b6bff1f..acc9e0d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,4 +5,5 @@ joblib tqdm opencv-python pyrender -yacs \ No newline at end of file +yacs +tabulate