broadinstitute / keras-rcnn

Keras package for region-based convolutional neural networks (RCNNs)
Other
555 stars 222 forks source link

AttributeError: module 'keras.engine' has no attribute 'topology' #206

Closed aseylys closed 6 years ago

aseylys commented 6 years ago

The ObjectProposal class in .layers.objection_detection is the one causing this error. This seems to be because of the upgrade of Keras from 2.1.6 to 2.2.

A lot of the online chatter says to just change all instances of topology to saving, that doesn't seem to work in your code.

Is there a solution that doesn't involve downgrading Keras?

Temporary Fix: Replace keras.engine.topology.Layer with keras.engine.base_layer.Layer, I don't know if this is how they're going to want it from now on, but for now it works.

0x00b1 commented 6 years ago

Hi, @aseylys! I appreciate the debugging. I think your recommended fix is indeed the best fix!

I'll work on a patch now.

0x00b1 commented 6 years ago

https://github.com/broadinstitute/keras-rcnn/pull/208

0x00b1 commented 6 years ago

Merged. :)