Zasder3 / train-CLIP

A PyTorch Lightning solution to training OpenAI's CLIP from scratch.
MIT License
653 stars 78 forks source link

how to train on cpu? #8

Closed lonngxiang closed 3 years ago

Zasder3 commented 3 years ago

As long as you do not specify in the command line arguments --gpus # then you will be training on CPU. I recommend you try using the train_finetune.py to see results without having to wait too long. It functions just the same as train.py except you do not need to specify the model_name in the command line.