Skip to content

Error in running gtf_kera.Train() function #183

@tjasmin111

Description

@tjasmin111

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions