z-mahmud22 / mask-rcnn_tf2.14.0 Goto Github PK
View Code? Open in Web Editor NEWMask R-CNN for object detection and instance segmentation on Keras and TensorFlow 2.14.0 and Python 3.10.12
License: Other
Mask R-CNN for object detection and instance segmentation on Keras and TensorFlow 2.14.0 and Python 3.10.12
License: Other
I have a problem like this:
in _make_train_function
updates = self.optimizer.get_updates(
AttributeError: 'SGD' object has no attribute 'get_updates'
How can I fix it?
Hello, this error appears to me when i try to train the model:
ValueError: Dimensions must be equal, but are 256 and 28 for '{{node mrcnn_mask_loss/mul}} = Mul[T=DT_FLOAT](mrcnn_mask_loss/GatherV2_1, mrcnn_mask_loss/Log)' with input shapes: [?,256,256], [?,28,28].
Your code very good but predict class wrong
It always result predicts the first class.
Example we class CLASS_NAMES = ['BG', 'A', 'B', 'C', 'D', 'E', 'F']
your code result predict is class A always Whether using images of other classes
i got this error . anyone help me in that please.
Epoch 1/10
Traceback (most recent call last):
File "/content/drive/MyDrive/Object segmentation/Testing_Mask-Rcnn/fine-tune-MaskRcnn/beagle.py", line 294, in
train(model)
File "/content/drive/MyDrive/Object segmentation/Testing_Mask-Rcnn/fine-tune-MaskRcnn/beagle.py", line 162, in train
model.train(dataset_train, dataset_val,
File "/usr/local/lib/python3.10/dist-packages/mask_rcnn_tf2-1.0-py3.10.egg/mrcnn/model.py", line 2371, in train
File "/usr/local/lib/python3.10/dist-packages/keras/src/engine/training_v1.py", line 856, in fit
return func.fit(
File "/usr/local/lib/python3.10/dist-packages/keras/src/engine/training_generator_v1.py", line 647, in fit
return fit_generator(
File "/usr/local/lib/python3.10/dist-packages/keras/src/engine/training_generator_v1.py", line 282, in model_iteration
batch_outs = batch_function(*batch_data)
File "/usr/local/lib/python3.10/dist-packages/keras/src/engine/training_v1.py", line 1180, in train_on_batch
self._make_train_function()
File "/usr/local/lib/python3.10/dist-packages/keras/src/engine/training_v1.py", line 2284, in _make_train_function
updates = self.optimizer.get_updates(
AttributeError: 'SGD' object has no attribute 'get_updates'.
Traceback (most recent call last):
File "/content/Mask-RCNN_TF2.14.0/samples/balloon/balloon.py", line 317, in
train(model)
File "/content/Mask-RCNN_TF2.14.0/samples/balloon/balloon.py", line 149, in train
model.train(dataset_train, dataset_val,
File "/usr/local/lib/python3.10/dist-packages/mask_rcnn_tf2-1.0-py3.10.egg/mrcnn/model.py", line 2371, in train
File "/usr/local/lib/python3.10/dist-packages/keras/src/engine/training_v1.py", line 856, in fit
return func.fit(
File "/usr/local/lib/python3.10/dist-packages/keras/src/engine/training_generator_v1.py", line 647, in fit
return fit_generator(
File "/usr/local/lib/python3.10/dist-packages/keras/src/engine/training_generator_v1.py", line 282, in model_iteration
batch_outs = batch_function(*batch_data)
File "/usr/local/lib/python3.10/dist-packages/keras/src/engine/training_v1.py", line 1180, in train_on_batch
self._make_train_function()
File "/usr/local/lib/python3.10/dist-packages/keras/src/engine/training_v1.py", line 2284, in _make_train_function
updates = self.optimizer.get_updates(
AttributeError: 'SGD' object has no attribute 'get_updates'
I have changed the SGD optimizer to the legacy one, but error still presists.
optimizer = tf.keras.optimizers.legacy.SGD(lr=learning_rate, momentum=momentum, clipnorm=self.config.GRADIENT_CLIP_NORM)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.