Open rouge012 opened 1 year ago
I think missing LoadImageFromFile
in transform registry in mmdet
is the reason of this error, so I tried to fix this by the following steps:
class LoadImageFromFile
(from the latest mmcv/mmcv/transforms/loading.py
) into mmdetection/mmdet/datasets/transforms/loading.py
pip uninstall mmdet
pip install -v -e .
Any official solutions? It is a serious blocking problem. I install mmdet by pip install mmdet==3.0.0
@hhaAndroid Can you help us to solve this problem?
It works for me when I write the LoadImageFromFile
in train_pipeline
, and then add train_dataloader = dict(dataset=dict(pipeline=train_pipeline))
behind
KeyError: "class
CocoDataset
in mmdet/datasets/coco.py: 'mmdet.LoadImageFromFile is not in the transform registry. Please check whether the value ofmmdet.LoadImageFromFile
is correct or it was registered as expected. More details can be found at https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#import-the-custom-module'