wentaozhu / deep-mil-for-whole-mammogram-classification

Zhu, Wentao, Qi Lou, Yeeleng Scott Vang, and Xiaohui Xie. "Deep Multi-instance Networks with Sparse Label Assignment for Whole Mammogram Classification." MICCAI 2017.
MIT License
114 stars 37 forks source link

running error:ImportError: cannot import name Merge #5

Closed zccoder closed 6 years ago

zccoder commented 7 years ago

WenTao: hello! Following the step you published in the github,I found the problem below: '' Traceback (most recent call last): File "run_cnn_k_new.py", line 19, in from convnetskeras.convnets import preprocess_image_batch, convnet File "/usr/local/lib/python2.7/dist-packages/convnetskeras/convnets.py", line 3, in from convnetskeras.customlayers import crosschannelnormalization File "/usr/local/lib/python2.7/dist-packages/convnetskeras/customlayers.py", line 6, in from keras.layers.core import Merge ImportError: cannot import name Merge '' I have tried method to solve it,but no result.I am waiting for your answer!

wentaozhu commented 7 years ago

I think it is the keras version problem. You can use the proper function in the new keras version , or you can install the old version keras instead. Thanks!