NumNum icon indicating copy to clipboard operation
NumNum copied to clipboard

Error in load_data.py

Open smruti14ran opened this issue 6 years ago • 0 comments

/usr/local/lib/python2.7/dist-packages/h5py/init.py:36: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type. from ._conv import register_converters as _register_converters Downloading data... Successfully downloaded data! Unzipping data... train already present - Skipping extraction of train.tar.gz. train test already present - Skipping extraction of test.tar.gz. test extra already present - Skipping extraction of extra.tar.gz. extra Successfully unzipped data! Creating dictionary of bounding boxes... Successfully created dictionary of bounding boxes! Getting digit structure for training data... Success! Getting digit structure for test data... Success! Getting digit structure for extra data... Success! Cropping training images... Success! Cropping test images... Success! Cropping extra images... Success! Generating training dataset and labels... Traceback (most recent call last): File "/home/somu/Downloads/NumNum-master/NumNum/load_data.py", line 219, in train_dataset, train_labels = generate_dataset(train_data, train_folders) File "/home/somu/Downloads/NumNum-master/NumNum/load_data.py", line 208, in generate_dataset im = im.crop((im_left, im_top, im_right, im_bottom)).resize([32,32], Image.ANTIALIAS) File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 1526, in resize self.load() File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 1961, in load self.im = self.im.crop(self.__crop) TypeError: integer argument expected, got float

this is what i am getting after running the load_data.py script.

can anyone help me out please.. its urgent

smruti14ran avatar Mar 30 '18 16:03 smruti14ran