这个错误是因为在"/mnt/disk1/lh/code/InternImage/classification/dataset/cached_image_folder.py"文件中的CachedImageFolder类的构造函数中使用了super()函数来调用父类的属性。但是父类中没有名为'classes'的属性,所以报错了。

要解决这个问题,你可以在父类中添加'classes'属性,或者检查一下代码中是否有其他地方出错导致父类的属性没有正确定义。

报错显示如下:Traceback most recent call last File mntdisk1lhcodeInternImageclassificationmainpy line 703 in module mainconfig File mntdisk1lhcodeInternImageclassificationmainpy line 175 in main data

原文地址: https://www.cveoy.top/t/topic/hFRX 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录