clcarwin / sphereface_pytorch

A PyTorch Implementation of SphereFace.
MIT License
714 stars 172 forks source link

TypeError: 'float' object cannot be interpreted as an integer #13

Closed lucaskyle closed 6 years ago

lucaskyle commented 6 years ago

File dataset.py line 62, in init

self.nparrimage = np.frombuffer(self.arrimage.get_obj(),np.float32).reshape(10,len(self.arrimage)/10) TypeError: 'float' object cannot be interpreted as an integer

lucaskyle commented 6 years ago

sorry, i m train to run the train.py using CASIA dataset then i found this typeError i changed this line into:

len(self.arrimage)//10

it worked, and finished first epoch but stuck...