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
Do not use relative names in imports. Even if the module is in the same package, use the full package name. This helps prevent unintentionally importing a package twice.
先决条件
问题类型
我正在使用官方支持的任务/模型/数据集进行评估。
环境
https://github.com/open-compass/opencompass/blob/main/opencompass/models/__init__.py
relative import caused wrong package import, you should use absolute import in such a complex project.
重现问题 - 代码/配置示例
重现问题 - 命令或脚本
重现问题 - 错误信息
relative import a outside module instead of opencompass.models.xxx
you should use absolute import
其他信息
change to
The text was updated successfully, but these errors were encountered: