Mask_RCNN icon indicating copy to clipboard operation
Mask_RCNN copied to clipboard

parallel_model.py

Open ganav opened this issue 6 years ago • 10 comments

I am using keras 2.2.4 My error is as below:


Traceback (most recent call last): File "C:\Users\gana\AppData\Local\Programs\Python\Python35\lib\site-packages\keras\engine\network.py", line 307, in setattr is_graph_network = self._is_graph_network File "parallel_model.py", line 45, in getattribute return super(ParallelModel, self).getattribute(attrname) AttributeError: 'ParallelModel' object has no attribute '_is_graph_network'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "parallel_model.py", line 158, in model = ParallelModel(model, GPU_COUNT) File "parallel_model.py", line 34, in init self.inner_model = keras_model File "C:\Users\gana\AppData\Local\Programs\Python\Python35\lib\site-packages\keras\engine\network.py", line 310, in setattr 'It looks like you are subclassing Model and you ' RuntimeError: It looks like you are subclassing Model and you forgot to call super(YourClass, self).__init__(). Always start with this line.

I have tried other solutions that mentioned in this community Now should i downgrade my version as suggested below? i actually dont wan to do so...what is the solution? "in order to use multiple GPUs I needed to downgrade keras 2.2.2 to kera 2.1.3"

ganav avatar Jul 01 '19 03:07 ganav