Giter Club home page Giter Club logo

Comments (2)

hgaiser avatar hgaiser commented on July 28, 2024

In addition to the error, I'm confused as to why the mask is set to be the the size of the image and why it already has an extra dimension.

The reason for the extra dimension is because some functionality of keras for transforming images requires 3 channel images. The reason for setting the mask size to be the shape of the image is because for the loss function we need it to be that shape. We don't know where in the image the network will predict a detection, providing the mask in the same frame as the image means we are prepared for any bbox. We could store the masks clipped, but that would mean we need to place the mask in an image frame somewhere in the generator. This is not a big deal of course, but if possible it's nice to prevent that. Additionally, storing it in the image frame won't give much data overhead, png for instance is perfectly capable of encoding big black spaces in a few bytes.

Regarding the error, let's continue the discussion on Slack so we can debug the problem. I'll report here when an issue is found so others can see it too if that is useful.

from keras-maskrcnn.

ashnair1 avatar ashnair1 commented on July 28, 2024

The issue was due to some of bounding boxes being out of my image. @hgaiser has since modified the code to account for this. Presently, it does so by ignoring those faulty annotations and not having the network train on them.

from keras-maskrcnn.

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.