Coder Social home page Coder Social logo

Comments (7)

 avatar commented on June 22, 2024

You only used F.sigmoid(SR) in the train phase, and you didn't use it in valid and test phase. I think it may be ignored. right?

from image_segmentation.

LeeJunHyun avatar LeeJunHyun commented on June 22, 2024

Hi @Zaynsysu ,
At first, Thank you for your interest in my code.

  1. In data_loader.py, there are some transform function that is applied to your images.
    (ex. T.ToTensor(), T.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5)))
    It will change your input in specific range.

  2. Because SR is applied to sigmoid function, it will have range [0,1].

  3. I correct valid and test phase code. I really appreciate your point. Thank you :)

from image_segmentation.

LeeJunHyun avatar LeeJunHyun commented on June 22, 2024

If you don't have further issues, I will close the issue. I hope my answer was helpful :)

from image_segmentation.

Nastu-Ho avatar Nastu-Ho commented on June 22, 2024

Hi @Zaynsysu ,
At first, Thank you for your interest in my code.

  1. In data_loader.py, there are some transform function that is applied to your images.
    (ex. T.ToTensor(), T.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5)))
    It will change your input in specific range.
  2. Because SR is applied to sigmoid function, it will have range [0,1].
  3. I correct valid and test phase code. I really appreciate your point. Thank you :)

T.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5))), these parameters how to calculate?

from image_segmentation.

LeeJunHyun avatar LeeJunHyun commented on June 22, 2024

Hi, @Nastu-Ho.

The parameters of T.Normalize are channel-wise mean and std of your images.

I just simply set them as 0.5, but you can change them.

You can refer here

from image_segmentation.

LeeJunHyun avatar LeeJunHyun commented on June 22, 2024

If you don't have further issues, I will close the issue. I hope my answer was helpful :)

from image_segmentation.

liubo0902 avatar liubo0902 commented on June 22, 2024

The evaluation code is just for batch size equal to 1?

from image_segmentation.

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.