Open clk-ad opened 10 months ago
1.root@7s26acs0ob5sl-0:/E22201117/clk/code/BGF-YOLO-main# python yolo/bgf/detect/train.py Traceback (most recent call last): File "yolo/bgf/detect/train.py", line 7, in from ...nn.tasks import DetectionModel ValueError: attempted relative import beyond top-level package 2.BGF-YOLO/yolo/init.py from . import bfg all = 'bfg', # tuple or list
May I ask if it should be bgf? from . import bgf all = 'bgf', # tuple or list
It was a typo. I've changed 'bfg' to 'bgf'. Thank you!
@clk-ad 你在导入这个项目的时候,在train.py第七行是否报错,提升未引用包的问题。请问一下你怎么解决的
from ...nn.tasks import DetectionModel Is this line?
1.root@7s26acs0ob5sl-0:/E22201117/clk/code/BGF-YOLO-main# python yolo/bgf/detect/train.py Traceback (most recent call last): File "yolo/bgf/detect/train.py", line 7, in
from ...nn.tasks import DetectionModel
ValueError: attempted relative import beyond top-level package
2.BGF-YOLO/yolo/init.py
from . import bfg
all = 'bfg', # tuple or list
May I ask if it should be bgf? from . import bgf all = 'bgf', # tuple or list