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

python applications/task3.py crashes #34

Open
weienzhang opened this issue Dec 30, 2019 · 0 comments · May be fixed by #38
Open

python applications/task3.py crashes #34

weienzhang opened this issue Dec 30, 2019 · 0 comments · May be fixed by #38

Comments

@weienzhang
Copy link

Today when i ran this command "python task3.py -n", it turns out the error like:

[D] Feature vector [200]
[D] Batch size [256]
[D] Epochs [200]
[I] Training
[I] | Loss | Metric |
[I] | binary_crossentropy | binary_accuracy |
[I] Epoch | Train | Val | Train | Val | Time
[I] ----- + -------- + -------- + -------- + -------- + ---------------
Traceback (most recent call last):
File "task3.py", line 294, in
sys.exit(main(sys.argv))
File "task3.py", line 228, in main
app.system_training()
File "/home/zwe/Downloads/DCASE2017-baseline-system-master/dcase_framework/decorators.py", line 38, in function_wrapper
to_return = func(*args, **kwargs)
File "/home/zwe/Downloads/DCASE2017-baseline-system-master/dcase_framework/application_core.py", line 2214, in system_training
validation_files=validation_files
File "/home/zwe/Downloads/DCASE2017-baseline-system-master/dcase_framework/learners.py", line 2468, in learn
class_weight=class_weight
File "/root/anaconda3/lib/python3.7/site-packages/keras/engine/training.py", line 1239, in fit
validation_freq=validation_freq)
File "/root/anaconda3/lib/python3.7/site-packages/keras/engine/training_arrays.py", line 192, in fit_loop
callbacks._call_batch_hook('train', 'begin', batch_index, batch_logs)
File "/root/anaconda3/lib/python3.7/site-packages/keras/callbacks/callbacks.py", line 84, in _call_batch_hook
batch_hook = getattr(callback, hook_name)
AttributeError: 'ProgressLoggerCallback' object has no attribute 'on_train_batch_begin'

I just checked the code i downloaded from the github and the file "keras_utils.py" has changed according to the commit 14f4e3d, and i don't konw whether it is a problem with Keras version again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant