Giter VIP home page Giter VIP logo

landcoverseg's People

Contributors

bartoszptak avatar

Watchers

 avatar  avatar  avatar

landcoverseg's Issues

How to map mask values to labels

Hi, thank you for uploading this. I have successfully trained and exported the included model on our university cluster and have tested that it works in my Deepness plugin.

I am starting to create my own custom dataset and am using the following as my image and mask (actual resolution 4284x4218):

image

image

The colors in the mask are arbitrary single byte values I chose when generating the mask (1, 150, 200) as I have 3 classes (I think

mask = np.zeros((*label.shape[:2], 5), dtype=np.uint8)
for i in range(5):
assumes 5 classes so my class configuration in the yaml has two extra classes, ['background', 'shrub', 'forest', 'null1', 'null2'])

I trained and it ran for 148 epochs before finishing. I exported and tested out the model on the training area and got the following (overlaid on my training mask for display here):

image

image

It looks like it is assigning channel_0 to most of the image, and there is some assignment of channel_1, presumably my shrub layer. None of the forest layer (value 200) were assigned. I tried a larger extent as well, and only got assignments from the first 2 layers.

I can produce much more training data, but wanted to make sure I am using the software correctly first. When defining classes: ['background', 'building', 'woodland', 'water', 'road'], how do you know which pixel values in the raster these classes will be mapped to, is it based on byte order?

And do you think my lack of any forest assignments is based on my low amount or low quality of training data (e.g. my masks for the forest layer are too messy), or maybe it is something I am configuring incorrectly?

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.