Closed Hucley closed 7 years ago
I use the cleaned casia version. You can find the version from FaceVerification.
You'd better to check if any parent directory is before path '0348347/018.jpg', such as 'xxx/0348347/018.jpg'. If so, modify this line zfile.read(nameinzip)
to zfile.read('xxx/'+nameinzip)
.
Thanks, using the 'zfile.read('xxx/'+nameinzip)' with python2.7 is ok in this unit. but then there was another mistake:
Traceback (most recent call last):
File "/home//PycharmProjects/sphereface2/train.py", line 141, in
The pytorch may be too old to work. Please update it to the latest version 0.2.x.
I use the cleaned casia version. You can find the version from FaceVerification.
You'd better to check if any parent directory is before path '0348347/018.jpg', such as 'xxx/0348347/018.jpg'. If so, modify this line
zfile.read(nameinzip)
tozfile.read('xxx/'+nameinzip)
.
where is the line 'zfile.read(nameinzip)'? thx!
parser.add_argument('--dataset', default='../../dataset/face/casia/casia.zip', type=str) Place the original casia.zip in the above place,and the rest of the region has not changed. There are still some errors during run time:
File "/home//PycharmProjects/sphereface/dataset.py", line 39, in dataset_handle data = callback(name,filename,pindex,cacheobj,zfile) File "/home//PycharmProjects/sphereface/train.py", line 56, in dataset_load data = np.frombuffer(zfile.read(nameinzip),np.uint8) File "/home//anaconda3/lib/python3.5/zipfile.py", line 1232, in read with self.open(name, "r", pwd) as fp: File "/home//anaconda3/lib/python3.5/zipfile.py", line 1255, in open zinfo = self.getinfo(name) File "/home/***/anaconda3/lib/python3.5/zipfile.py", line 1199, in getinfo 'There is no item named %r in the archive' % name) KeyError: "There is no item named '0348347/018.jpg' in the archive"