Test set not being defined properly after creating ImageDataBunch

The two images above illustrate how I create an ImageDataBunch for my project. It seems to work well for my train and val (validation) images, but not for my test images. As you can see in the next image, my test images are not being labeled properly.

I tried to solve this by getting the array of the labels from the file path for each file and setting it equal to the target values for the test set, but I just created other errors. I was hoping that somebody else could help me.

Thanks a ton in advance!

The test sets in fastai are always unlabeled in 1.0. You can create a new data loader to use instead (search the forum, this has been asked a lot, look at labeled test sets)


Thank you very much, sir