GithubHelp home page GithubHelp logo

Comments (9)

isht7 avatar isht7 commented on May 28, 2024

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.

isht7 avatar isht7 commented on May 28, 2024

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.

lianshushu avatar lianshushu commented on May 28, 2024

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.

lianshushu avatar lianshushu commented on May 28, 2024

Hi,it seems that ,you input image and label is resized to an random size:
a = outS(321scale)#41
b = outS(321
0.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.

isht7 avatar isht7 commented on May 28, 2024

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.

lianshushu avatar lianshushu commented on May 28, 2024

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.

isht7 avatar isht7 commented on May 28, 2024

How much are you getting? Some drop(about ~1%) will be due to disabling of scale augmentation.

from pytorch-deeplab-resnet.

lianshushu avatar lianshushu commented on May 28, 2024

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.

isht7 avatar isht7 commented on May 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.