Unconditional generation

Hi,
I am trying to understand how this https://github.com/huggingface/diffusers/tree/main/examples/unconditional_image_generation can be adapted in order to get custom dataloader as input. To be clearer I have a dataloader (format that cannot be put in .png) and I want to provide those data to the model.
Thanks