torch==2.1.0 torchaudio==2.1.0 torchvision==0.16.0 transformers==4.38.0 diffusers==0.26.0 tokenizers==0.15.2 huggingface-hub==0.22.2 ujson==5.10.0 scipy==1.14.0 peft==0.10.0 invisible-watermark==0.2.0 pandas==2.2.1 numpy==1.26.4 opencv-python==4.10.0.84 mediapipe==0.10.14 openai==1.35.13 python-dotenv==1.0.1 prodigyopt==1.0 omegaconf==2.3.0 ujson==5.10.0 bitsandbytes==0.43.1 setuptools==70.3.0



This trainer was developed by the Eden team, you can try our hosted version of the trainer in our app.
It’s a highly optimized trainer that can be used for both full finetuning and training LoRa modules on top of Stable Diffusion.
It uses a single training script and loss module that works for both SDv15 and SDXL!
The outputs of this trainer are fully compatible with ComfyUI and AUTO111, see documentation here.
A full guide on training can be found in our docs.
Training images:
Generated imgs with trained LoRa:
/ComfyUI_workflowsOPENAI_API_KEY=your_key_string Everything will work without this, but results will be better if you set this up, especially for ‘face’ and ‘object’ modes.
Style training example:
Install all dependencies using
pip install -r requirements.txt
then you can simply run:
python main.py train_configs/training_args.json
to start a training job.
Adjust the arguments inside training_args.json to setup a custom training job.
You can also run this through Replicate using cog (~docker image):
sudo curl -o /usr/local/bin/cog -L "https://github.com/replicate/cog/releases/latest/download/cog_$(uname -s)_$(uname -m)"
sudo chmod +x /usr/local/bin/cog
cog buildsh cog_test_train.shcog run /bin/bashWhen running this trainer in native python, you can also perform full unet finetuning using something like (adjust to your needs)
python main.py train_configs/full_finetuning_example.json
Bugs:
Bigger improvements: