Retraining after deleting

I am trying to classify images of ‘F22 Raptor’,‘Mikoyan MiG-29’ and ‘Sukhoi Su-27’. After I train my model I delete the problematic images. I get the following error when I try to rerun the cnn_learner. Any ideas?

FileNotFoundError: [Errno 2] No such file or directory: ‘/content/jets/Sukhoi Su-27/00000053.png’

You have deleted the files, but not updated the dls with the latest list of files, hence the error.

Re-run the code from where you’ve declared the dls, the learner should run fine.

1 Like