Open cifkao opened 3 months ago
I have the same problem. Have you already solved it? :)
I have now found the problem and a solution to it.
They want to set the current_epoch
attribute of the PyTorch Lightning Trainer variable by calling:
https://github.com/hearbenchmark/hear-eval-kit/blob/855964977238e89dfc76394aa11c37010edb6f20/heareval/predictions/task_predictions.py#L1102
To get the wanted outcome, change this line to:
trainer.fit_loop.epoch_progress.current.completed = grid_point.epoch
.
This actually changes the value you get when calling self.current_epoch
in _score_epoch_end (line 464).
Another solution would probably be to just set a new variable of the trainer and then retrieve the value of that variable where you need it.
Thanks @theMoro, that fixed the problem for me!
I'm trying to run the benchmark but it crashes on the
dcase2016_task2
task. After training for what seems like 229 epochs, at the prediction stage, I get aKeyError
trying to access the postprocessing parameters at epoch 240:I'm using a conda environment. I have
pytorch-lightning==1.9.5
,torch==1.13.1
andscikit-learn==1.0.2
.