In getitem I have put ’ img_class = int(self.data.iloc[idx,2])’ in that it showed error like Traceback (most recent call last): File "/home/fatema/Downloads/numpy data.py", line 107, in <module> print(i, sample['image'].shape, sample['grade'].shape) AttributeError: 'int' object has no attribute 'shape'
When i removed 'int ’ from imag_class,i am abled to print image shape but i have not got any information about img_class.
Here is my data set image shape.
print(sample['image'].shape)
print(sample['grade'].shape)
Traceback (most recent call last):
  File "/home/fatema/miniconda3/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 3325, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-35-b3e87aaa979e>", line 2, in <module>
    print(sample['grade'].shape)
AttributeError: 'int' object has no attribute 'shape'
(64, 64)

The shape of the image is(64,64)
I am wondering that why i am not getting shape of ‘‘grade’’?