mmfewshot
mmfewshot copied to clipboard
About the miniimagenet
Thank you for yourcontribution,after get the format of miniimage dataset,i train it,but a error occurs as follow: 2022-03-04 18:21:39,431 - mmfewshot - INFO - Set random seed to 0, deterministic: False Traceback (most recent call last): File "/home/dio/VSST/anaconda3/envs/openmmlab/lib/python3.7/site-packages/mmcv/utils/registry.py", line 52, in build_from_cfg return obj_cls(**args) File "/home/dio/VSST/zwm/mmfewshot/mmfewshot/classification/datasets/mini_imagenet.py", line 73, in init super().init(*args, **kwargs) File "/home/dio/VSST/zwm/mmfewshot/mmfewshot/classification/datasets/base.py", line 45, in init self.data_infos = self.load_annotations() File "/home/dio/VSST/zwm/mmfewshot/mmfewshot/classification/datasets/mini_imagenet.py", line 140, in load_annotations int(filename.split('.')[0][-5:]) - 1] IndexError: list index out of range do you know what wrong with it?
The picture format of original miniimage dataset just like 0153282900005.jpg,i try to get the format of n01532829_5.jpg according to the guidance.
@linyq17 Would you mind taking a look at this issue?
Currently, we read images directly from the original ImageNet. To adapt to a format like 0153282900005.jpg, the code needs some modifications.
Ok,thank you,that means we must use the whole ImageNet dataset?
don't need! Just delete some code!
can I ask where should I delete?
我遇到了相同的问题 2023-05-10 20:02:44,435 - mmfewshot - INFO - Set random seed to 0, deterministic: False Traceback (most recent call last): File "D:\ProgramData\Anaconda3\envs\mmdet\lib\site-packages\mmcv\utils\registry.py", line 52, in build_from_cfg return obj_cls(**args) During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./tools/classification/train.py", line 187, in
Can someone tell me where the boundary has been crossed??Which number should I change?