Code Monkey home page Code Monkey logo

mask-rcnn_tf2.14.0's People

Contributors

z-mahmud22 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

mask-rcnn_tf2.14.0's Issues

SGD optimizer

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?

Error when i try to train the model

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].

Predict wrong class

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

'SGD' object has no attribute 'get_updates'

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'.

keras.optimizers.legacy.SGD() not working

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)

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.