-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
First of all, I would like to congratulate you on this great work. I try to reproduce the results and see how to integrate a new approach into this benchmark. However, not having experience with Tensorflow, I'm having a little trouble debugging the error below.
In fact, I have a problem with Tensorflow learning part of the code. The generation of feautre is going well but the learning part is not working. Below is what I get as an error. I followed all the steps you recommended. I'm using Docker and I have version 2.16 of Tensorflow.
Thanks for your help.
python train_test.py -c config_files/PCPA.yaml
Total params: 31,165,953 (118.89 MB)
Trainable params: 31,165,953 (118.89 MB)
Non-trainable params: 0 (0.00 B)
### Class weights: negative 0.204 and positive 0.796 ###
lerreur commence par là je crois
Traceback (most recent call last):
File "/data/PedestrianActionBenchmark/PedestrianActionBenchmark/train_test.py", line 165, in <module>
run(config_file=config_file)
File "/data/PedestrianActionBenchmark/PedestrianActionBenchmark/train_test.py", line 107, in run
saved_files_path = method_class.train(beh_seq_train, beh_seq_val, **configs['train_opts'],
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/PedestrianActionBenchmark/PedestrianActionBenchmark/action_predict.py", line 759, in train
history = train_model.fit(x=data_train['data'][0],
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/keras/src/utils/traceback_utils.py", line 123, in error_handler
raise e.with_traceback(filtered_tb) from None
File "/usr/local/lib/python3.11/dist-packages/tensorflow/python/data/ops/from_generator_op.py", line 124, in _from_generator
raise TypeError(f"`output_signature` must contain objects that are "
TypeError: `output_signature` must contain objects that are subclass of `tf.TypeSpec` but found <class 'list'> which is not.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels