XueJiang16 / NegLabel

[ICLR 2024 Spotlight] "Negative Label Guided OOD Detection with Pretrained Vision-Language Models"
Apache License 2.0
20 stars 3 forks source link

AttributeError: 'ConfigDict' object has no attribute 'train' #2

Closed liu-qi-a closed 5 months ago

liu-qi-a commented 6 months ago

I got this error when running dist_train.sh: Traceback (most recent call last): File "/data/lq/projects/neg_label/tools/train.py", line 203, in <module> main() File "/data/lq/projects/neg_label/tools/train.py", line 176, in main datasets = [build_dataset(cfg.data.train)] File "/data/lq/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/mmcv/utils/config.py", line 50, in __getattr__ raise ex AttributeError: 'ConfigDict' object has no attribute 'train' Whether 'clip.py' is the config file of train? If not , could author share the config file of train.py?Thanks!

XueJiang16 commented 6 months ago

Hi, the _disttrain.sh is the original file in mmclassification and I do not use it. clip.py is generated by myself. So I do not have training config. Maybe you can refer to https://github.com/open-mmlab/mmpretrain. I hope this can help you.