powerful-benchmarker icon indicating copy to clipboard operation
powerful-benchmarker copied to clipboard

Get error when execute script in 'powerful-benchmarker' directory.

Open hwopark opened this issue 2 years ago • 1 comments
trafficstars

When I execute the script below, I got TypeError.

python powerful_benchmarker/main.py --exp_name test_experiment0 --dataset mnist
--src_domains mnist --adapter PretrainerConfig
--download_datasets --num_trials 1
--max_epochs 20 --pretrain_on_src --validator src_accuracy
--use_stat_getter

Typeerror: accuracy() missing 1 required positional argument: 'task'

hwopark avatar Apr 27 '23 08:04 hwopark

Probably caused by an incompatible version of torchmetrics.

pip install torchmetrics==0.9.3

KevinMusgrave avatar Apr 27 '23 14:04 KevinMusgrave