Its is showing this error while creating imagefolder for prediction folder

1 Like

You are getting the error because you are going directly to the images directory in the seg_pred, As there are no folders(classes) in the seg_pred folder the ImageFolder Dataset is not created, Check the pred_dir path in the code given below, This code works perfectly.

Thanks @birajde that worked

1 Like

I have another doubt i am getting 80% accuracy in test set but getting 10% in pred set.

I am expecting something wrong in my pred set.Everytime i am checking an image the label is always showing Building.