1. 训练遇到报错问题

(1)mportError: cannot import name '_pil_interp' from 'timm.data.transforms'

       原因: timm.data.transforms里面没有_pil_interp,只有str_to_pil_interp、_str_to_pil_interpolation、_pil_interpolation_to_str

      解决办法:在build.py中将下面图中的 _pil_interp改为str_to_pil_interp,下图是已经改变后的。

改完上面两步后发现还有一个错误提示

 init() got an unexpected keyword argument ‘t_mul’

在  lr_scheduler.py中,点击进入进入到相应代码处,注释掉图中代码即可。

 

Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐