You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for your error report and we appreciate it a lot.
Checklist
I have searched related issues but cannot get the expected help.
The bug has not been fixed in the latest version.
Describe the bug
When I train with deeplabplus, no matter how I change my input size, there is always an error ad below, I have tried different version of pytorch ,different version of mmsegmentation, and my data is made by my self as the format of Cityscape, I don't know what is wrong, please help me, thanks a lot.
I have change the data root in cityscape.py and I change syncBN to BN in configs/model/deeplabv3_r50-d8.py, and my dataset is made by myself, and the format is same as cityscape, int the left8bintimage is my train image, and in gtfine is my label which has one channel and label every pixel in 1-19 here is one of my label:
and if you map the label in different color it will look like this:
Traceback (most recent call last):
File "tools/train.py", line 164, in <module>
main()
File "tools/train.py", line 160, in main
meta=meta)
File "/home/xiongpan/code/mmsegmentation-0.8/mmseg/apis/train.py", line 118, in train_segmentor
runner.run(data_loaders, cfg.workflow)
File "/opt/conda/envs/mms/lib/python3.7/site-packages/mmcv/runner/iter_based_runner.py", line 130, in run
iter_runner(iter_loaders[i], **kwargs)
File "/opt/conda/envs/mms/lib/python3.7/site-packages/mmcv/runner/iter_based_runner.py", line 60, in train
outputs = self.model.train_step(data_batch, self.optimizer, **kwargs)
File "/opt/conda/envs/mms/lib/python3.7/site-packages/mmcv/parallel/data_parallel.py", line 67, in train_step
return self.module.train_step(*inputs[0], **kwargs[0])
File "/home/xiongpan/code/mmsegmentation-0.8/mmseg/models/segmentors/base.py", line 156, in train_step
losses = self(**data_batch)
File "/opt/conda/envs/mms/lib/python3.7/site-packages/torch/nn/modules/module.py", line 722, in _call_impl
result = self.forward(*input, **kwargs)
File "/opt/conda/envs/mms/lib/python3.7/site-packages/mmcv/runner/fp16_utils.py", line 84, in new_func
return old_func(*args, **kwargs)
File "/home/xiongpan/code/mmsegmentation-0.8/mmseg/models/segmentors/base.py", line 122, in forward
return self.forward_train(img, img_metas, **kwargs)
File "/home/xiongpan/code/mmsegmentation-0.8/mmseg/models/segmentors/encoder_decoder.py", line 160, in forward_train
gt_semantic_seg)
File "/home/xiongpan/code/mmsegmentation-0.8/mmseg/models/segmentors/encoder_decoder.py", line 104, in _decode_head_forward_train
self.train_cfg)
File "/home/xiongpan/code/mmsegmentation-0.8/mmseg/models/decode_heads/decode_head.py", line 188, in forward_train
seg_logits = self.forward(inputs)
File "/home/xiongpan/code/mmsegmentation-0.8/mmseg/models/decode_heads/sep_aspp_head.py", line 83, in forward
self.image_pool(x),
File "/opt/conda/envs/mms/lib/python3.7/site-packages/torch/nn/modules/module.py", line 722, in _call_impl
result = self.forward(*input, **kwargs)
File "/opt/conda/envs/mms/lib/python3.7/site-packages/torch/nn/modules/container.py", line 117, in forward
input = module(input)
File "/opt/conda/envs/mms/lib/python3.7/site-packages/torch/nn/modules/module.py", line 722, in _call_impl
result = self.forward(*input, **kwargs)
File "/opt/conda/envs/mms/lib/python3.7/site-packages/mmcv/cnn/bricks/conv_module.py", line 187, in forward
x = self.norm(x)
File "/opt/conda/envs/mms/lib/python3.7/site-packages/torch/nn/modules/module.py", line 722, in _call_impl
result = self.forward(*input, **kwargs)
File "/opt/conda/envs/mms/lib/python3.7/site-packages/torch/nn/modules/batchnorm.py", line 136, in forward
self.weight, self.bias, bn_training, exponential_average_factor, self.eps)
File "/opt/conda/envs/mms/lib/python3.7/site-packages/torch/nn/functional.py", line 2012, in batch_norm
_verify_batch_size(input.size())
File "/opt/conda/envs/mms/lib/python3.7/site-packages/torch/nn/functional.py", line 1995, in _verify_batch_size
raise ValueError('Expected more than 1 value per channel when training, got input size {}'.format(size))
ValueError: Expected more than 1 value per channel when training, got input size torch.Size([1, 512, 1, 1])
The text was updated successfully, but these errors were encountered:
Thanks for your error report and we appreciate it a lot.
Checklist
Describe the bug
When I train with deeplabplus, no matter how I change my input size, there is always an error ad below, I have tried different version of pytorch ,different version of mmsegmentation, and my data is made by my self as the format of Cityscape, I don't know what is wrong, please help me, thanks a lot.
Reproduction
What command or script did you run?
I have change the data root in cityscape.py and I change syncBN to BN in configs/model/deeplabv3_r50-d8.py, and my dataset is made by myself, and the format is same as cityscape, int the left8bintimage is my train image, and in gtfine is my label which has one channel and label every pixel in 1-19 here is one of my label:
and if you map the label in different color it will look like this:
Environment
Error traceback
The text was updated successfully, but these errors were encountered: