segmenteverygrain
segmenteverygrain copied to clipboard
ValueError: Could not interpret optimizer identifier: <class 'keras.optimizers.legacy.adam.Adam'>
We got a problem when initializing model.compile(optimizer=Adam, loss=seg.weighted_crossentropy, metrics=["accuracy"])
I think this is a TensorFlow version issue. Try replacing the import statement for Adam with:
from tensorflow.keras.optimizers import Adam