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

ValueError: Key img_path is not in available keys. Unable to find a solution. #1010

Open
Lucky-person opened this issue Jun 5, 2024 · 3 comments

Comments

@Lucky-person
Copy link

Original Traceback (most recent call last):
File "D:\Anaconda\envs\mmyolo\lib\site-packages\torch\utils\data_utils\worker.py", line 302, in _worker_loop
data = fetcher.fetch(index)
File "D:\Anaconda\envs\mmyolo\lib\site-packages\torch\utils\data_utils\fetch.py", line 49, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "D:\Anaconda\envs\mmyolo\lib\site-packages\torch\utils\data_utils\fetch.py", line 49, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "D:\Anaconda\envs\mmyolo\lib\site-packages\mmengine\dataset\base_dataset.py", line 410, in getitem
data = self.prepare_data(idx)
File "D:\openmmlab\mmyolo\mmyolo\datasets\yolov5_coco.py", line 53, in prepare_data
return self.pipeline(data_info)
File "D:\Anaconda\envs\mmyolo\lib\site-packages\mmengine\dataset\base_dataset.py", line 60, in call
data = t(data)
File "D:\Anaconda\envs\mmyolo\lib\site-packages\mmcv\transforms\base.py", line 12, in call
return self.transform(results)
File "D:\Anaconda\envs\mmyolo\lib\site-packages\mmdet\structures\bbox\box_type.py", line 267, in wrapper
return func(self, results)
File "D:\Anaconda\envs\mmyolo\lib\site-packages\mmdet\datasets\transforms\transforms.py", line 1699, in transform
results = self.aug(**results)
File "D:\Anaconda\envs\mmyolo\lib\site-packages\albumentations\core\composition.py", line 255, in call
self._check_args(**data)
File "D:\Anaconda\envs\mmyolo\lib\site-packages\albumentations\core\composition.py", line 324, in _check_args
raise ValueError(msg)
ValueError: Key img_path is not in available keys.

@Lucky-person
Copy link
Author

Follow the operation process of 15 minutes object detection throughout the entire process

@yuexiayiren159
Copy link

View your albumentations version,Changed the version to 1.3.1 and it worked

@GIBI1557
Copy link

thank you very much!!!!

View your albumentations version,Changed the version to 1.3.1 and it worked

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