yaml is not a yaml file

问题遇到的现象和发生背景

pytorch深度学习python3.7

问题相关代码,请勿粘贴截图

assert os.path.isfile(file) and file.endswith('.yaml'),
'{} is not a yaml file'.format(file)

运行结果及报错内容

AssertionError: config/ade20k/ade20k_pspnet50. yaml is not a yaml file

我的解答思路和尝试过的方法

nono

我想要达到的结果

救命

img

yaml是什么文件?看这意思是错误提示中的这个yaml文件格式不太对,导致断言错误