How to check if image exists?

#2
by TheNoob3131 - opened

So every time I try to train my model (google/vit-base-patch16-224-in21k) on my dataset for image classification, it always gives a FileNotFound error (see below).

image.png

Is there a way to go through the entire 'Photos' column and delete whichever rows have an image url that doesn't exist? Is there a python/huggingface function for that?

Sign up or log in to comment