This project utilizes Hugging Face's Dreambooth technology for training both cluster wide models and local personalized models. For further details on Dreambooth, refer to the HuggingFace Dreambooth webpage
- The fine-tuning dataset for the cluster wide model is located in colloection.
- The fine-tuning datasets for the three local personalized models are stored in Folders corgi, goldenretriever, and samoyed respectively.
The well fine-tuned models have been uploaded to huggingface, refer to the Huggingface wty2011 webpage
We have modified the source file pipeline_stable_diffusion.py
located in diffusers/src/diffusers/pipelines/stable_diffusion
to support hybrid inference by adding the following parameters:
offloading_flag: bool = False
— Enables or disables model offloading.local_flag: bool = False
— Toggles the use of a local inference model.num_offloaded_step: Optional[int] = None
— Defines the number of steps to offload, if any.intermediate_path: Optional[str] = None
— Specifies an optional path for saving intermediate outputs.
Details on the different offloading steps for hybrid inference and the results generated are available in the folder fitting.
The project uses the PER-DQN algorithm along with comparison algorithms, details of which are located in PER_DQN.