everybody_dance_now_pytorch icon indicating copy to clipboard operation
everybody_dance_now_pytorch copied to clipboard

Syntax Error When Running compute_coordinates_for_video.py

Open eric07109 opened this issue 4 years ago • 2 comments

I am running into this syntax error when running the compute_coordinates_for_video.py

image

My datasets/train_B just contains a bunch of images extracted from video image

Please kindly let me know why and how I can address this issue.

eric07109 avatar Aug 04 '20 07:08 eric07109

for item in tqdm(img_list): img = imread(os.path.join(img_dir, item)) cord = cordinates_from_image_file(img, model=model) pose_cords.append(cord) color,_ = draw_pose_from_cords(cord, im_shape) imsave(os.path.join(pose_dir, item), color)

ronghui19 avatar Aug 12 '20 04:08 ronghui19

There are several typos in compute_coordinates_for_video.py While a SyntaxError is raised, the issue is in the previous line: line 259 is missing a ')'. Just add the closing bracket: img = imread(os.path.join(img_dir, item))

dklingmann avatar Jun 01 '21 14:06 dklingmann