You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ValueError: decay is deprecated in the new Keras optimizer, pleasecheck the docstring for valid arguments, or use the legacy optimizer, e.g., tf.keras.optimizers.legacy.SGD.
#38
Open
MrIzzat opened this issue
May 17, 2024
· 0 comments
The model creation part of the course at 3:31:00 raises some errors due to the new versions of TensorFlow changing some things around with how optimizers work. I recommend modifying the simpsons.py file as specified by this answer here.
The issue is specifically with this code in the tutorial:
model = canaro.models.createSimpsonsModel(IMG_SIZE=imageSize, channels=channels, output_dim=len(characters),
loss='binary_crossentropy', decay=1e-7, learning_rate=0.001, momentum=0.9,
nesterov=True)
Which can be fixed by adding this line in the simpsons.py file right before the return line:
The model creation part of the course at 3:31:00 raises some errors due to the new versions of TensorFlow changing some things around with how optimizers work. I recommend modifying the simpsons.py file as specified by this answer here.
The issue is specifically with this code in the tutorial:
Which can be fixed by adding this line in the simpsons.py file right before the return line:
The text was updated successfully, but these errors were encountered: