We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
尝试在.py形式的配置文件中引入自定义的模型结构。但反复报错,不知正确的语法格式是什么?
目录结构:
project ├── custom_module │ ├──__init__.py │ └──vision.py # 一号位置 └──config ├──vision.py # 二号位置 └──xtuner_config.py
在project目录下执行xtuner train config/xtuner_config.py。我尝试过:
from custom_module.vision import VisionModel
from vision import VisionModel
from .vision import VisionModel
请问正确的引入模块的方式是什么?
我理解应该是第三种,因为使用with read_base():尝试引入时至少正确找到了文件(当然read_base只能引入配置项不能引入定义……)
with read_base():
lazy import导致每次修改都需要预处理数据集,调试起来还挺麻烦的……
The text was updated successfully, but these errors were encountered:
from project.custom_module.vision import VisionModel 才是对的
Sorry, something went wrong.
No branches or pull requests
尝试在.py形式的配置文件中引入自定义的模型结构。但反复报错,不知正确的语法格式是什么?
目录结构:
在project目录下执行xtuner train config/xtuner_config.py。我尝试过:
from custom_module.vision import VisionModel
from vision import VisionModel
from .vision import VisionModel
均不能正确引入。
请问正确的引入模块的方式是什么?
我理解应该是第三种,因为使用
with read_base():
尝试引入时至少正确找到了文件(当然read_base只能引入配置项不能引入定义……)lazy import导致每次修改都需要预处理数据集,调试起来还挺麻烦的……
The text was updated successfully, but these errors were encountered: