qubvel / segmentation_models

Segmentation models with pretrained backbones. Keras and TensorFlow Keras.
MIT License
4.74k stars 1.03k forks source link

keras.layers' has no attribute 'DepthwiseConv2D #303

Open SreenijaK opened 4 years ago

SreenijaK commented 4 years ago

i get the following error AttributeError: module 'keras.layers' has no attribute 'DepthwiseConv2D'

when i run model = sm.Unet(BACKBONE, classes=n_classes, activation=activation);

while I'm running the binary segmentation (camvid).ipynb

qubvel commented 4 years ago

What is your keras version?

SreenijaK commented 4 years ago

Version: 2.0.8

qubvel commented 4 years ago

Update keras, please. Look at requirements in README

SreenijaK commented 4 years ago

yes thats the issue. My bad. I was going through the multiclass segmentation. i didnt understand where are we assigning the class color to the label. for example in my annotation file if i marked all the cars with red, where are we mapping the red color with cars in the code?