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

When I use the cityscapes dataset for training, I encounter an error when loading the model. How to solve this problem? #4

Open
a139122679 opened this issue Dec 23, 2021 · 2 comments

Comments

@a139122679
Copy link

2021-12-23 11:41:25,981 Segmentron INFO: train_fine data num 2975
2021-12-23 11:41:26,012 Segmentron INFO: train_fine data num 2975
2021-12-23 11:41:26,017 Segmentron INFO: val_fine data num 500
2021-12-23 11:41:26,763 Segmentron INFO: DSSyncBatchNorm is effective!
Traceback (most recent call last):
File "tools/train_semi.py", line 284, in
trainer = Trainer(args)
File "tools/train_semi.py", line 79, in init
self.model = get_segmentation_model().to(self.device)
File "/user/lwx1055260/ID2450_SimpleBaseline_for_pytorch/segmentron/models/model_zoo.py", line 27, in get_segmentation_model
load_model_pretrain(model)
File "/user/lwx1055260/ID2450_SimpleBaseline_for_pytorch/segmentron/models/model_zoo.py", line 34, in load_model_pretrain
assert os.path.exists(cfg.TRAIN.PRETRAINED_MODEL_PATH)
AssertionError
THCudaCheck FAIL file=/pytorch/aten/src/THC/THCCachingHostAllocator.cpp line=278 error=4 : driver shutting down

@jianlong-yuan
Copy link
Owner

please download the pre-trained model. For more details check https://github.com/jianlong-yuan/SimpleBaseline/blob/main/segmentron/models/backbones/build.py .

@daeunni
Copy link

daeunni commented Mar 27, 2023

@jianlong-yuan what is PRETRAINED_MODEL_PATH: "/**/best_model.pth" ?

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

3 participants