Lotayou / everybody_dance_now_pytorch

A PyTorch Implementation of "Everybody Dance Now" from Berkeley AI lab.
GNU Affero General Public License v3.0
280 stars 72 forks source link

Syntax Error When Running compute_coordinates_for_video.py #13

Open eric07109 opened 4 years ago

eric07109 commented 4 years ago

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.

ronghui19 commented 4 years ago

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)

dklingmann commented 3 years ago

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))