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

getting error in build_train_loader #5

Open
farhadi76m opened this issue Oct 4, 2023 · 0 comments
Open

getting error in build_train_loader #5

farhadi76m opened this issue Oct 4, 2023 · 0 comments

Comments

@farhadi76m
Copy link

I wanted to train this model in a single GPU (Google Colab), but I've gotten this error! while I settled the --gpu_num 1 and also I changed the number of workers to either 0 and 1 , but it didn't work ! I faced with this error :

Traceback (most recent call last): File "/content/RbA/train_net.py", line 396, in <module> launch( File "/content/detectron2/detectron2/engine/launch.py", line 84, in launch main_func(*args) File "/content/RbA/train_net.py", line 384, in main trainer = Trainer(cfg) File "/content/detectron2/detectron2/engine/defaults.py", line 378, in __init__ data_loader = self.build_train_loader(cfg) File "/content/RbA/train_net.py", line 175, in build_train_loader return build_detection_train_loader(cfg, mapper=mapper) File "/content/detectron2/detectron2/config/config.py", line 208, in wrapped return orig_func(**explicit_args) File "/content/detectron2/detectron2/data/build.py", line 549, in build_detection_train_loader return build_batch_data_loader( File "/content/detectron2/detectron2/data/build.py", line 339, in build_batch_data_loader data_loader = torchdata.DataLoader( File "/usr/local/lib/python3.10/dist-packages/torch/utils/data/dataloader.py", line 238, in __init__ assert prefetch_factor > 0 TypeError: '>' not supported between instances of 'NoneType' and 'int'

moreover I just downloaded cityscapes dataset and have ran your sample command in help . could you help me what's my mistake ?
thank you

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

1 participant