Giter Club home page Giter Club logo

Comments (15)

sacmehta avatar sacmehta commented on August 23, 2024

Did you process Cityscapes dataset correctly? Seems like an issue with labels.

from espnetv2.

monk42 avatar monk42 commented on August 23, 2024

Yes,I did ! 255 converted to 19 !

from espnetv2.

monk42 avatar monk42 commented on August 23, 2024

After 6 epoch!
67530ab5b8a19317e8e85f369bf28e0

from espnetv2.

sacmehta avatar sacmehta commented on August 23, 2024

I mean Cityscapes labels are not continuous between 0 and 19. You need to first convert them to continuous values. Have you done this?

from espnetv2.

monk42 avatar monk42 commented on August 23, 2024

Yes ,i have used this code https://github.com/mcordts/cityscapesScripts/blob/master/cityscapesscripts/preparation/createTrainIdLabelImgs.py to conver them!

from espnetv2.

sacmehta avatar sacmehta commented on August 23, 2024

Could you just cross verify label images for the validation set are correct?

Which PyTorch version are you using?

from espnetv2.

sacmehta avatar sacmehta commented on August 23, 2024

could you please also check if this observation is the same if you use training set as your validation set?

from espnetv2.

monk42 avatar monk42 commented on August 23, 2024

Pytorch version 1.0.1 post2, i will try you methods ! thanks

from espnetv2.

monk42 avatar monk42 commented on August 23, 2024

This observation is the same if I use training set as my validation set
and my validation set is correct ,Throughout the code, I only changed the two loss values needed for training to only one loss value.

from espnetv2.

sacmehta avatar sacmehta commented on August 23, 2024

Could you point me to your repo?

from espnetv2.

monk42 avatar monk42 commented on August 23, 2024

output1, output2 = model(input) #set the grad to zero optimizer.zero_grad() loss1 = criterion(output1, target) loss2 = criterion(output2, target) loss = loss1 + loss2

change to

output1=model(input) optimizer.zero_grad() loss=criterion(output1, target)
No change in other places
sorry ,I didn't create a repo

from espnetv2.

sacmehta avatar sacmehta commented on August 23, 2024

Well you need to change the model file too, so that you get only one output instead of two.

from espnetv2.

monk42 avatar monk42 commented on August 23, 2024

I used the EESP module in your code to redesign the network structure and only have one output, then modify the training code to what I told you, the other parts have not changed, the data set is no problem, you also see the network can Training, but there was a problem with the verification, but when I used this code to train other network structures, everything was fine! I don't know what caused it.

from espnetv2.

sacmehta avatar sacmehta commented on August 23, 2024

Could you use the original code (without your changes) and see if it works?

If that works, then try incorporating your changes one by one. This will help you to debug the error.

from espnetv2.

monk42 avatar monk42 commented on August 23, 2024

Thanks ,I will do it!

from espnetv2.

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.