You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
I’ve encountered the same issue. I found this link: https://github.com/orgs/ultralytics/discussions/3461. It seems that YOLOv8 indeed does not have a dedicated method for handling the test dataset, but instead, you should treat the test dataset in a similar way to the validation dataset.
I commented out the following code segment, and it ran normally: "test": YOLO(model_conf).test(**args),
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?
The text was updated successfully, but these errors were encountered: