mobilenetv3-segmentation
mobilenetv3-segmentation copied to clipboard
RuntimeError: Given input size: (576x48x48). Calculated output size: (576x0x0). Output size is too small
Hello Think for your job. When I use your code i meet a question:
Traceback (most recent call last):
File "train.py", line 288, in
@kukby You can check the Lite R-ASPP module in your training code. The origin LRASPP in the project is defined with fixed parameters for the standard mobilenet-v3 processing and you should change the size params to adapt your training input size.
I was able to fix this by using AdaptiveAvgPooling instead of AvgPool in the LRASPP implementation.
@dscarmo what did you pass in as your output size for the AdaptiveAvgPooling parameter?
@dscarmo what did you pass in as your output size for the AdaptiveAvgPooling parameter?
To get a single value for each channel you need to pass 1
@dscarmo thank you very much.