taming-transformers icon indicating copy to clipboard operation
taming-transformers copied to clipboard

Cannot use gpu to fine-tune on custom-data

Open YkiWu opened this issue 1 year ago • 2 comments

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,'

YkiWu avatar Jan 04 '24 09:01 YkiWu

check your torch&torchvision if it is a cpu version

RichardXue123 avatar Jan 09 '24 09:01 RichardXue123

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

jin1041 avatar Jan 22 '24 03:01 jin1041