mkang315 / BGF-YOLO

[MICCAI'24] Official implementation of "BGF-YOLO: Enhanced YOLOv8 with Multiscale Attentional Feature Fusion for Brain Tumor Detection".
GNU Affero General Public License v3.0
77 stars 12 forks source link

Training report error #4

Open clk-ad opened 10 months ago

clk-ad commented 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

mkang315 commented 10 months ago

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

zhaobing17 commented 7 months ago

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

mkang315 commented 7 months ago

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