Open missyangyangyang opened 5 years ago
问题已经解决,在MTCNN_model下新建一个PNet_No_landmark文件夹,并把PNet_landmark的模型拷贝到该文件夹下
你好,我想问一下,我现在按你说的做了,可是依旧不成功,请问额外还需要什么操作吗?
看清楚文件夹名字的大小写,代码里面PNet_No_Landmark是大写的L
我运行时还要用同样的方法创建另外的两个ONet_No_landmark和RNet_No_landmark文件夹才能正常运行
在MTCNN_model下新建RNet_No_Landmark和ONet_No_Landmark,并把RNet_landmark和ONet_landmark下的模型分别拷贝到上面新建的文件夹中,即可运行。
在MTCNN_model下新建了RNet_No_Landmark和ONet_No_Landmark,并把RNet_landmark和ONet_landmark下的模型分别拷贝到上面新建的文件夹后出现了AttributeError: 'NoneType' object has no attribute 'shape'这个报错该如何解决呢?
in colab
%cd /content/MTCNN-Tensorflow/data/MTCNN_model
%mkdir PNet_No_Landmark
%mkdir ONet_No_Landmark
%mkdir RNet_No_Landmark
import shutil
#shutil.copy("/content/MTCNN-Tensorflow/data/MTCNN_model/ONet_landmark/ONet-16.data-00000-of-00001", "/content/MTCNN-Tensorflow/data/MTCNN_model/ONet_No_landmark/ONet-16.data-00000-of-00001")
#shutil.copy("/content/MTCNN-Tensorflow/data/MTCNN_model/ONet_landmark/ONet-16.index", "/content/MTCNN-Tensorflow/data/MTCNN_model/ONet_No_landmark/ONet-16.index")
#shutil.copy("/content/MTCNN-Tensorflow/data/MTCNN_model/ONet_landmark/ONet-16.meta", "/content/MTCNN-Tensorflow/data/MTCNN_model/ONet_No_landmark/ONet-16.meta")
#shutil.copy("/content/MTCNN-Tensorflow/data/MTCNN_model/ONet_landmark/checkpoint", "/content/MTCNN-Tensorflow/data/MTCNN_model/ONet_No_landmark/checkpoint")
#shutil.copy("/content/MTCNN-Tensorflow/data/MTCNN_model/PNet_landmark/PNet-18.data-00000-of-00001", "/content/MTCNN-Tensorflow/data/MTCNN_model/PNet_No_landmark/PNet-18.data-00000-of-00001")
#shutil.copy("/content/MTCNN-Tensorflow/data/MTCNN_model/PNet_landmark/PNet-18.index", "/content/MTCNN-Tensorflow/data/MTCNN_model/PNet_No_landmark/PNet-18.index")
#shutil.copy("/content/MTCNN-Tensorflow/data/MTCNN_model/PNet_landmark/PNet-18.meta", "/content/MTCNN-Tensorflow/data/MTCNN_model/PNet_No_landmark/PNet-18.meta")
#shutil.copy("/content/MTCNN-Tensorflow/data/MTCNN_model/PNet_landmark/checkpoint", "/content/MTCNN-Tensorflow/data/MTCNN_model/PNet_No_landmark/checkpoint")
#shutil.copy("/content/MTCNN-Tensorflow/data/MTCNN_model/RNet_landmark/RNet-14.data-00000-of-00001", "/content/MTCNN-Tensorflow/data/MTCNN_model/RNet_No_landmark/RNet-14.data-00000-of-00001")
#shutil.copy("/content/MTCNN-Tensorflow/data/MTCNN_model/RNet_landmark/RNet-14.index", "/content/MTCNN-Tensorflow/data/MTCNN_model/RNet_No_landmark/RNet-14.index")
#shutil.copy("/content/MTCNN-Tensorflow/data/MTCNN_model/RNet_landmark/RNet-14.meta", "/content/MTCNN-Tensorflow/data/MTCNN_model/RNet_No_landmark/RNet-14.meta")
shutil.copy("/content/MTCNN-Tensorflow/data/MTCNN_model/RNet_landmark/checkpoint", "/content/MTCNN-Tensorflow/data/MTCNN_model/RNet_No_landmark/checkpoint")
it should be like this
当运行这个程序的时候出现了这样的错误,想问一下大神是什么原因呢