Hi, I am new to pytorch, please help me  how to load the images with there names.
I tried this.
This my  csv
file_path=‘train’
train=pd.read_csv(os.path.join(file_path,‘train.csv’))
test=pd.read_csv(os.path.join(file_path,‘test_ApKoW4T.csv’))
train.head()
|image|         category|
|0|2823080.jpg   |1|
|1|2870024.jpg  |1|
|2|2662125.jpg  |2|
|3|2900420.jpg  |3|
|4|2804883.jpg  |2|
These my images files
temp=[]
for img_name in train.image:
img_path=os.path.join(file_path,‘images’,img_name)
img=cv2.imread(img_path)
img=cv2.resize(img,(64,64))
temp.append(img)
train_x=np.asarray(temp)
after loading images, I did n’t understand how to convert images data and labels into tensors.