[Help]: calc_metrics.py: error: unrecognized arguments
Problem Overview
calc_metrics.py: error: unrecognized arguments
Steps Taken
(Detail your attempts to resolve the issue, including any relevant steps or processes.)
- Run command:
- See errors: please refer to the screenshots
Expected Outcome
The arguments can be passed successfully to run the calc_metrics.py
Screenshots
Environment Information
- Operating System: [e.g. Ubuntu 20.04.5 LTS]
- Python Version: [e.g. Python 3.9.15]
- Driver & CUDA Version: [e.g. Driver 470.103.01 & CUDA 11.4]
- Error Messages and Logs: [If applicable, provide any error messages or relevant log outputs]
Additional context
(Add any other context about the problem here.)
You can edit the commands in egs/metrics/run.sh as the following:
for all params that are not included here in the script but available in the
calc_metrics.py, you can do it like this. I hope this works for your case!
Problem Overview
calc_metrics.py: error: unrecognized arguments
Steps Taken
(Detail your attempts to resolve the issue, including any relevant steps or processes.)
- Run command:
- See errors: please refer to the screenshots
Expected Outcome
The arguments can be passed successfully to run the calc_metrics.py
Screenshots
![]()
Environment Information
- Operating System: [e.g. Ubuntu 20.04.5 LTS]
- Python Version: [e.g. Python 3.9.15]
- Driver & CUDA Version: [e.g. Driver 470.103.01 & CUDA 11.4]
- Error Messages and Logs: [If applicable, provide any error messages or relevant log outputs]
Additional context
(Add any other context about the problem here.)
Hi, I also encountered the same problem when calculating speaker similarity. Have you solved this problem?
I encountered the same issue. After some initial debugging, it seems that the parser arguments are overridden when the library frechet_audio_distance is imported via ./bin/calc_metrics.py line 30, ./evaluation/metrics/spectrogram/frechet_distance.py line 6.
The temporary solution for me is to simply comment out line 30 and 54 in ./bin/calc_metrics.py, shown in the following screenshot.

