anandpawara / Real_Time_Image_Animation

The Project is real time application in opencv using first order model
GNU General Public License v3.0
3.23k stars 521 forks source link

How to use in CPU? #30

Closed zhuyingyan closed 3 years ago

zhuyingyan commented 3 years ago

I change the sentence 'cpu=False' to 'cpu=True' in Line 40 file 'image_anmation.py', and change the function 'load_checkpoints(config_path, checkpoint_path, cpu=False)' to 'load_checkpoints(config_path, checkpoint_path, cpu=True)' in Line 24 file 'demo.py'. But the output video file, only 54KB, and also it can't play. Can use in CPU? How?

zhuyingyan commented 3 years ago

I finial find it how.

# if cv2.waitKey(20) & 0xFF == ord('q'): 
#   break

Annotation the code upload, and wait a long long time.