Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name 'metrics' from 'fairseq' (unknown location) #305

Closed
funykatebird opened this issue Dec 1, 2022 · 4 comments
Assignees

Comments

@funykatebird
Copy link

No description provided.

@yangapku yangapku self-assigned this Dec 1, 2022
@yangapku
Copy link
Member

yangapku commented Dec 1, 2022

Please refer to #217 #225 #249 .

@funykatebird
Copy link
Author

https://blog.csdn.net/a586351/article/details/122742233
需要手动添加fairseq的路径
例如:
export PYTHONPATH=$PYTHONPATH:/home/jovyan/OFA-main/fairseq

@yangapku
Copy link
Member

yangapku commented Dec 1, 2022

https://blog.csdn.net/a586351/article/details/122742233 需要手动添加fairseq的路径 例如: export PYTHONPATH=$PYTHONPATH:/home/jovyan/OFA-main/fairseq

Great! Has the problem be totally solved now? If so, let's close it. :)

@sankexin
Copy link

sankexin commented Nov 2, 2023

在train_caption_stage1.sh顶部添加这行:

export PYTHONPATH=$PYTHONPATH:pwd/../../fairseq

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants