Comments (2)
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.
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)
- Class agnostic mask-RCNN HOT 1
- Access regression, classification and masks submodel outputs HOT 1
- which layer to extract feature image as image embedding HOT 2
- Off-by-one rounding error in OID mask resizing HOT 3
- Convert resnet50_coco_v0.2.0.h5 to tensorflow serving
- Is it possible to calculate the Dice loss ? HOT 1
- TypeError: Unexpected keyword argument passed to optimizer: learning_rate
- how to train on TPU? should I migrate keras to tf.keras?
- ModuleNotFoundError: No module named 'keras_retinanet.utils.gpu HOT 5
- AttributeError: 'tuple' object has no attribute 'layer' HOT 1
- Training error regarding retinanet HOT 2
- Config file HOT 1
- Difference between weights and snapshots in your implementation (also w/o freeze model argument) HOT 2
- AttributeError: module 'tensorflow' has no attribute 'config' HOT 1
- No mask output
- Is there any chance to have Keras_MaskRCNN in Tensorflow 2 and compatible with Keras_Retinanet ? HOT 1
- Installation fail HOT 1
- the dimension of inference result was 3 HOT 4
- in detection box[2] < box[0] HOT 3
- Weird losses behaviour HOT 17
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from keras-maskrcnn.