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
problem occured in hrnet_backbone.py #25
Comments
It seems that this bug is caused by that you have not specified the bn_type during testing. @hsfzxjy Please help to check this issue. |
Hi. It may be caused by using the wrong version of PyTorch. This codebase is currently compatible with PyTorch 0.4.1 (well tested) and not supported by PyTorch 1.3+. |
Thank you very much, but I have another problem, I find the cityscapes dataset donot contain image or lable folder, it is divided into multiple subfolders according to different city names. what the image or label folder in your code in default_loader.py mean? Error Message: |
We use a different directory structure. You may use https://github.com/openseg-group/openseg.pytorch/blob/master/lib/datasets/preprocess/cityscapes/cityscapes_generator.py to reorganize data. |
@hsfzxjy |
You can try
where |
@hsfzxjy I got the error: I operating environmentis : |
@hsfzxjy My command: |
@daixiaolei623 Hi. Currently there are no built-in facilities for this. But you can achieve it fast by emulating the directory structure, i.e., organize files like this:
where |
@hsfzxjy |
@daixiaolei623 Thanks for trying out our SegFix method. Could you provide more details on your usage of our SegFix? In fact, we believe that our SegFix is capable to improve almost all of the methods that we can find on the Cityscapes leaderboard. @hsfzxjy will help check the problem depending on the more details you can provide. |
The reason for the original issue ( |
Dear Author,
Thank you for your excellent work, but some errors are reported for backbones.
Error messages:
2020-07-15 21:00:10,470 INFO [module_runner.py, 44] BN Type is inplace_abn.
Traceback (most recent call last):
File "main.py", line 214, in
model = Tester(configer)
File "/home/dai/code/semantic_segmentation/9/openseg.pytorch-master/segmentor/tester.py", line 69, in init
self._init_model()
File "/home/dai/code/semantic_segmentation/9/openseg.pytorch-master/segmentor/tester.py", line 72, in _init_model
self.seg_net = self.model_manager.semantic_segmentor()
File "/home/dai/code/semantic_segmentation/9/openseg.pytorch-master/lib/models/model_manager.py", line 81, in semantic_segmentor
model = SEG_MODEL_DICTmodel_name
File "/home/dai/code/semantic_segmentation/9/openseg.pytorch-master/lib/models/nets/hrnet.py", line 105, in init
self.backbone = BackboneSelector(configer).get_backbone()
File "/home/dai/code/semantic_segmentation/9/openseg.pytorch-master/lib/models/backbones/backbone_selector.py", line 34, in get_backbone
model = HRNetBackbone(self.configer)(**params)
File "/home/dai/code/semantic_segmentation/9/openseg.pytorch-master/lib/models/backbones/hrnet/hrnet_backbone.py", line 598, in call
bn_momentum=0.1)
File "/home/dai/code/semantic_segmentation/9/openseg.pytorch-master/lib/models/backbones/hrnet/hrnet_backbone.py", line 307, in init
self.bn1 = ModuleHelper.BatchNorm2d(bn_type=bn_type)(64, momentum=bn_momentum)
TypeError: 'NoneType' object is not callable
Could you please tell me what is wrong? thank you.
The text was updated successfully, but these errors were encountered: