OFA-Sys / OFA

Official repository of OFA (ICML 2022). Paper: OFA: Unifying Architectures, Tasks, and Modalities Through a Simple Sequence-to-Sequence Learning Framework
Apache License 2.0
2.39k stars 248 forks source link

import issue with metrics! #414

Open Moeinh77 opened 1 year ago

Moeinh77 commented 1 year ago

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.

logicwong commented 12 months ago

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