Input and target are both images

Hello, I am new to Pytorch so sorry for asking this simple question. I am trying to build an autoencoder to enhance the resolution of images. I have a dataset containing two folders: one folder for the low resolution images and one for the corresponding high resolution images. I would like to load the first folder as the input and the second folder as the “target”. Is it possible for me to do using datasets.ImageFolder?