运行下面这段代码时出现的一些问题
python fit_images.py --version 1 --input example/images --res_folder example/image_results --save_ply --align
首先我是在云上跑的,他的example/images中有四个图片,初次运行是可以跑完的,会在resluts中显示结果,但是在我删除他的example图片试图放入自己的图像进行重建出现以下问题:
Traceback (most recent call last): File "/gemini/code/FaceVerse-main/fit_images.py", line 414, in <module> fit(args, device) File "/gemini/code/FaceVerse-main/fit_images.py", line 90, in fit face_detected, frame, lms, frame_num = imagereader.get_data() File "/gemini/code/FaceVerse-main/data_reader.py", line 109, in get_data frame = cv2.imread(os.path.join(self.path, self.imagelist[self.frame_num]), -1)[:, :, :3] TypeError: 'NoneType' object is not subscriptable
具体的原因我现在还没搞清楚,但是经过尝试,解决措施是:重新git clone,然后在不动那四张图片的基础上加入你自己的照片。
我怀疑应该是我使用云服务器的原因。