回溯问题;
https://blog.csdn.net/BeerBread134/article/details/69229527?locationNum=3&fps=1
Traceback (most recent call last):
File “C:/Users/x3j/Desktop/tensorflow-vgg-master/test_vgg19.py”, line 20, in
vgg = vgg19.Vgg19()
File “C:\Users\x3j\Desktop\tensorflow-vgg-master\vgg19.py”, line 20, in init
__init__self.data_dict = np.load(vgg19_npy_path, encoding=‘latin1’).item()
AttributeError: ‘NoneType’ object has no attribute ‘data_dict’
下载:vgg19.npy和vgg16.npy
https://blog.csdn.net/m0_37644085/article/details/8318054
python找不到对应的对象的属性:函数名错误
AttributeError: ‘NoneType’ object has no attribute 'data_dict’
__init__self.data_dict改为self.data_dict