Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run code without CUDA #71

Open
chiangandy opened this issue Feb 16, 2024 · 1 comment
Open

run code without CUDA #71

chiangandy opened this issue Feb 16, 2024 · 1 comment

Comments

@chiangandy
Copy link

I found style_transfer.py has option --cpu which can be run on non-cuda environment. But when I try this..

python3 style_transfer.py --cpu --scale_image --content a1.png --ckpt ./checkpoint/vtoonify.pt

It response ....

OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root.

how to solve this?

@chiangandy chiangandy changed the title run code with CUDA run code without CUDA Feb 16, 2024
@chiangandy
Copy link
Author

answer by my self, we can modify 3 files and put import library to use _cpu then command line need to set --cpu then everything will be perfact.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant