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

Training report error #4

Open
clk-ad opened this issue Nov 29, 2023 · 3 comments
Open

Training report error #4

clk-ad opened this issue Nov 29, 2023 · 3 comments

Comments

@clk-ad
Copy link

clk-ad commented Nov 29, 2023

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

@mkang315
Copy link
Owner

mkang315 commented Dec 4, 2023

It was a typo. I've changed 'bfg' to 'bgf'. Thank you!

@zhaobing17
Copy link

@clk-ad 你在导入这个项目的时候,在train.py第七行是否报错,提升未引用包的问题。请问一下你怎么解决的

@mkang315
Copy link
Owner

from ...nn.tasks import DetectionModel
Is this line?

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