Comments (9)
Hi, when did you clone the repo and when did you download the file 'MS_DeepLab_resnet_pretrained_COCO_init.pth'
?
from pytorch-deeplab-resnet.
I suspect that your repo is not updated and/or the .pth file you are using is old. Both the repo and the .pth files were changed some time ago. I recommend that you pull the repo and download the .pth file again. Get back to me if the error persists after doing the above.
from pytorch-deeplab-resnet.
Thank you so much,I foud the code is an old vision, I had solved this problem ,but it seems that the label size is not the same with the last feature map after model processed.
RuntimeError: input and target batch or spatial sizes don't match: target [1 x 19 x 19], input [1 x 21 x 20 x 20] at /b/wheel/pytorch-src/torch/lib/THCUNN/generic/SpatialClassNLLCriterion.cu:24
I am solving this problem now,Had you ever get this kind of problem?
from pytorch-deeplab-resnet.
Hi,it seems that ,you input image and label is resized to an random size:
a = outS(321scale)#41
b = outS(3210.5*scale)#21
this might case the dimension size ,weith and height between last feature map and label not the same
from pytorch-deeplab-resnet.
Hi, I have tested and my repo works properly even after the random scale. How many labels does your data have? By default there are 21 labels, but you can modify that using the argument --NoLabels
. Also, what is the size of your input images? try to resize them to the shape (321,321,3) and then check again. Also, if nothing else works, you could disable scale augmentation and put scale = 1.
from pytorch-deeplab-resnet.
I disable scale augmentation and put scale = 1 and it works, but did not get you perfermance trained by pascal-voc train data. I will check my training method and consult you , thank you so much for your help!
from pytorch-deeplab-resnet.
How much are you getting? Some drop(about ~1%) will be due to disabling of scale augmentation.
from pytorch-deeplab-resnet.
Hi, I got 67.5% with a random scale augmentation , I trained 3 times already. There is not CRF processing in you code ,right?
from pytorch-deeplab-resnet.
no, there is no CRF, but you should be able to get ~72.4% accuracy on the validation set if using evalpyt2.py
. You first said that you were not able to use the random scale augmentation. What did you change so that it worked for you? That might give me a hint regarding the reason for your lower performance.
from pytorch-deeplab-resnet.
Related Issues (20)
- Why is loss for multiple scales calculated in a strange way? HOT 2
- Arbitrary batch size still unimplemented?
- Training produces model generating blank segmentations HOT 6
- How do get car mask only? HOT 1
- how does iter_size work? HOT 1
- spatial sizes mismatch HOT 1
- the result? HOT 4
- Why change the image channel order after `cv2.imread`
- No Relu in the ClassifierModule HOT 1
- Frozen the statistics of BN? HOT 5
- The size of the prediction HOT 2
- Bad mIOU tested with provided model HOT 8
- problem of train.py HOT 1
- ASPP or LargeFOV? Should be 76.35%.
- docopt HOT 2
- network stucture issue
- read the ground truth of the pascal voc dataset
- where is the crfs implementation? HOT 1
- About image preprocessing HOT 2
- performance HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytorch-deeplab-resnet.