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

TypeError: __init__() got an unexpected keyword argument 'save_freq' #9

Open
lzq04 opened this issue Oct 28, 2021 · 1 comment
Open

Comments

@lzq04
Copy link

lzq04 commented Oct 28, 2021

when I train dataset:
python train.py --data_path=$my_data_path

I meat the problem:
cp_callback = tf.keras.callbacks.ModelCheckpoint(checkpoint_path, verbose=1, save_weights_only=True,save_freq='epoch', period=10)
TypeError: init() got an unexpected keyword argument 'save_freq'

@dohoseok
Copy link
Owner

Sorry for late response.
Maybe your TF version is too old.
As I know, tf version over 1.15 has 'save_freq' in ModelCheckpoint. (See below)
https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/keras/callbacks/ModelCheckpoint

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

2 participants