PytorchLearning:

ValueError: not enough values to unpack (expected 2, got 0)


This means your path is wrong or there is no image in the used path. Literally, filenames_NI and filenames_OI are empty. Make sure you are using correct path, for instance, put a print(len(filenames_NI)) before the error loop.