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

can't use cpu,maybe something wrong in config.py #39

Closed
leonyan18 opened this issue Jan 15, 2022 · 1 comment
Closed

can't use cpu,maybe something wrong in config.py #39

leonyan18 opened this issue Jan 15, 2022 · 1 comment

Comments

@leonyan18
Copy link

in my opinion,I think maybe there is some problem in CRSLab/crslab/config/config.py 37
# gpu
os.environ['CUDA_VISIBLE_DEVICES'] = gpu
self.opt['gpu'] = [i for i in range(len(gpu.split(',')))]
if gpu=-1,self.opt['gpu'] will be [0]

@txy77
Copy link
Collaborator

txy77 commented Aug 20, 2022

Thanks for your feedback. We have fixed this problem by considering the CPU training case separately, now you can try again.

@txy77 txy77 closed this as completed Aug 20, 2022
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

2 participants