I need to test my model using the test set and corresponding groundtruth. There are multiple subsets in the test folder and ground truth folder. Also, I need they have one-to-one relationship. How to samutaneously load the images and groundtruth without mentioning the name of subfolders (color, poke…) but only use the roots (test, ground truth)? Many thanks for your help.
The structures of folders are as follows:
test
—color
------000.png
------001.png
------002.png
—poke
------000.png
------001.png
------002.png
groundtruth
—color
------000.png
------001.png
------002.png
—poke
------000.png
------001.png
------002.png