Open LingJiangXie opened 6 years ago
When I changed my python from 3.6 to 2.7 .Problem "VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future nparrimage = np.frombuffer(arrimage.get_obj(),np.float32).reshape(10,len(arrimage)/10) ." disappeared. And I find the landmarks in the fold (data).But problem some image not found still exists.I thinlk multiprocessing module to read images cause the problem.Can you tell me how to fix it ?
Process Process-1: Traceback (most recent call last): File "/home/dany/anaconda3/envs/snakes/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap self.run() File "/home/dany/anaconda3/envs/snakes/lib/python2.7/multiprocessing/process.py", line 114, in run self._target(*self._args, *self._kwargs) File "/home/dany/Documents/workspace/sphereface_pytorch-master_2.7/dataset.py", line 38, in dataset_handle data = callback(name,filename,pindex,cacheobj,zfile) File "/home/dany/Documents/workspace/sphereface_pytorch-master_2.7/train.py", line 54, in dataset_load data = np.frombuffer(zfile.read(nameinzip),np.uint8) File "/home/dany/anaconda3/envs/snakes/lib/python2.7/zipfile.py", line 938, in read return self.open(name, "r", pwd).read() File "/home/dany/anaconda3/envs/snakes/lib/python2.7/zipfile.py", line 964, in open zinfo = self.getinfo(name) File "/home/dany/anaconda3/envs/snakes/lib/python2.7/zipfile.py", line 912, in getinfo 'There is no item named %r in the archive' % name) KeyError: "There is no item named '3331486/011.jpg' in the archive" Process Process-2: Traceback (most recent call last): File "/home/dany/anaconda3/envs/snakes/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap self.run() File "/home/dany/anaconda3/envs/snakes/lib/python2.7/multiprocessing/process.py", line 114, in run self._target(self._args, **self._kwargs) File "/home/dany/Documents/workspace/sphereface_pytorch-master_2.7/dataset.py", line 38, in dataset_handle data = callback(name,filename,pindex,cacheobj,zfile) File "/home/dany/Documents/workspace/sphereface_pytorch-master_2.7/train.py", line 54, in dataset_load data = np.frombuffer(zfile.read(nameinzip),np.uint8) File "/home/dany/anaconda3/envs/snakes/lib/python2.7/zipfile.py", line 938, in read return self.open(name, "r", pwd).read() File "/home/dany/anaconda3/envs/snakes/lib/python2.7/zipfile.py", line 964, in open zinfo = self.getinfo(name) File "/home/dany/anaconda3/envs/snakes/lib/python2.7/zipfile.py", line 912, in getinfo 'There is no item named %r in the archive' % name) KeyError: "There is no item named '0235966/005.jpg' in the archive"
plz check the path should be /..../.../lfw.zip/file_name/xxx.jpg
Yes,I have checked ...
I have the same problem as LingJiangXie, I want to ask you that your problem has been solved?
Traceback (most recent call last): File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap self.run() File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run self._target(*self._args, **self._kwargs) File "/home/liuyh/IDcar/sphereface_pytorch-master/dataset.py", line 38, in dataset_handle data = callback(name,filename,pindex,cacheobj,zfile) File "train.py", line 59, in dataset_load print(zfile.read('casia/' + nameinzip)) File "/usr/lib/python2.7/zipfile.py", line 935, in read return self.open(name, "r", pwd).read() File "/usr/lib/python2.7/zipfile.py", line 961, in open zinfo = self.getinfo(name) File "/usr/lib/python2.7/zipfile.py", line 909, in getinfo 'There is no item named %r in the archive' % name) KeyError: "There is no item named 'casia/0001392/091.jpg' in the archive"
Not solved.......
Please try to read this issue #3 .
Thank you !
@clcarwin Thank you very much!
Have you solved it now? @LingJiangXie
Downloading datasets https://pan.baidu.com/s/1i5gX7Dz d31k
modify zfile.read('nameinzip) to zfile.read('CASIA-WebFace/'+nameinzip) (train.py) add try catch before data = callback(name,filename,pindex,cacheobj,zfile) ,continue except
@dpcross Thank you very much! I have solved this route problem in your way, but I have encountered this problem:
Traceback (most recent call last):
File "train.py", line 162, in
@LingJiangXie Have you encounter this problem in your trainning process
@clcarwin Thank you very much! I have solved this problem in your way, update pytorch to version 0.2.x.
I just have the same problem with you guys.And my pytorch version is 0.2.0_3,but it does'nt work.How can i solve this problem??
_Traceback (most recent call last):
File "lfw_eval.py", line 102, in
just need good washed CASIA.zip dataset.
发件人: Seven.Hsu notifications@github.com 发送时间: 2018年4月1日 12:46 收件人: clcarwin/sphereface_pytorch 抄送: lucaskyle; Comment 主题: Re: [clcarwin/sphereface_pytorch] dataset problem (#11)
I just have the same problem with you guys.And my pytorch version is 0.2.0_3,but it does'nt work.How can i solve this problem?? Traceback (most recent call last): File "lfw_eval.py", line 102, in img1 = alignment(cv2.imdecode(np.frombuffer(zfile.read(name1),np.uint8),1),landmark[name1]) File "/usr/lib/python3.6/zipfile.py", line 1314, in read with self.open(name, "r", pwd) as fp: File "/usr/lib/python3.6/zipfile.py", line 1352, in open zinfo = self.getinfo(name) File "/usr/lib/python3.6/zipfile.py", line 1281, in getinfo 'There is no item named %r in the archive' % name) KeyError: "There is no item named 'Abel_Pacheco/Abel_Pacheco_0001.jpg' in the archive"
― You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/clcarwin/sphereface_pytorch/issues/11#issuecomment-377784440, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AZb9oZoUzHHlo4NOfnRB05LYstkttzv7ks5tkMwIgaJpZM4RMjk7.
Thank you so much.I'll try it in your way.
Sent from my iPhone
On Apr 2, 2018, at 09:41, lucaskyle notifications@github.com wrote:
just need good washed CASIA.zip dataset.
发件人: Seven.Hsu notifications@github.com 发送时间: 2018年4月1日 12:46 收件人: clcarwin/sphereface_pytorch 抄送: lucaskyle; Comment 主题: Re: [clcarwin/sphereface_pytorch] dataset problem (#11)
I just have the same problem with you guys.And my pytorch version is 0.2.0_3,but it does'nt work.How can i solve this problem?? Traceback (most recent call last): File "lfw_eval.py", line 102, in img1 = alignment(cv2.imdecode(np.frombuffer(zfile.read(name1),np.uint8),1),landmark[name1]) File "/usr/lib/python3.6/zipfile.py", line 1314, in read with self.open(name, "r", pwd) as fp: File "/usr/lib/python3.6/zipfile.py", line 1352, in open zinfo = self.getinfo(name) File "/usr/lib/python3.6/zipfile.py", line 1281, in getinfo 'There is no item named %r in the archive' % name) KeyError: "There is no item named 'Abel_Pacheco/Abel_Pacheco_0001.jpg' in the archive"
― You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/clcarwin/sphereface_pytorch/issues/11#issuecomment-377784440, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AZb9oZoUzHHlo4NOfnRB05LYstkttzv7ks5tkMwIgaJpZM4RMjk7. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
hi,guys. when I run the train.py,I got a problem as fllows. KeyError: "There is no item named '1478996/020.jpg' in the archive" then i modified the np.frombuffer(zfile.read(nameinzip),np.uint8) to np.frombuffer(zfile.read(a+nameinzip),np.uint8), a+nameinzip is the absolute path of image,but it didn‘t work. Do you have any idea? thank you so much!waiting for your reply!
Hi @LingJiangXie, Can you upload the washed dataset to other sites? I cannot to download from baidu because we dont have Chinese mobile phone number to activate the account. Thank you!
Hi @LingJiangXie, Can you upload the washed dataset to other sites? I cannot to download from baidu because we dont have Chinese mobile phone number to activate the account. Thank you!
I have uploaded it to OneDrive: https://1drv.ms/u/s!AjMP8wpvXdkfhMhnmNDEdj5oor7M_A
hi,guys. when I run the train.py,I got a problem as fllows. KeyError: "There is no item named '1478996/020.jpg' in the archive" then i modified the np.frombuffer(zfile.read(nameinzip),np.uint8) to np.frombuffer(zfile.read(a+nameinzip),np.uint8), a+nameinzip is the absolute path of image,but it didn‘t work. Do you have any idea? thank you so much!waiting for your reply!
have you soved this issue?
Hi ! Thank you for this pytorch version sphereface code ,I have found this for a long time .But when I run train.py ,some problems occured. VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future nparrimage = np.frombuffer(arrimage.get_obj(),np.float32).reshape(10,len(arrimage)/10) .I think my numpy version(1.11.0) is not fine. 'There is no item named %r in the archive' % name) KeyError: "There is no item named '1212722/038.jpg' in the archive" . But I find this image in the fold 1212722 . Last problem may I get the mtcnn landmarks for casia? or you can tell me mtcnn codes ,I run it.Thank you very much!