-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
I tried running the evaluation only for the 3DPW dataset with the following command:
python scripts/spec_eval.py --cfg data/spec/checkpoints/spec_config.yaml --opts DATASET.VAL_DS 3dpw-test-cam
But it gives the following error:
TypeError: test_step() missing 1 required positional argument: 'dataloader_nb'
Fixed it by giving a default value for dataloader_nb for the test_step function in trainer.py:
def test_step(self, batch, batch_nb, dataloader_nb=0):
return self.validation_step(batch, batch_nb, dataloader_nb)
The error occurs because we don't append dataloader_idx to args in evaluation_loop.py:
if multiple_test_loaders or multiple_val_loaders:
args.append(dataloader_idx)
Metadata
Metadata
Assignees
Labels
No labels