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

How to train on a single gpu? #63

Closed
DRosemei opened this issue Jul 16, 2019 · 4 comments
Closed

How to train on a single gpu? #63

DRosemei opened this issue Jul 16, 2019 · 4 comments

Comments

@DRosemei
Copy link

I have modified train.py as #11 said, but I find that there is no code model = DataParallelModel(model, device_ids=engine.devices)
and error occoured:
Traceback (most recent call last): File "train.py", line 33, in <module> with Engine(custom_parser=parser) as engine: File "/home/rose/projects/TorchSeg/furnace/engine/engine.py", line 69, in __init__ self.devices = parse_devices(self.args.devices) File "/home/rose/projects/TorchSeg/furnace/utils/pyt_utils.py", line 99, in parse_devices device = int(d) ValueError: invalid literal for int() with base 10: ''
Then I used the unrevised 'train.py' and changed NGPUS=1. It made the same error. Could someone can tell me why?

@bkunsberg
Copy link

@DRosemei

I have the same error -- can you tell me what you did to fix this (as you closed it)? Much appreciated!

@buzhiqimeiliuqiangdong
Copy link

@DRosemei @bkunsberg handsome guys,do you solve your problem? I have the same error.嘤嘤嘤

@Antidoht
Copy link

try to put key --devices=0

@claus25
Copy link

claus25 commented Sep 23, 2021

hello please I have the same problem
please where to put key --devices=0?

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

5 participants