Test file doubt cnn code

https://colab.research.google.com/drive/1bk5Ol4_sVDe3nxJ29hJlH72WuH7wGBPN?usp=sharing

code link

https://drive.google.com/drive/folders/1IRkdSQHi02AHl33yEfMUjZKj-17Oouxt?usp=sharing

train file

https://drive.google.com/drive/folders/1wMiOoTj9GJbSy0-U4l2Ne0b6PKyQoPZG?usp=sharing

test file …
i need help with the code to test the images in order of sample submission in test file

hey @rohit_1906 ,
some things to be done.
instead of saving model , save only the weights.
so , load weights instead of model. okay.

and then for submission.
your looping is correct, after predicting each image , you just need add its name and prediction in the dataframe.
so, just do that its correct.

yes okay, but the issue was the order in which the test images prediction be , in the sample submission its random , how to get that in loop or some code

so to do that ,
you can loop over the sample submission and get images in the same given order
You just need the image name , right.
You have the path of it , then just predict and save

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.