Giter VIP home page Giter VIP logo

Comments (3)

taesungp avatar taesungp commented on July 22, 2024

If the semantic map is in color, you would first have to map the pixels values into class label numbers.

For example, if red is person, you will have to first change the pixel value of [255, 0, 0] to the class label of person.

As an alternative, if you don't have the class numbers that correspond to the RGB colors of the semantic layout, you can try modifying the code to directly learn meaningful feature embedding from the RGB values. In detail, you will comment out the code to create the one-hot vector and treat the 3-channel RGB values as input to SPADE. Our code currently does not support that.

from spade.

taki0112 avatar taki0112 commented on July 22, 2024

Did you try to insert the segmentation image instead of using one-hot vector?
just do a simple normalization.

For example, if you have a segmentation image in the shape of [256, 256, 3],
Simply an attempt to a network with a value between -1 and 1.

from spade.

mingyuliutw avatar mingyuliutw commented on July 22, 2024

Knowing that the labels are discrete value, fitting them in a continuous space of color values is likely sub-optimal.

from spade.

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.