hi I’m having difficulties with making datasets.
I have 2 folders. One with image files and the other one with the mask files.
I tried to make the data in order using sort()
the image data were lined like 1, 10, 11, 12, 13
but mask data were like 10, 11, 12, 13, …, 19, 1

image011604×763 1000 KB


image021468×694 926 KB

how can I solve this problem??