Questions tagged [mask-rcnn]
62 questions
7
votes
3 answers
TensorFlow 2 Mask-RCNN?
I can't seem to find a reliable version of Mask-RCNN for TensorFlow 2. The matterport mask-rcnn (https://github.com/matterport/Mask_RCNN) has depreciated Tensorflow 1 code. Does anyone know of TensorFlow 2 implementations of RCNN either based on…

myelin
- 89
- 1
- 2
2
votes
0 answers
is there a way to convert a yolov5 dataset for rcnn or a mask-rcnn?
I currently got a yolov5 dataset , with everything on it (labels in form of : label , x , y , widh , height).
My question is , is there an fast way to convert it into a proper custom dataset for mask-rcnn?
Im currently searching the whole web,…

Murphy
- 21
- 2
1
vote
1 answer
Customize pytorch model export to ONNX
I am trying to export pretrained Mask R-CNN model to ONNX format. Since this model in basic configuration has following structure (here I added batch_size as dynamic axes):
I want to customize my model and add batch_size to output (it means I need…

Angelika
- 200
- 3
- 16
1
vote
1 answer
No evaluator found. Use `DefaultTrainer.test(evaluators=)`, or implement its `build_evaluator` method
I am using Detectron2 in a notebook and I keep getting the error: No evaluator found. Use DefaultTrainer.test(evaluators=), or implement its build_evaluator method.
I already have the build_evaluator function in the Trainer function.
class…

Azra Tuni
- 11
- 4
1
vote
0 answers
Using Class_weights for imbalance dataset in Mask RCNN
I have added Class_Weights to be used while training Mask RCNN on custome dataset. It is showing error :
ValueError: Unknown entries in class_weight dictionary: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]. Only expected following keys:…

Tima
- 11
- 1
1
vote
1 answer
Not correct instance segmentation if bounding box intersects another bounding boxes
I trained Mask-RCNN model by Detectron 2 for only one class for instance segmentation of lines. If the line is located at an angle to the horizon close to 0 or 90 degrees and its bounding box does not intersect the boxes of other lines, then…

Iurii Sobolev
- 11
- 2
1
vote
1 answer
How to make Mask-RCNN work with tensorflow version later than 2.5.3?
Predicting with a Mask-RCNN on python 3.8 / 3.9 / 3.10 and tensorflow 2.6+ gives predictions that do not make sense, but with python 3.8 or python 3.9 and tensorflow version < 2.6 everything works just fine.
My Problem:
I'm using a Mask RCNN in…

Codekalb
- 21
- 3
1
vote
0 answers
'use_multiprocessing=True' in Mask RCNN with Keras 2.x & Tensorflow 2.x
I am using Keras 2.9.0 and Tensorflow 2.9.2 and already managed to make the necessary changes to compile the Mask-RCNN model (there are many compatability issues as it is a 2017 model).
The code is running on Colab with GPU.
I get now the following…

ArieAI
- 354
- 1
- 12
1
vote
1 answer
How can I solve OpenCV(4.6.0) :-1: error: (-5:Bad argument) in function 'rectangle'?
I study on a instance segmentation model. I complede training part. BUt in the inference part; i faced with an error as I showed below. I converted boxes[i][0] to the int(boxes[i][0]) but it gives also error. Are there any idea to help?
def…

dilara
- 19
- 9
1
vote
1 answer
Mask RCNN, AttributeError: module 'keras.engine' has no attribute 'Layer
I tried to run matterport/MaskRCNN.
Even though I've tried to change
import keras.engine as KE to import keras.engine.topology as KE
topology didn't work because topology module could not be resolved.
I've also tried
pip uninstall keras -y
pip…

gyuegg
- 11
- 2
0
votes
0 answers
Coco style dataset: Custom collate_fn function in Dataloader
I have a coco style dataset and struggling to code the dataloader, in which Dataset class is the same as this code and __getitem__ returns the same outputs in the link (images, image_metas, rpn_match, rpn_bbox, gt_class_ids, gt_boxes, gt_masks)
When…

S.EB
- 1,966
- 4
- 29
- 54
0
votes
0 answers
How to get the course grained and the fine grained features for PointRendNet?
I wanted to implement PointRend Net from scratch (https://arxiv.org/pdf/1912.08193v2.pdf) to predict a binary mask. Can anyone help me understand how to get the coarse grained and the fine grained features mentioned in the paper?
Any suggestions…
0
votes
0 answers
Mask RCNN model for Image segmentation is stuck on First epoch
I am dealing with issue where my model is stuck on 1st epoch (look below).
I am using this library which is the fork of the original Mask-RCNN library:
https://github.com/alsombra/Mask_RCNN-TF2
Dataset that I am currently using has 27 images with…

Amadej Šenk
- 53
- 2
- 9
0
votes
0 answers
Receiving this error while trying to load the weights for Mask RCNN
# Create model object in inference mode.
model = modellib.MaskRCNN(mode="inference", model_dir='mask_rcnn_coco.hy', config=config)
# Load weights trained on MS-COCO
model.load_weights('mask_rcnn_coco.h5', by_name=True)
This is the code i am…
0
votes
0 answers
Eliminate Classification Head in Mask R-CNN
Is it possible to remove the classification head in Mask R-CNN.
Despite enabling class-agnostic settings for both bounding box regression and mask prediction, I am still observing classification loss during training. This seems to suggest that the…