loading an image from cifar-10 dataset

后端 未结 3 1541
南方客
南方客 2020-12-20 17:03

I am using cifar-10 dataset for my training my classifier. I have downloaded the dataset and tried to display am image from the dataset. I have used the following code:

3条回答
  •  执笔经年
    2020-12-20 17:44

    I used

    single_img_reshaped = np.transpose(np.reshape(single_img,(3, 32,32)), (1,2,0))
    

    to get the correct format in my program.

提交回复
热议问题