svip-lab / impersonator

PyTorch implementation of our ICCV 2019 paper: Liquid Warping GAN: A Unified Framework for Human Motion Imitation, Appearance Transfer and Novel View Synthesis
https://svip-lab.github.io/project/impersonator
Other
1.72k stars 317 forks source link

Add windows support #17

Open us opened 4 years ago

us commented 4 years ago

Tested on windows 10.

dakotahawkins commented 4 years ago

Do you do anything special to install torch?

I get:

ERROR: Could not find a version that satisfies the requirement torch==1.2.0 (from -r requirements.txt (line 6)) (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2)
ERROR: No matching distribution found for torch==1.2.0 (from -r requirements.txt (line 6))

The last time this happened in another project I think I gave up :(

piaozhx commented 4 years ago

@dakotahawkins Installing Pytorch for windows by pip need special links, e.g. image

You can find more information from pytorch official website

dakotahawkins commented 4 years ago

Yeah I tried that. Maybe now it's because I installed python 3.8, idk.

At any rate, for windows support I'd consider adding this step to some kind of script. I tried (everything short of downgrading python) but couldn't make it work.

piaozhx commented 4 years ago

@dakotahawkin, It seems that there are not offical support of python3.8 till now, you should use python3.7 or python3.6 etc as shown in above figure

haviduck commented 4 years ago

@dakotahawkins check in cmd where python, where pip, where pip3 and see if you dont have any wrong environmentals. i had 2.x hijacking my 3.7, had to remove the paths and then torch would install.

haviduck commented 4 years ago

@us is numpy.array.long() working for you?

haviduck commented 4 years ago

to get output video in win, change this line: https://github.com/us/impersonator/blob/45fe9813d5d1c93cdf769d2cabca040c5ce72846/utils/video.py#L49 to : os.system("ffmpeg -y -i %s -vcodec h264 %s" % (tmp_avi_video_path, output_mp4_path))