INVALID_ARGUMENT: Unknown image file format. One of JPEG, PNG, GIF, BMP required

is tensorflow (2.9.0) can’t use .jpg format as a image dataset?

here’s my dataset folder


If you’re iterating through all of the contents of the folder then you should remove all of the xml files