I want to load all of the images from the folder /img and /mask respectively. The data structure can be shown as follows:
data
img
0.png
1.png
2.png
3.png
...
mask
label_0.png
label_1.png
label_2.png
...
Hopefully for help.