Coder Social home page Coder Social logo

Dataset training about image_segmentation HOT 7 CLOSED

leejunhyun avatar leejunhyun commented on June 27, 2024
Dataset training

from image_segmentation.

Comments (7)

LeeJunHyun avatar LeeJunHyun commented on June 27, 2024

Hello, @loaysh2010 .
You should use same size of ground truth.
Please check SR_Flat and GT_Flat size.

from image_segmentation.

loaysh2010 avatar loaysh2010 commented on June 27, 2024

@LeeJunHyun ,
Thank you very much for your concern. Actually, I did check SR_Flat and GT_Flat size. the input image and GT image are the same size [1,3,256,256], but the SR image is [1,1,256,256], so I convert the GT image to grayscale [1,1,256,256] after flatting it be the same this. I hope that will overcome the problem.
Do you have any other idea?

from image_segmentation.

LeeJunHyun avatar LeeJunHyun commented on June 27, 2024

@loaysh2010 ,
I think your GT has 3 classes.
If I am correct, then you should change the number of output channel of network.

from image_segmentation.

loaysh2010 avatar loaysh2010 commented on June 27, 2024

@LeeJunHyun
my GT was saved as png colored image. so it has the shape of [1,3,256,256] where 3 is for RGB colors. So after converting it to grayscale it's shaped become [1,1,256,256] so when flatting it get the same size as SR flatted image.
do you think to change the number of output channel of the network better than convert the GT to grayscale with the previously mentioned shape ??

from image_segmentation.

LeeJunHyun avatar LeeJunHyun commented on June 27, 2024

If your GT has RGB channel, each channel must have its own meaning, right?
If so, it would be batter that you just keep GT as colored image.

from image_segmentation.

loaysh2010 avatar loaysh2010 commented on June 27, 2024

@LeeJunHyun Changed the output channel for the model to 3. and error fixed
Thanks for your time. You can close the issue

from image_segmentation.

soans1994 avatar soans1994 commented on June 27, 2024

hello author,

how can i use your code for mutliclass segmentation. i have rgb ground truth.
thank you

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.