Amphion icon indicating copy to clipboard operation
Amphion copied to clipboard

[Help]: calc_metrics.py: error: unrecognized arguments

Open SylviaZiyaZhou opened this issue 1 year ago • 3 comments

Problem Overview

calc_metrics.py: error: unrecognized arguments

Steps Taken

(Detail your attempts to resolve the issue, including any relevant steps or processes.)

  1. Run command: 1721106135154
  2. See errors: please refer to the screenshots

Expected Outcome

The arguments can be passed successfully to run the calc_metrics.py

Screenshots

1721106026785 e0fd8e96c8aeda8de9c90d181d82967

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.)

SylviaZiyaZhou avatar Jul 16 '24 05:07 SylviaZiyaZhou

You can edit the commands in egs/metrics/run.sh as the following:

Screenshot 2024-07-19 at 4 30 02 PM 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!

caigun avatar Jul 19 '24 08:07 caigun

Problem Overview

calc_metrics.py: error: unrecognized arguments

Steps Taken

(Detail your attempts to resolve the issue, including any relevant steps or processes.)

  1. Run command: 1721106135154
  2. See errors: please refer to the screenshots

Expected Outcome

The arguments can be passed successfully to run the calc_metrics.py

Screenshots

1721106026785 e0fd8e96c8aeda8de9c90d181d82967

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?

CriDora avatar Dec 19 '24 09:12 CriDora

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.

Image

jzmzhong avatar Feb 05 '25 21:02 jzmzhong