-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
errors #3
Comments
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 |
Thanks, using the 'zfile.read('xxx/'+nameinzip)' with python2.7 is ok in this unit. but then there was another mistake: |
The pytorch may be too old to work. Please update it to the latest version 0.2.x. |
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"
The text was updated successfully, but these errors were encountered: