-
Notifications
You must be signed in to change notification settings - Fork 549
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
Cat example does not work out of the box #1007
Comments
I'm having the same issue, do you have any solution to it, please |
apparently it is an issue with the MMYOLO backend when passing parameters to the albuminations. def _check_args(self, **kwargs: Any) -> None:
checked_single = ["image", "mask"]
checked_multi = ["masks"]
check_bbox_param = ["bboxes"]
check_keypoints_param = ["keypoints"]
shapes = []
for data_name, data in kwargs.items():
# if data_name=='bboxes':
# print(data_name)
# print(data)
if data_name not in self._available_keys and data_name not in ["mask", "masks"] and False:
msg = f"Key {data_name} is not in available keys."
# print('keys')
# print(self._available_keys)
# print(data)
# print(kwargs.items())
raise ValueError(msg) |
Helo, I commented directly and simply and crudely on “raise ValueError(msg)”, and then “continue” solved the problem, I hope it helps you |
补充:
|
Prerequisite
🐞 Describe the bug
I am able to consistently run the demos through:
However whenever I try running the fine-tuning example for MMYOLO that uses YOLOv5 i always run into:
...
is there any need to modify the cat dataset provided or maybe there is some error in the config of yolov5_s-v61_fast_1xb12-40e_cat.py ?
Environment
sys.platform: win32
Python: 3.8.19 (default, Mar 20 2024, 19:55:45) [MSC v.1916 64 bit (AMD64)]
CUDA available: True
MUSA available: False
numpy_random_seed: 2147483648
GPU 0: NVIDIA GeForce RTX 3060
CUDA_HOME: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7
NVCC: Cuda compilation tools, release 11.7, V11.7.64
MSVC: Microsoft (R) C/C++ Optimizing Compiler Version 19.32.31328 for x64
GCC: n/a
PyTorch: 2.0.0
PyTorch compiling details: PyTorch built with:
TorchVision: 0.15.0
OpenCV: 4.9.0
MMEngine: 0.10.4
MMCV: 2.0.1
MMDetection: 3.3.0
MMYOLO: 0.6.0+8c4d9dc
Additional information
No response
The text was updated successfully, but these errors were encountered: