Comments (8)
Same problem here, which appears in the line
model = modellib.MaskRCNN(mode="inference", model_dir=MODEL_DIR, config=config)
I am running
Tensorflow 2.16.1
TensorRT 8.6.1
Cuda 12.3
Cudnn 8.0
Traceback (most recent call last):
File "/home/fata1error404/Mask-RCNN-TF2/samples/test.py", line 36, in
model = modellib.MaskRCNN(mode="inference", model_dir=MODEL_DIR, config=config)
File "/home/fata1error404/.local/lib/python3.10/site-packages/mrcnn/model.py", line 1831, in init
self.keras_model = self.build(mode=mode, config=config)
File "/home/fata1error404/.local/lib/python3.10/site-packages/mrcnn/model.py", line 2029, in build
fpn_classifier_graph(rpn_rois, mrcnn_feature_maps, input_image_meta,
File "/home/fata1error404/.local/lib/python3.10/site-packages/mrcnn/model.py", line 938, in fpn_classifier_graph
shared = KL.Lambda(lambda x: K.squeeze(K.squeeze(x, 3), 2),
File "/home/fata1error404/.local/lib/python3.10/site-packages/keras/src/utils/traceback_utils.py", line 123, in error_handler
raise e.with_traceback(filtered_tb) from None
File "/home/fata1error404/.local/lib/python3.10/site-packages/keras/src/layers/core/lambda_layer.py", line 97, in compute_output_shape
raise NotImplementedError(
NotImplementedError: Exception encountered when calling Lambda.call().
We could not automatically infer the shape of the Lambda's output. Please specify the output_shape
argument for this Lambda layer.
Arguments received by Lambda.call():
• args=('<KerasTensor shape=(None, 1000, 1, 1, 1024), dtype=float32, sparse=False, name=keras_tensor_393>',)
• kwargs={'mask': 'None'}
from mask_rcnn.
is this solved?
from mask_rcnn.
Because i am also getting same errror
from mask_rcnn.
Anyone solved this please tell me i am trying to train it on custom dataset
from mask_rcnn.
Hello I was able to run it in colab. I also encountered the same errors. It was very difficult.
https://github.com/z-mahmud22/Mask-RCNN_TF2.14.0 I used the repo here.
from mask_rcnn.
still not solved
from mask_rcnn.
Hello @zlao3118 zlao3188 Which versions do you use? tensorflow==2.5.0 keras==2.3.1 python 3.8.0 Have you tried?
from mask_rcnn.
I was able to solve it with python 3.11 and tensorflow 2.12.0
from mask_rcnn.
Related Issues (20)
- Problem in importing maskrcnn
- Maskrcnn import error HOT 3
- 'set_weights' error
- 0 accuracy when i run Mask RCNN with LabelMe software
- mask RCNN training takes too much time
- Training Mask R-CNN on custom data, but the training doesn't stop and produces no output or errors
- Updated version of this repo HOT 1
- Hyperparamter Tuning Automated
- help please! StopIteration
- Help!!the anchor is too large for single-target recognition
- Use 'train' or 'splash'
- COLAB VERSION PROBLEM SOLUTION HOT 21
- Improving Berry Detection in Harvest Crates Using Mask R-CNN: Addressing Challenges with Large Image Inputs
- ERROR:root:Error in data_generator: Mismatch between number of class IDs (10) and number of masks (11) and generator_output = next(output_generator) StopIteration
- GPU memory is occupied but cannot proceed HOT 1
- Mask_RCNN
- ValueError: Inputs must be an iterable of at least one Tensor/IndexedSlices with the same dtype and shape.
- ValueError: Exception encountered when calling layer "mrcnn_bbox" (type Reshape).
- mask r-cnn..plz help!!!
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 mask_rcnn.