How to create my own local dataset

I am trying to run ControlNet in Diffusers using my dataset. (diffusers/examples/controlnet/README.md at main · huggingface/diffusers · GitHub)

However, I am not able to properly create a dataset directory for Diffusers.

I have the source image dir, the target image dir and a JSON file that stores the information.


{"text": "solar_declincation: -20.722542433072444, angle: 0.0, time_of_day:6", "image": "/home/local/ASURITE/xiaoouli/lxr/lc/data/five/target/3dmodelimage_hour6_row0_col0.png", "conditioning_image": "/home/local/ASURITE/xiaoouli/lxr/lc/data/five/source/3dmodelimage_row0_col0.png"}
{"text": "solar_declincation: -20.722542433072444, angle: 0.0, time_of_day:6", "image": "/home/local/ASURITE/xiaoouli/lxr/lc/data/five/target/3dmodelimage_hour6_row0_col1.png", "conditioning_image": "/home/local/ASURITE/xiaoouli/lxr/lc/data/five/source/3dmodelimage_row0_col1.png"}

I could not find a tutorial that properly explains my case.
I kind of missing the gitattributes and py files

1 Like