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

Cannot use gpu to fine-tune on custom-data #234

Open
YkiWu opened this issue Jan 4, 2024 · 2 comments
Open

Cannot use gpu to fine-tune on custom-data #234

YkiWu opened this issue Jan 4, 2024 · 2 comments

Comments

@YkiWu
Copy link

YkiWu commented Jan 4, 2024

I used "python main.py --base configs/custom_vqgan.yaml -t True --gpus 0" to fine-tune a pretrained model on my own data, but it seems that it always train on my cpu, not gpu, how should I solve this problem? Thanks!
By the way, if I change the command into "python main.py --base configs/custom_vqgan.yaml -t True --gpus 0," just as says in README.md, I will got an error say that , error: argument --gpus: invalid int value: '0,'

@RichardXue123
Copy link

check your torch&torchvision if it is a cpu version

@jin1041
Copy link

jin1041 commented Jan 22, 2024

use this python main.py --base configs/custom_vqgan.yaml -t True --gpus 0, add ',' at end

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

3 participants