Code Monkey home page Code Monkey logo

Comments (12)

poppinace avatar poppinace commented on August 23, 2024

Hi @kelisiya,
Sorry for the late reply due to the CVPR deadline.
Do you mean the training loss? or calculating the evaluation errors?
The connectivity loss is not used in training, it is only used when evaluating the matte quality. It should be fine if following my instructions to run the code.

from indexnet_matting.

kelisiya avatar kelisiya commented on August 23, 2024

Hi @kelisiya,
Sorry for the late reply due to the CVPR deadline.
Do you mean the training loss? or calculating the evaluation errors?
The connectivity loss is not used in training, it is only used when evaluating the matte quality. It should be fine if following my instructions to run the code.

It's work , I let your backbone to DIM and use Alpha loss and Grad loss , finally I can train your model .

from indexnet_matting.

poppinace avatar poppinace commented on August 23, 2024

@kelisiya Nice, let me know if your model achieves better results:)

from indexnet_matting.

kelisiya avatar kelisiya commented on August 23, 2024

from indexnet_matting.

poppinace avatar poppinace commented on August 23, 2024

@kelisiya It is normal that the network's output is not bounded by [0, 1] due to the nature of regression. This is why postprocessing is required to eliminate unreasonale outputs.
However, you should not use the clip operator or clamp in pytorch during training, because the gradient will be clipped to zero either. This may be the reason why the loss does not decrease.
The clip operator should be only applicable in inference.

from indexnet_matting.

kelisiya avatar kelisiya commented on August 23, 2024

from indexnet_matting.

poppinace avatar poppinace commented on August 23, 2024

I don't use cv.normalize.
I also tried sigmoid, but do not find it necessary.

from indexnet_matting.

kelisiya avatar kelisiya commented on August 23, 2024

from indexnet_matting.

poppinace avatar poppinace commented on August 23, 2024

Exactly!

from indexnet_matting.

kelisiya avatar kelisiya commented on August 23, 2024

from indexnet_matting.

kelisiya avatar kelisiya commented on August 23, 2024

from indexnet_matting.

poppinace avatar poppinace commented on August 23, 2024

Of course you should normalize the alpha before calculating the loss.
Yes, the concatenated input like DIM.

from indexnet_matting.

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.