Coder Social home page Coder Social logo

Comments (2)

jfzhang95 avatar jfzhang95 commented on June 14, 2024

Previous code has a problem: the output_stride is 32, but the official code's output_sride is 16.
Now I implement a new separable convolution to solve this problem.

Besides, I think tr.RandomResizedCrop method is not suitable for this task. I cannot
even overfit one image if I train the code with this transformation. Therefore, I change
tr.RandomResizedCrop to tr.FixedResize(512) and change learning rate to 5e-7, then the loss
can decrease normally.

from pytorch-deeplab-xception.

FJR-Nancy avatar FJR-Nancy commented on June 14, 2024

@MenSanYan I think the loss value is high because the "size_average" is set to False while computing the loss. You can set it to True or just remove it -- which will use “elementwise_mean” by default in PyTorch. Besides, if you use “elementwise_mean” in loss, you need to increase the initial learning rate accordingly, maybe 0.007, which is the same as the paper.

from pytorch-deeplab-xception.

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.