DualStyleGAN icon indicating copy to clipboard operation
DualStyleGAN copied to clipboard

Fantastic work, I was wondering if I can still run this in my pc which has no GPU.

Open PetitePupil opened this issue 2 years ago • 4 comments

How to run it only using CPU as my device does not have a GPU to support CUDA/NVIDIA Drivers

PetitePupil avatar Nov 07 '23 14:11 PetitePupil

Please refer to https://github.com/williamyang1991/DualStyleGAN/tree/main/model/stylegan/op_cpu#readme

And modify https://github.com/williamyang1991/DualStyleGAN/blob/b3f0cf8e9e07ad002f9df07981e2eecaf0569191/style_transfer.py#L61

to

device = "cpu"

williamyang1991 avatar Nov 07 '23 14:11 williamyang1991

Thankyou, Seems to be working.

Also, can you provide a link to the gradio version of the program?

PetitePupil avatar Nov 07 '23 16:11 PetitePupil

https://huggingface.co/spaces/CVPR/DualStyleGAN/tree/main

williamyang1991 avatar Nov 08 '23 01:11 williamyang1991

Thankyou

PetitePupil avatar Nov 11 '23 16:11 PetitePupil