You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found an issue when trying to run your code, when certain file like "fairseq/fairseq/tasks/fairseq_task.py" import "metrics" they import it from "fairseq" but the metrics are in fact under "fairseq.fairseq.logging" so the correct imports would be "from fairseq.logging import metrics" in the "fairseq/fairseq/tasks/fairseq_task.py" file.
The text was updated successfully, but these errors were encountered:
Moeinh77
changed the title
import issue with metrics
import issue with metrics!
Aug 28, 2023
@Moeinh77 It seems that you didn't install the fairseq provided by this repo. Please uninstall the existing fairseq and install the fairseq provided by this repo.
I found an issue when trying to run your code, when certain file like "fairseq/fairseq/tasks/fairseq_task.py" import "metrics" they import it from "fairseq" but the metrics are in fact under "fairseq.fairseq.logging" so the correct imports would be "from fairseq.logging import metrics" in the "fairseq/fairseq/tasks/fairseq_task.py" file.
The text was updated successfully, but these errors were encountered: