Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in running gtf_kera.Train() function #183

Open
tjasmin111 opened this issue Sep 15, 2023 · 0 comments
Open

Error in running gtf_kera.Train() function #183

tjasmin111 opened this issue Sep 15, 2023 · 0 comments

Comments

@tjasmin111
Copy link

tjasmin111 commented Sep 15, 2023

I was trying to run the CCTV fire classifier in Google Colab. All was good (I piped the monk-colab). But on the training part, when running this cell, I get an error and can't proceed:

#Start Training
keras_gtf.Train();

Error:

WARNING:absl:`lr` is deprecated in Keras optimizer, please use `learning_rate` or use the legacy optimizer, e.g.,tf.keras.optimizers.legacy.SGD.
Training Start
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
[<ipython-input-15-12d6ca9cfc24>](https://localhost:8080/#) in <cell line: 2>()
      1 #Start Training
----> 2 keras_gtf.Train();
      3 
      4 #Read the training summary generated once you run the cell and training is completed

9 frames
[/usr/local/lib/python3.10/dist-packages/keras/src/optimizers/optimizer.py](https://localhost:8080/#) in _process_kwargs(self, kwargs)
    133         for k in kwargs:
    134             if k in legacy_kwargs:
--> 135                 raise ValueError(
    136                     f"{k} is deprecated in the new Keras optimizer, please "
    137                     "check the docstring for valid arguments, or use the "

ValueError: decay is deprecated in the new Keras optimizer, please check the docstring for valid arguments, or use the legacy optimizer, e.g., tf.keras.optimizers.legacy.SGD.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant