使用 mmengine 进行扩散器训练
Documentation | Reporting Issues
DiffEngine is the open-source toolbox for training state-of-the-art Diffusion Models. Packed with advanced features including diffusers and MMEngine, DiffEngine empowers both seasoned experts and newcomers in the field to efficiently create and enhance diffusion models. Stay at the forefront of innovation with our cutting-edge platform, accelerating your journey in Diffusion Models training.
Before installing DiffEngine, please ensure that PyTorch >= v2.0 has been successfully installed following the official guide.
Install DiffEngine
pip install git+https://github.com/okotaku/diffengine.gitDiffEngine makes training easy through its pre-defined configs. These configs provide a streamlined way to start your training process. Here's how you can get started using one of the pre-defined configs:
Choose a config: You can find various pre-defined configs in the configs directory of the DiffEngine repository. For example, if you wish to train a DreamBooth model using the Stable Diffusion algorithm, you can use the configs/stable_diffusion_dreambooth/stable_diffusion_v15_dreambooth_lora_dog.py.
Start Training: Open a terminal and run the following command to start training with the selected config:
diffengine train stable_diffusion_v15_dreambooth_lora_dogwork_dirs/stable_diffusion_v15_dreambooth_lora_dog directory, specifically when using the stable_diffusion_v15_dreambooth_lora_dog config.…An illustrative output example is provided below:
diffusers.pipeline module.…For a more hands-on introduction to DiffEngine, you can run the Example Notebook on Colaboratory. This notebook demonstrates the process of training using SDV1.5 and SDV2.1 DreamBooth configurations.
For detailed user guides and advanced guides, please refer to our Documentation:
Run Guides
User Guides
Blog Posts
Stable Diffusions
Stable Diffusion XLs
DeepFloyd IFs
OthersStable Diffusion (2022)
ControlNet (ICCV'2023)
DreamBooth (CVPR'2023)
LoRA (ICLR'2022)
Distill SD DreamBooth (2023)
Inpaint
Stable Diffusion XL (2023)
ControlNet (ICCV'2023)
DreamBooth (CVPR'2023)
LoRA (ICLR'2022)
ControlNet Small (2023)
T2I-Adapter (2023)
IP-Adapter (2023)
Erasing Concepts from Diffusion Models (2023)
SSD-1B (2023)
InstructPix2Pix (2022)
LoHa (ICLR'2022)
LoKr (2022)
OFT (NeurIPS'2023)
ControlNet-XS (2023)
Inpaint
DeepFloyd IF (2023)
DreamBooth (CVPR'2023)
Min-SNR Loss (ICCV'2023)
DeBias Estimation Loss (2023)
Offset Noise (2023)
Pyramid Noise (2023)
Input Perturbation (2023)
Time Steps Bias (2023)
V Prediction (ICLR'2022)
Diffusion DPO (2023)
Wuerstchen
Latent Consistency Models
PixArt-α
KandinskyWuerstchen (2023)
LoRA (ICLR'2022)
Latent Consistency Models (2023)
LoRA (ICLR'2022)
PixArt-α (2023)
LoRA (ICLR'2022)
DreamBooth (CVPR'2023)
Kandinsky 2.2 (2023)
Kandinsky 3 (2023)
aMUSEdaMUSEd (2024)
We appreciate all contributions to improve clshub. Please refer to CONTRIBUTING.md for the contributing guideline.
This project is released under the Apache 2.0 license.
If DiffEngine is helpful to your research, please cite it as below.
@misc{diffengine2023,
title = {{DiffEngine}: diffusers training toolbox with mmengine},
author = {{DiffEngine Contributors}},
howpublished = {\\url{https://github.com/okotaku/diffengine}},
year = {2023}
}takuoko is a member of Z by HP Data Science Global Ambassadors. Special Thanks to Z by HP for sponsoring me a Z8G4 Workstation with dual A6000 GPU and a ZBook with RTX5000 GPU.
This repo borrows the architecture design and part of the code from mmengine, mmagic and diffusers.
Also, please check the following openmmlab and huggingface projects and the corresponding Documentation.
@article{mmengine2022,
title = {{MMEngine}: OpenMMLab Foundational Library for Training Deep Learning Models},
author = {MMEngine Contributors},
howpublished = {\\url{https://github.com/open-mmlab/mmengine}},
year={2022}
}@misc{mmagic2023,
title = {{MMagic}: {OpenMMLab} Multimodal Advanced, Generative, and Intelligent Creation Toolbox},
author = {{MMagic Contributors}},
howpublished = {\\url{https://github.com/open-mmlab/mmagic}},
year = {2023}
}@misc{von-platen-etal-2022-diffusers,
author = {Patrick von Platen and Suraj Patil and Anton Lozhkov and Pedro Cuenca and Nathan Lambert and Kashif Rasul and Mishig Davaadorj and Thomas Wolf},
title = {Diffusers: State-of-the-art diffusion models},
year = {2022},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\\url{https://github.com/huggingface/diffusers}}
}@Misc{peft,
title = {PEFT: State-of-the-art Parameter-Efficient Fine-Tuning methods},
author = {Sourab Mangrulkar and Sylvain Gugger and Lysandre Debut and Younes Belkada and Sayak Paul and Benjamin Bossan},
howpublished = {\\url{https://github.com/huggingface/peft}},
year = {2022}
}暂无开放 Issues,或尚未同步最近议题。