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

'YOLO' object has no attribute 'test' #42

Open
Sine7812 opened this issue Aug 20, 2024 · 1 comment
Open

'YOLO' object has no attribute 'test' #42

Sine7812 opened this issue Aug 20, 2024 · 1 comment

Comments

@Sine7812
Copy link

Traceback (most recent call last):
File "/mnt/e/code/Mamba-YOLO-main/mbyolo_train.py", line 46, in
"test": YOLO(model_conf).test(**args),
^^^^^^^^^^^^^^^^^^^^^
File "/home/jcz/anaconda3/envs/mambayolo/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1709, in getattr
raise AttributeError(f"'{type(self).name}' object has no attribute '{name}'")
AttributeError: 'YOLO' object has no attribute 'test'
Why does this problem occur?

@Laulen
Copy link

Laulen commented Sep 11, 2024

回溯(最近一次调用最后一次): 文件“/mnt/e/code/Mamba-YOLO-main/mbyolo_train.py”,第 46 行,在 “test”中:YOLO(model_conf).test(args), ^^^^^^^^^^^^^^^^^^^^^^^ 文件“/home/jcz/anaconda3/envs/mambayolo/lib/python3.11/site-packages/torch/nn/modules/module.py”,第 1709 行,在getattr**中 引发 AttributeError(f“'{type(self). name }' 对象没有属性'{name}'”) AttributeError:'YOLO' 对象没有属性'test' 为什么会出现这个问题?

I have the same problem, can you solve it? What am I supposed to do

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

2 participants