The Very Best OneTrainer Workflow & Config For SD 1.5 Based Models DreamBooth / Full Fine Tuning
Added 2024-01-28 23:32:58 +0000 UTCJoin discord and tell me your discord username to get a special rank : SECourses Discord
30 March 2024 Update:
Compared Tier 1 vs Tier 2 quality : https://www.reddit.com/r/StableDiffusion/comments/1br8iyz/compared_my_best_sd_15_config_to_the_newest_7gb/
CONCLUSION : There aren't any noticeable difference between Tier 1 and Tier 2. So use the fastest one according to your GPU VRAM.
28 March 2024 Update:
Please watch this tutorial to learn how to use presets and set concepts : https://youtu.be/yPOadldf6bI
New preset updates
These presets are set to 200 epoch by default and saves a checkpoint every 25 epochs
The difference between Tier 1 and Tier 2 is Attention. Tier 1 uses Default attention and Tier 2 uses xFormers. How much difference it makes is : I am still testing
So what makes speed difference?
Put EMA on CPU or GPU - GPU faster
Enable Gradient Checkpointing or not - Enabling make it slower
Enable Fused Back Pass or not on Adafactor - Enabling make it slower
tier1_SD15_slowest_16.5GB.json : Uses 16 GB VRAM and 2.62 second / it on RTX 3060
tier1_SD15_slow_18.3GB.json : Uses 18.3 GB VRAM and 1.29 second / it on RTX 3060
tier1_SD15_fast_26GB.json and tier1_SD15_fastest_48GB.json uses more than 24 GB
tier2_SD15_slowest_7GB.json : Uses 7 GB VRAM and 5.14 second / it on RTX 3060
tier2_SD15_slower_10.8GB.json : Uses 10.8 GB VRAM and 3.10 second / it on RTX 3060
tier2_SD15_slow_14GB.json : Uses 14 GB VRAM and 1.17 second / it on RTX 3090 TI
tier2_SD15_fast_15GB.json : Uses 14.5 GB VRAM and 1.03 second / it on RTX 3090 TI
22 March 2024 Update:
All configs are updated and Stochastic Rounding disabled
Stochastic Rounding makes the effect of like FP32 - float training
However, float like training causes overtraining with our currently found best hyper parameters
Therefore, for now, they are disabled until a better hyperparameters are researched and found
How to use these configs quick tutorial : https://www.youtube.com/watch?v=yPOadldf6bI
9 February 2024 Update:
Settings are updated for the latest OneTrainer update
You don't need to put optimizer prefs anymore
You can open configs json file and look inside to understand logic of how it works
You need to change workspace_dir, cache_dir, output_model_destination, edit your training concepts
I did set default model as the most realistic SD 1.5 model which is Hyper Realism V3 hosted on Hugging Face (MonsterMMORPG/sd15_best_realism)
You can change model to any model you want from your computer or Hugging Face repo
Hopefully I will make a full tutorial that includes how to train on Windows and RunPod
Clone the repo into any folder : https://github.com/Nerogar/OneTrainer
Double click install .bat
Then double click start-ui .bat to start it
I have made over 70 full DreamBooth trainings for over 7 days and meticulously analyzed their results to the find very best training hyper parameters.
120 amazing quality images with their prompt info posted on CivitAI
Part 1 , Part 2 , Part 3 , Part 4 , Part 5 , Part 6 . Each Part has 20 images. You can click (i) icon on images to see their prompts.
We have 3 configs.
The configs will not save checkpoints during training but will only save a final checkpoint. Don't forget to change that behaviour or fix your final checkpoint path.
Tier 1 is best quality. Don't use xFormers.
Tier 2 is second best quality. Uses xFormers to reduce VRAM.
All Tier 2 are equal quality and only speed and VRAM usage changes.
xFormers : reduces VRAM, increases speed, reduced quality
Gradient Checkpointing : reduces VRAM, reduces speed, quality same
EMA : increases VRAM, reduces speed, improves quality. You can load EMA on both CPU and GPU. If you load on CPU, it will be slower but VRAM will be same.
Since OneTrainer supports EMA, it is better than Kohya.
Kohya config : https://www.patreon.com/posts/97379147
There are 2 strategies of training. Stylized vs Realism.
To find out very best models for both realism and stylization models, I have made 161 models comparison recently if you remember : https://youtu.be/G-oZn4H-aHQ
Models Downloader Script And The Patreon Post Shown In The Video ⤵️ https://www.patreon.com/posts/1-click-download-96666744
1st:
Training for realism. For this training strategy I have chosen the Hyper Realism V3 model from CivitAI. The config file will download it automatically from Hugging Face or alternatively you can give the local path.
2nd:
Training for stylization like 3d render of yourself. For this task I have chosen RealCartoon-Pixar V8 from CivitAI.
To use this model the key change you need to make is, making Clip skip 2 in Advanced Settings.
I used 15 training images and trained 150 epoch.
My used training images are as below (they are at best medium quality)
For RealCartoon-Pixar V8 hopefully I will add Regularization images to this post soon.
For realism, use our very best real unsplash collected regularization images ⤵️
https://www.patreon.com/posts/massive-4k-woman-87700469
I trained both 768x768 and 1024x1024. 768x768 training works better than 1024x1024. Moreover, generating 1024x1024 works better than 768x768. When fixing faces with ADetailer extension, make the ADetailer extension resolution 768x768 even if you generate images in 1024x1024.

Comments
i only have good config for generating full check points, so like SD 1.5 files are 4 GB standalone. but you can extract LoRA from them and use - this lora will have better quality than best LoRA
Furkan Gözükara
2024-10-01 16:45:30 +0000 UTCHi , are these SD 1.5 config files for Onetrainer only for creating Loras, or are they the same for creating an embedding? Are there any modifications to be made to the configuration for embedding? thank you.
Marc
2024-10-01 16:36:18 +0000 UTCyou are welcome. ty too
Furkan Gözükara
2024-05-30 17:29:07 +0000 UTCAwesome! Thank you so much. Keep going with the good work :-)
Jannik
2024-05-30 14:39:18 +0000 UTCyes they are shown in this video 1:32:15 : https://youtu.be/0t5l6CP9eBg
Furkan Gözükara
2024-05-29 17:18:25 +0000 UTCHi, can you share your settings for the ADetailer?
Jannik
2024-05-29 07:25:33 +0000 UTCi didnt test but you can try
Furkan Gözükara
2024-04-25 21:18:26 +0000 UTCThanks. Do 10 images also work well? For 10 images, would we need 200 or 130 epochs for good results?
Manpreet Singh
2024-04-25 20:50:53 +0000 UTC15 images around 150 epochs. but it is flexible you can go 10-20 images 130-200 epochs
Furkan Gözükara
2024-04-25 20:48:13 +0000 UTCWhat is the minimum number of training images that will produce good results with this workflow? And how many epochs to train for those number of images? Also how many epochs to train for 20 images? (hopefully min required images is lower than 20)
Manpreet Singh
2024-04-25 20:38:25 +0000 UTCit is 32 fp version
Furkan Gözükara
2024-04-24 21:36:35 +0000 UTCIs the hyper realism model on huggingface MonsterMMORPG/sd15_best_realism equivalent to FP32 model present on CivitAI? Here: https://civitai.com/models/158959/hyper-realism Or should it be the FP16 model from there?
Manpreet Singh
2024-04-24 18:27:25 +0000 UTCpublished article about this : https://www.patreon.com/posts/onetrainer-fine-101606471
Furkan Gözükara
2024-04-04 02:18:01 +0000 UTCi plan to research it but didnt have chance yet
Furkan Gözükara
2024-03-31 14:03:36 +0000 UTCI found that onetrainer has a really good feature called Masked training, it will allow training only the face area, or any part that is set in the mask. Maybe you could cover this topic later?
Roy Ding
2024-03-31 13:04:00 +0000 UTCthe answer of the developer: it's not supported right now. maybe in the future. if you want to backup the last epoch, you can use the "backup before save" switch
Furkan Gözükara
2024-03-31 11:34:45 +0000 UTCmaybe it is how designed. you can then do 61 epoch. i will tell this to the developer now
Furkan Gözükara
2024-03-31 11:28:35 +0000 UTCI have a problem with config auto backup and sampling. If I put training epochs = 60, sample after 10 epcho, backup after 60 epoch, it won't backup or sample the last epochs. But it will sample 0-50 epoch. Is there something I did wrong?
Roy Ding
2024-03-31 11:23:05 +0000 UTCPivotal tuning? Sure... accelerate launch --num_cpu_threads_per_process=2 ./train_dreambooth_lora_sdxl_advanced.py --pretrained_model_name_or_path="stabilityai/stable-diffusion-xl-base-1.0" --pretrained_vae_model_name_or_path="madebyollin/sdxl-vae-fp16-fix" --dataset_name="H:/Diffusers_androidsz" --caption_column="prompt" --instance_prompt="zwx person" --validation_prompt="zwx person, a figure standing in a forest" --output_dir="hofer-SDXL-LoRA" --mixed_precision="bf16" --resolution=1024 --train_batch_size=1 --repeats=1 --gradient_accumulation_steps=1 --gradient_checkpointing --learning_rate=1.0 --text_encoder_lr=1.0 --optimizer="prodigy" --prodigy_safeguard_warmup=True --prodigy_use_bias_correction=True --adam_beta1=0.9 --adam_beta2=0.999 --adam_weight_decay=0.01 --train_text_encoder_ti --train_text_encoder_ti_frac=0.5 --snr_gamma=5.0 --token_abstraction="zwx" --num_new_tokens_per_abstraction=2 --lr_scheduler="constant" --lr_warmup_steps=0 --rank=64 --max_train_steps=2000 --checkpointing_steps=4000 --seed="0" --enable_xformers_memory_efficient_attention But please read carefully huggingface page about that training.
Nenad Kuzmanovic
2024-03-24 22:04:28 +0000 UTCcan you post your command here or on SE patreon discord channel?
Pavel Desort
2024-03-24 19:32:58 +0000 UTCsame settings. he just fixed the bug. update onetrainer to latest version
Furkan Gözükara
2024-03-24 13:54:27 +0000 UTCsame settings. he just fixed the bug. update onetrainer to latest version
Furkan Gözükara
2024-03-24 13:54:08 +0000 UTCOh thank you so much!!! I did two 7 hour workouts two nights in a row and couldn't figure out what the problem was. Thanks, I'll check out the new settings.
Elevo
2024-03-24 13:50:20 +0000 UTCit just got fixed please update to latest version : https://github.com/Nerogar/OneTrainer/commit/edc098a077ca85658bac5d3711e9b7ebafcb504f
Furkan Gözükara
2024-03-24 13:42:15 +0000 UTCyes it is completely broken right now. i am talking with the developer to get fixed hopefully.
Furkan Gözükara
2024-03-24 12:45:03 +0000 UTCi am testing SDXL right now. reported by multiple people. i wonder if onetrainer broken something
Furkan Gözükara
2024-03-24 12:05:39 +0000 UTCHi, I trained SDXL model by 15 pictures of a person, I did as you showed in the video, but when after training I generate pictures with keyword I can't generate this person, the person is just not there. I tried to train on SD 1.5 model I got everything working, but on SDXL I can't. What can be the problem?
Alex
2024-03-24 07:06:05 +0000 UTCwith using second concept with reg images, we are making it almost as dreambooth : https://youtu.be/yPOadldf6bI no i don't suggest lora training. do this fine tuning and extract lora. it will be much better
Furkan Gözükara
2024-03-22 11:24:57 +0000 UTCso One Trainer can't be trained as dreambooth? If I have just strated training (finetuning doesn't help) I need to use the option Lora in One Trainer?
Pavel Desort
2024-03-22 11:21:14 +0000 UTCcurrently preparing a cloud VM for this and it is working great. i am sharing on discord. hopefully tutorial very soon
Furkan Gözükara
2024-03-12 01:32:29 +0000 UTCYou got this working with ai-dock onetrainer docker?
mike oxmaul
2024-03-11 04:38:51 +0000 UTCplease do
Javi dltr
2024-03-10 05:28:44 +0000 UTCEMA works great with SD 1.5 but not SDXL. i couldnt make work
Furkan Gözükara
2024-03-05 16:28:23 +0000 UTCyes i think he can add easily
Furkan Gözükara
2024-03-05 16:28:09 +0000 UTCMaybe we should request to integrate Dreambooth, cause if OT has LORA support, then Dreambooth would be no problem, i guess..
Nenad Kuzmanovic
2024-03-05 15:18:36 +0000 UTCi just have to figure out how to enable EMA within training in diffusers library...
Nenad Kuzmanovic
2024-03-05 15:01:08 +0000 UTCyes it is not DreamBooth
Furkan Gözükara
2024-03-05 14:58:32 +0000 UTCso, i have conclusion about OT: it is NOT using regulation images and it is NOT using prior_preservation... I did a lot of testing plus i read on OT Discord that OT is not using good old Dreambooth training script. It is pure Finetune... For Dreambooth, i will start to use Diffusers library. Btw. this is working really amazing, everybody should try it.. Great results. https://github.com/huggingface/diffusers/tree/main/examples/advanced_diffusion_training I can post my training command, i spend a lot of time to make it run...
Nenad Kuzmanovic
2024-03-05 14:55:59 +0000 UTCye something could be broken with their update process
Furkan Gözükara
2024-03-03 15:50:50 +0000 UTCThe update.bat is not updating. Will try complete reinstall!
Chris
2024-03-03 10:16:41 +0000 UTChi. you mean the OneTrainer itself is not working? i would try reinstall
Furkan Gözükara
2024-03-03 10:13:47 +0000 UTCHi Mate, updating OneTrainer on Windows throws an error now. Maybe you can check?
Chris
2024-03-02 18:12:57 +0000 UTCyes it is on my todo. i will also show another cloud service template too. today meeting with them
Furkan Gözükara
2024-03-02 15:12:54 +0000 UTCPlease make Runpod template for One trainer. Please please please
Nenad Kuzmanovic
2024-03-02 14:58:46 +0000 UTCi think this depends on implementation of the script. i think the downscale to 1 side. on kohya there is --debug_dataset which shows how images and prompts are actually used. can you ask this to the developer here? https://github.com/Nerogar/OneTrainer/issues set 1216, not enable crop or bucketing and i think it should work.
Furkan Gözükara
2024-03-02 11:50:08 +0000 UTCI am trying SDXL training on 832x1216 images (cropped and resized manually). What should I set as OneTrainer resolution for such images ? "832" ? "832,1216" ? Why resolution is single number everywhere, how it's handled for no-square images?
Maxim Kramarenko
2024-03-02 08:10:57 +0000 UTCyou used different base model? i am going to investigate different base models. for example i will test Juggernaut XL
Furkan Gözükara
2024-02-29 21:03:41 +0000 UTCSo I've tried the OneTrainer for the first time and the problem I face is that once model is trained, the subject likeness completely disappears when I make the prompt longer than just "ohwx man". I've used the medium quality, speed config, 15 training images and the very good reg. images from another post. Any ideas what could I be doing wrong?
Tomek Deręgowski
2024-02-29 20:39:54 +0000 UTCthank you so much. yes you need to lower number of epochs / repeating if you train with so many images usually to prevent over training. still as usual take several checkpoints and compare them
Furkan Gözükara
2024-02-29 14:09:31 +0000 UTCHello Dr.! I followed you from Reddit and the truth is that your patreon gave me very good results compared to the Lora that I trained before. If I wanted, for example, to train with 100 images, in addition to lowering the image regularization repeats, should I change something else? Maybe less Epoch, but I could save every 10/15 epochs and try.
Leonardo Chocron
2024-02-29 13:37:52 +0000 UTCyes you need a special template for that. hopefully I will release it and make a tutorial
Furkan Gözükara
2024-02-26 23:08:03 +0000 UTCI am trying to install OneTrainer on Runpod, but I always have "tkinter" error. Can you help?
Sugar Coat VFX Design
2024-02-26 03:36:07 +0000 UTCI thought you were already giving full name :D
Furkan Gözükara
2024-02-24 12:16:12 +0000 UTCthis was an issue you worked on last month, I was saying that the answer IS in the thread you worked on github. When the final model is saved the whole file must be specified not just the dir. So if the hypothetical model output destination is C:\OneTrainer\WORKING\OutputDir\ that results in the error I got. I should have done C:\OneTrainer\WORKING\OutputDir\FILENAME if this is in one of your readme's somewhere I missed it and that is what I was doing wrong. Putting in the file name fixed my problem.
Steve Bruno
2024-02-24 10:18:31 +0000 UTCwell access denied is that python cant access your disk to write. something blocking it. sadly no idea.
Furkan Gözükara
2024-02-24 01:25:32 +0000 UTCits not the antivirus there no log history of it blocking anything, and none of the permissions are restricted. This is the issue I am having: https://github.com/Nerogar/OneTrainer/issues/115
Steve
2024-02-23 09:14:42 +0000 UTCyes probably not multi-threaded
Furkan Gözükara
2024-02-22 20:49:58 +0000 UTCI'm running with EMA set to cpu. Looks like it's only using 19% of my CPU. I wonder if it's not multithreaded.
DAVID OSTLER
2024-02-22 20:44:24 +0000 UTCYour computer is blocking the app to write to your disk. completely related to your computer setup. could be your antivirus or your account administrator level "Access is denied"
Furkan Gözükara
2024-02-21 20:21:55 +0000 UTCBeen having issues saving the checkpoint anyone have a clue what i'm doing wrong? Creating Backup W:/LoraFactory/WORKING/RunningNow/img\backup\2024-02-21_14-29-54-backup-10950-150-0 Exception in thread Thread-1 (__training_thread_function): Traceback (most recent call last): File "C:\Users\SysOp\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1016, in _bootstrap_inner self.run() File "C:\Users\SysOp\AppData\Local\Programs\Python\Python310\lib\threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "W:\OneTrainer\modules\ui\TrainUI.py", line 472, in __training_thread_function trainer.end() File "W:\OneTrainer\modules\trainer\GenericTrainer.py", line 570, in end self.model_saver.save( File "W:\OneTrainer\modules\modelSaver\StableDiffusionModelSaver.py", line 138, in save self.__save_safetensors(model, model_type, output_model_destination, dtype) File "W:\OneTrainer\modules\modelSaver\StableDiffusionModelSaver.py", line 86, in __save_safetensors save_file(save_state_dict, destination, self._create_safetensors_header(model, save_state_dict)) File "W:\OneTrainer\venv\lib\site-packages\safetensors\torch.py", line 281, in save_file serialize_file(_flatten(tensors), filename, metadata=metadata) safetensors_rust.SafetensorError: Error while serializing: IoError(Os { code: 5, kind: PermissionDenied, message: "Access is denied." }) It has no problem saving the backups just not the final model, both the save and final model are going to the same folder so presumably its not a permission issue? and there are several TB free on the drive so its not out of disk. I noticed that it is using both forward and backslashes which isn't the way I have it typed in. either way with python that's usually not an issue. Could it have anything to do with the Float32 settings for everything? Also what is the difference between what I have saved and what it was about to save (could I somehow still compile the saved text encoder, unet, vae from their respective folders? I had backup before save enabled so I still got the files from right before it froze in saving the final model) running the tier2_sd15_slow_10_6_GB_v2 config with a RTX4070.
Steve
2024-02-21 20:15:45 +0000 UTCI am waiting diffuser pipeline to be able to load .safetensors file to research training with OT
Furkan Gözükara
2024-02-19 14:20:42 +0000 UTCOT has a branch now that works for Stable Cascade. In time it'd be interesting to hear your thoughts on best OT settings to train that new model (particularly the 3b one). I'm on the fence as to whether or not it's a model I'll get much use out of. It seems like some people are very optimistic about it w/ regards to training meanwhile those training so far haven't shown much that demonstrates this. Even a "quickstart"/share of preliminary settings to get started would be helpful (the model tab for example is a bit complicated for S.Cascade even though I had training going I don't know if the TXT encoder/UNet were being trained properly. My results either showed minimal learning w/ LRs of 1e-5+, or burn out at 1e-4 etc).
John Dopamine
2024-02-19 14:19:19 +0000 UTCyou are welcome
Furkan Gözükara
2024-02-12 15:43:35 +0000 UTCThat's exactly what I needed to know. Thank you!!!!
Wktra
2024-02-12 05:06:57 +0000 UTCAdetailer tab in "inpainting" where it says"use separate weight/height
Furkan Gözükara
2024-02-11 22:30:34 +0000 UTCYou mean in the main Adetailer tab in "inpainting" where it says"use separate weight/height"? Or do you mean in the settings of Auto1111 under the Adetailer tab?
Wktra
2024-02-11 21:40:58 +0000 UTCyou can set any resolution check settings again. also it uses your default resolution. but it is there check again :)
Furkan Gözükara
2024-02-11 19:52:46 +0000 UTCI'm having trouble with one small part of your advice: How do I change the ADetailer extension resolution to 768x768? I've looked in the settings tab under Adetailer, but there's no way to change the resolution. Any advice?
Wktra
2024-02-11 18:09:53 +0000 UTCyou are welcome
Furkan Gözükara
2024-02-10 15:21:49 +0000 UTCThanks!
Chris
2024-02-10 15:21:04 +0000 UTCfor realism i dont suggest captions. for others you can try and compare. select the other option that reads captions from each txt file name with the same file name of images
Furkan Gözükara
2024-02-10 15:19:30 +0000 UTCHow can I use captions with OneTrainer? Do you recommend them when training a person? For realism? Or for style? Or does captioning not alter the results significantly?
Chris
2024-02-10 14:51:10 +0000 UTCyes since it uses more VRAM on GPU
Furkan Gözükara
2024-02-10 11:50:41 +0000 UTCyes since it uses more VRAM
Furkan Gözükara
2024-02-10 11:50:32 +0000 UTChello. can you check the attached video : Quick One Trainer Concept Setup.mkv you add concepts and give their folder path and prompt text file
Furkan Gözükara
2024-02-10 10:28:39 +0000 UTCi tested 768 vs 1024. 768 worked better. but 512 can be tested too
Furkan Gözükara
2024-02-10 10:27:54 +0000 UTCDid you do a test with both 768px and 512px source pictures? Does 768px improve quality much? Maybe this would be nice as another comparision test
Chris
2024-02-10 10:00:38 +0000 UTCHello, stupid question probably, but where do I select my training images, so where do I put them? In the workspace folder that I selected for the training? thanks! :)
Florian Maas
2024-02-10 09:48:11 +0000 UTCJust checked, it is set to CPU. I saw that but i tought that you left it like that for a reason.
Jam
2024-02-10 04:01:59 +0000 UTCI think that CPU is set for EMA on tier1 setting by default?
Jam
2024-02-10 04:00:24 +0000 UTCyes i get with 768. by the way it depends whether you use EMA on CPU or not. If you use EMA on cpu it really slows down. if you need speed enable xformers and disable gradient checkpointing and move EMA to GPU. it will work faster
Furkan Gözükara
2024-02-10 03:51:46 +0000 UTCAround 3h. Nothing was working except onetraining. Yoy get that time with 768 resolution? I used 512px dataset. Should the training last less or the same if i use 768px images?
Jam
2024-02-10 03:40:31 +0000 UTCyes i use 3090 . it takes lesser than 2 hours for 150 epoch. how long does it take?
Furkan Gözükara
2024-02-10 03:31:15 +0000 UTCAnyone using 3090 for training? Did anyone tried and recorded how long the training lasts on every tier? On tier1 setting where only thing changed is lowering the default 768 resolution to 512, i get training that lasts couple of hours? Is this normal? I am training a 1.5 model of a person. 15 concept images.
Jam
2024-02-10 03:25:10 +0000 UTCPlease report this to the developer github : https://github.com/kohya-ss/sd-scripts
Furkan Gözükara
2024-02-09 21:58:16 +0000 UTCit could be due to your prompt setup. how did you setup? 150 epoch is good
Furkan Gözükara
2024-02-09 21:57:47 +0000 UTCyes i dont caption for training a person. ohwx man for training images and man for class images.
Furkan Gözükara
2024-02-09 21:56:53 +0000 UTCHello. I have dual GPU. My second GPU is RTX 3060 with 12 GB VRAM. It has 0 VRAM usage. So I just tested config for you and it uses exactly 10300 MB. So you must have other apps consuming your VRAM. My speed is 5 second / it since EMA is running on CPU.
Furkan Gözükara
2024-02-09 21:54:46 +0000 UTCAlso I cant extract lycoris: Traceback (most recent call last): File "D:\kohya_ss\tools\lycoris_locon_extract.py", line 190, in main() File "D:\kohya_ss\tools\lycoris_locon_extract.py", line 169, in main state_dict = extract_diff( File "D:\kohya_ss\venv\lib\site-packages\lycoris\utils\__init__.py", line 376, in extract_diff for idx, te1, te2 in enumerate(zip(base_tes, db_tes)): ValueError: not enough values to unpack (expected 3, got 2)
RtBx
2024-02-09 18:47:44 +0000 UTCI don't know why, but I don't get the results I expected, I used the same settings, sampler, I used 50 images, 150 epochs, but it seems that it ends up undertrained.
RtBx
2024-02-09 18:13:01 +0000 UTCWhy is it that your 10.6 json file fills up my VRAM on my 3060 12GB completely? Training then takes ages, because it uses way more than 12GB. I am getting 8sec/it or so. When using your older method (1.bat / 2.bat, older versions of a1111 DB extension) I get around 1.5it/sec.
Chris
2024-02-09 17:41:41 +0000 UTCWait wait. This is IMPORTANT. This is probably the reason I have been getting very bad results using your method. So basically, you DO NOT caption any of the details on any of your training and regularization images? No pose details? No background details? Only "OHWX man"??
Wktra
2024-02-09 16:02:31 +0000 UTCtrue. but if you want to train style you can also use from text file per sample
Furkan Gözükara
2024-02-09 15:51:07 +0000 UTCYou said "Also I give prompt resource from single text file. And In that text file I just type either just man for reg images concept and ohwx man for training images concept." Does this mean you don't caption each training image??? You only use "ohwx man" for every training image?
Wktra
2024-02-09 15:48:22 +0000 UTCnice findings
Furkan Gözükara
2024-02-08 18:38:15 +0000 UTCThank you for your response. Just figured that out.
Jared Calvert
2024-02-08 16:57:35 +0000 UTCright.. Meanwhile i have tested LORA training. With the same settings as in Kohya i'm getting not so great results (on character). But style is great. In their paper (one trainer) they say NOT to train with rare trigger token, but only with captions. Character was (after 100 epochs) undertrained IMHO. But style is amazing, reacting to prompts really great... Maybe i was doing something wrong, cause i tried training with multiple resolutions, and each one of them was separate concept, so i had 5 concepts (all with the same images) but different resolution, and number of epochs was divided by 5... LyCORIS in Kohya is still my first choice... Finetuning in OneT is amazing. EDIT: Images was in same resolution, but in concept tab, under Image augmentation i overrided training resolution..
Nenad Kuzmanovic
2024-02-08 16:12:14 +0000 UTCyou need to install there manually. hopefully i will make a tutorial auto installer
Furkan Gözükara
2024-02-08 15:48:20 +0000 UTCI was unable to find a runpod template for the One trainer - the link you provided opens a page with pods, and i tried with search on Runpod but nothing... Can you check that again please..?
Nenad Kuzmanovic
2024-02-08 08:08:53 +0000 UTCMostly style...
Nenad Kuzmanovic
2024-02-08 03:30:37 +0000 UTCnice. so what is your purpose with embedding training?
Furkan Gözükara
2024-02-08 01:14:47 +0000 UTCBtw i have tested embedding training and it is so great. They posted really nice explanation on wiki page about everything considering One trainer..
Nenad Kuzmanovic
2024-02-08 00:53:51 +0000 UTCThat is the rule of engagement
Nenad Kuzmanovic
2024-02-08 00:52:38 +0000 UTCtrue. sadly this has to be done by everyone themselves
Furkan Gözükara
2024-02-07 21:59:22 +0000 UTCEvery time you load training config, you have to adjust paths, cause config file is saved on Dr. Furkans PC... But i suggest that you save training preset, when you edit paths (base model etc). After that, with every new training you just have to edit concept and thats all :-)
Nenad Kuzmanovic
2024-02-07 16:08:20 +0000 UTCok it is accurate. so if you set concepts accurate it should work great
Furkan Gözükara
2024-02-07 11:24:28 +0000 UTCI'm about to test the tier2 settings. Didn't touch anything except base model and concepts. https://ibb.co/1sbnCJK
Jam
2024-02-07 11:17:46 +0000 UTCplease click optimizer settings and show screenshot of that
Furkan Gözükara
2024-02-07 10:48:02 +0000 UTCSorry for the spamming :). Disregard the model loading question (error). This time i pointed to the VAE model also. Which for some reason prevented loading of the base model. It is working now :)
Jam
2024-02-07 10:44:25 +0000 UTCTraceback (most recent call last): File "M:\OneTrainer\modules\ui\TrainUI.py", line 465, in __training_thread_function trainer.start() File "M:\OneTrainer\modules\trainer\GenericTrainer.py", line 116, in start self.model = self.model_loader.load( File "M:\OneTrainer\modules\modelLoader\StableDiffusionModelLoader.py", line 356, in load raise Exception("could not load model: " + model_names.base_model) Exception: could not load model: M:/AI/SDlocal2/stable-diffusion-webui/models/Stable-diffusion/hyperRealism_30-32.safetensors
Jam
2024-02-07 10:19:12 +0000 UTCI have now tried with your settings and only my concepts. But One trainer wont start. It says it cant load the base model
Jam
2024-02-07 10:11:09 +0000 UTCThese? https://ibb.co/vQqYWky
Jam
2024-02-07 10:09:50 +0000 UTCWhere do i find those settings?
Jam
2024-02-07 10:06:03 +0000 UTCVAE wont cause it. how are your adafactor settings can you show me as screenshot?
Furkan Gözükara
2024-02-07 10:04:32 +0000 UTCNew problem :) New to this so understand me :) I tried another training with all default setting from the configuration file and now i get this "OneTrainer\modules\modelLoader\StableDiffusionModelLoader.py", line 356, in load raise Exception("could not load model: " + model_names.base_model) Exception: could not load model" I even installed the One Trainer again, but no help. In the "model" tab i point to the hyperRealism_30-32 in my stable diffusion folder like with the first training, but it says it cant load it now. Help :)
Jam
2024-02-07 10:03:36 +0000 UTCJust to add, image starts creating in live view but goes black at the end.
Jam
2024-02-07 09:00:45 +0000 UTCHi. Just did the first training and got a model that starts creating the image but at the end goes black. Any ideas why? Did it with tier1 settings. Everything the same, i have only changed output to bf12. To see the quality of the smaller model. Also a question, maybe that is the issue. VAE field was empty. Should i have add it?
Jam
2024-02-07 08:20:51 +0000 UTCwhen setting output path you need to give the name as .safetensors. you can safely rename it
Furkan Gözükara
2024-02-06 22:09:18 +0000 UTCThank you so much for your training. This is probably a dumb question, but when the training completes the output file is without an extention. Do I just rename it to [file].safetensors? Or is there a proper way to extract the checkpoint?
Jared Calvert
2024-02-06 17:38:14 +0000 UTCcan you elaborate more what you mean? you mean it can't follow the queries? without seeing dataset and your training folder structure and parameters impossible to tell. if you make a video of how you are training i can tell your error. i am also giving private lectures too
Furkan Gözükara
2024-02-04 13:22:24 +0000 UTCHello. If I use only Ohwx man tag then everything is ok, but if I add any other tags then other people are rendered instead of the Ohwx man. What could be the problem? I used your preset and 15 photos close to yours.
Stanislav Yurev
2024-02-04 09:38:25 +0000 UTCyou are welcome thanks for support
Furkan Gözükara
2024-02-01 10:45:58 +0000 UTCYou need to set your own training folder in concepts
Furkan Gözükara
2024-02-01 10:41:25 +0000 UTCFileNotFoundError: [WinError 3] 系统找不到指定的路径。: 'C:/Users/King/Pictures/me new size/1024x1024 sdxl'
楠 陈
2024-02-01 06:09:28 +0000 UTCThanks !
GeekZolda
2024-02-01 05:16:25 +0000 UTCthere is no 1 rule for all but my last test was 15 training images, 150 epoch, thus total 15 * 150 * 2 (reg images) = 4500
Furkan Gözükara
2024-02-01 00:02:36 +0000 UTCSorry if this was specified somewhere and I didn't see it but how many images\ steps do you recommend ? (for the dataset)
GeekZolda
2024-01-31 18:04:47 +0000 UTCAnd most important conclusion: this is the only forkflow that utilize "old" dreambooth training but it IS COMPATIBILE with SDXL. I bet Tier 1 sdxl training with buckets enabled will consume full A6000 recourses (48GB VRAM)... I will try that as soon as our "godfather" makes 1 click Runpod caviar :-)
Nenad Kuzmanovic
2024-01-31 13:47:22 +0000 UTChopefully will do all
Furkan Gözükara
2024-01-31 12:54:25 +0000 UTCEdit 2: it kinda generate imgs without trigger rare token, but only "style" (full colors present in dataset and a bit of concept)...just like XavierXiao Dreambooth. Conclusion: Although the training is called finetune, do not confuse it with Kohja finetune, which is different. Kohya finetuned models are not flexibile in a way how they accept different styles typed as prompt.
Nenad Kuzmanovic
2024-01-31 12:32:14 +0000 UTCI think this is not actual Dreambooth training, but native finetuneing. I've just checked, trained model generates images without rare token used for training. Or that depends on actual dataset? I'm not using reg images but only captions with trigger word at the beginening of every caption... EDIT: i think it depends of what is your dataset, if no reg images are used, it tunes all tokens present in captions. But i think it's different finetune than Kohya, which needs json metada file, like this one i made for my dataset https://drive.google.com/file/d/1K653kQv3ZEwFb8dkLbRHrAu_kCrSl9Z5/view?usp=sharing With Kohya's method, tokens from tags can influence "style" of generated images heavily. You can see that in following example, i've generated 3 images with same prompt but with different tags (i had 3 sets of tags in my json metadata file) https://drive.google.com/drive/folders/1GoUmwx7sDcv19s2NNC1ubf35SiYa7zRe?usp=sharing You can download images and check generation parameters in auto1111, but here they are: - close up of a Shoes,ninja style, samurai style,(photorealistic:1.1) - close up of a Shoes,futurism, sci-fi, space fiction, hi-tech,(photorealistic:1.1) - close up of a Shoes,dark style, darkness, fantasy, gothic, horror, hi-tech,(photorealistic:1.1) This way you have 3 different styles in model, i think each one of them serve as one big embedded token...
Nenad Kuzmanovic
2024-01-31 09:45:38 +0000 UTCso we need a full video of the onetrainer training + the extraction of the checkpoint from kohya ss. Would be amazing if someone can also make a template of Onetrainer for runpod... think most of us cannot run the best presets
AIrtistry Contact
2024-01-31 08:59:02 +0000 UTCyes EMA is really improvement. I reported that to Kohya I hope he adds
Furkan Gözükara
2024-01-31 01:52:11 +0000 UTCwow, sampling during training in great :-) I'm training Tier 2 fast (xformers) cause my dataset is 86 img concept with captions and no regs, but with enabled buckets. And rtx 3090 can not handle it without Xformers, i'm not getting CUDA error but it is slooooowwww cause it consumes 12 gb share GPU memory... So, A6000 on Runpod will be my best friend. But i have to say, EMA training is really something. amazing results just after 30 epochs, cause it captured style and not concept (yet, cause it;s too early, it needs much more steps for that). I think i will stick to OneT for good, but i think implementation of LyCORIS plus training different layers separately (attention, transformer blocks etc) is the MUST.
Nenad Kuzmanovic
2024-01-31 01:07:14 +0000 UTCWhich of these files should I use on kaggle? tier2_sd15_fast_15.8_GB.json tier2_sd15_slow_10.6_GB.json tier1_sd15_22_6_GB.json And how to I use this model Hyper Realism od Kaggle? Do I need to add some file from Huggingface?
Felix Rockwell
2024-01-30 16:24:50 +0000 UTCAh I never work on with SD 2.1
Furkan Gözükara
2024-01-30 11:29:35 +0000 UTCHello. you are right. hopefully I will make a tutorial. it has 2 options in config tab like read from a single file or read from file name txt files. if you come discord i can show with a screenshot
Furkan Gözükara
2024-01-30 11:10:29 +0000 UTCthank you so much for your support
Furkan Gözükara
2024-01-30 11:09:46 +0000 UTCGood job
Tech Meowpunk
2024-01-30 10:51:13 +0000 UTCSD 2.1-base... style model...
Nenad Kuzmanovic
2024-01-30 03:27:18 +0000 UTCI'm new to OneTrainer and there aren't many tutorials out there. Where do I input the instance prompt word and class word??? Does Onetrainer just pull it from the captions?
Wktra
2024-01-30 03:23:13 +0000 UTCI am not sure if LoRA training supports EMA too. not sure. It is best to do DreamBooth training and then extract LoRA from it
Furkan Gözükara
2024-01-30 01:36:05 +0000 UTCIs OneTrainer better for creating Loras because of EMA? Or is it just better for fine tuning dreambooth checkpoins?
Wktra
2024-01-30 01:34:55 +0000 UTCnice you tried on SDXL or SD 1.5?
Furkan Gözükara
2024-01-30 00:24:06 +0000 UTCMy new FAVORITE optimiser: DAdaptLion...It' just amazing, using it for the first time. It has that trademark Lion "smoothness". I strongly recomended it, Lr 1 for all and no args...
Nenad Kuzmanovic
2024-01-29 23:31:01 +0000 UTCthat is a good question. i trained both 768x768, and 1024x1024. I find that 768x768 better . and surprisingly i generate 1024x1024 good images with 768x768 training
Furkan Gözükara
2024-01-29 20:56:37 +0000 UTCWhat was the resolution of your source images? 1024x1024? Thx for this - giving it a run through.
John Dopamine
2024-01-29 20:47:38 +0000 UTCI find it lesser quality, more VRAM and resources demanding. I think if you enable xFormers should work fairly well on 24 GB.
Furkan Gözükara
2024-01-29 20:03:05 +0000 UTCWhat are your thoughts on Prodigy? I got a 4090 24GB would that be enough?
likewisemarien
2024-01-29 19:59:10 +0000 UTCYes will do hopefully. I get you it is hard to use.
Furkan Gözükara
2024-01-29 19:37:46 +0000 UTCI tested prodigy throughly on SDXL experiments and I didn't get better results. Adafactor is one of the best VRAM friendly optimizer. I like it very much. I got best results with it for SDXL so got good results there too. multi-res training depends on your training dataset.
Furkan Gözükara
2024-01-29 19:37:35 +0000 UTCOneTrainer sadly dont have a tutorial yet. Will do soon hopefully.
Furkan Gözükara
2024-01-29 19:36:29 +0000 UTCplease make a video about it for simpletons like me who just want to click a button and get results :D
Sidharth
2024-01-29 17:43:41 +0000 UTCI heard from the onetrainer discord that multi-res training gives better output too. Have you tried using prodigy? Why did you choose ADAfactor over prodigy?
likewisemarien
2024-01-29 16:09:56 +0000 UTCCould it be that the links are wrong? The OneTrainer links to the Kohya tutorial, and vice versa.
Guggeli
2024-01-29 15:40:38 +0000 UTCIs it possible to type additional arguments in OneT? Safe warmup, decouple etc... Prodigy is usseles without it. d_coef just needs to be set and i dont see how.. EDIT: i found it :-)
Nenad Kuzmanovic
2024-01-29 15:16:46 +0000 UTCohh offcourse, we always trained with EMA in auto1111, i totaly forgot it.. and that is why i never trained Dreambooth in Kohya and got that quality like in auto1111.. I just HAVE to train in OneT dataset which i used for my belowed Pure darkness model, which is Kohya Finetune... it has arround 800 images, all generated in Illuminati Diffusion with various loras and 2-pass highres fix...Tonight im starting it, cause it will train it at least 10 hours (at least that was time in Kohya)...
Nenad Kuzmanovic
2024-01-29 14:52:28 +0000 UTCI just checked, that preset in Bmaltis is "SDXL-LoRA adafactor v1.0". Just change batch size, which is 5 LMAO... Don't change anything else. I like to use Weights&Biases to watch what it does with learning rate, which skyrockets, it is higher than Prodigy (they are both adaptive)... but that downscaling and squashing of weights makes that it learns really great... I have to try it on face training..
Nenad Kuzmanovic
2024-01-29 14:40:08 +0000 UTCIt's different, that LORA training really engraves dataset, but i did testing with style and concept models, which i mostly do on daily basis for the last 6 months. I don't remember when was the last time i trained someones face...
Nenad Kuzmanovic
2024-01-29 14:34:20 +0000 UTCI think you train as regular but on a horrific dataset. so when you use it in negative prompt, the model drive away from those weights. I think that is the logic. but not 100% sure
Furkan Gözükara
2024-01-29 14:32:57 +0000 UTCYes, but it can also make wonders, like embeddings for Illuminati Diffusion, 6 of them (which is IMHO the best model in the world)... That contrast and dark tones still NO MODEL can achieve...
Nenad Kuzmanovic
2024-01-29 14:31:29 +0000 UTCHave you compared that LoRA vs DreamBooth > Extract LoRA?
Furkan Gözükara
2024-01-29 14:23:54 +0000 UTCI see. I also never did that :d i think for that you need to have a horrific training dataset :D
Furkan Gözükara
2024-01-29 14:23:07 +0000 UTCI'm allways using your configs for Dreambooth, but for Lora i had to work hard to find good settings, which i have, offcourse. If someone needs those, just let me know. There is actually one great preset in Bmaltis for LORA training with Adafactor scheduler, it is full LORA (128 Dim, 128 Alpha) and Loha prefix and strong weights normalisation. Works really great for sdxl and sd2.1 (which i heavily use for everything but face, mostly for Deforum animations :-) I hope u don't mind if i put a link to music video i made for my homie musician... If u mind, just delete comment :-) https://www.youtube.com/watch?v=LGdowhWg7uQ
Nenad Kuzmanovic
2024-01-29 14:18:51 +0000 UTChttps://www.reddit.com/r/StableDiffusion/comments/yy2i5a/i_created_a_negative_embedding_textual_inversion/ here it is :-)
Nenad Kuzmanovic
2024-01-29 14:10:46 +0000 UTC..and if u manage to make Embedding training (especially NEGATIVE) it would be 100% WIN, cause there are 0 (zero) tutorials on that... I found some readings from the guy who made negative emb for hands and fingers... but i didn't manage to train it successfully.
Nenad Kuzmanovic
2024-01-29 14:08:52 +0000 UTCpresets are not useful. use my shared configs
Furkan Gözükara
2024-01-29 14:07:52 +0000 UTCye will do hopefully
Furkan Gözükara
2024-01-29 14:07:35 +0000 UTCyou are welcome
Furkan Gözükara
2024-01-29 14:07:30 +0000 UTCI trust that the presets are meaningful and correct, because if they are not, then what is their point? BMaltis kohya presets are (not all but most) totally nonsense, in every one the batch size is 8 LOL.. WTF??
Nenad Kuzmanovic
2024-01-29 14:05:54 +0000 UTCyes
楠 陈
2024-01-29 14:03:01 +0000 UTCthanks you
AIrtistry Contact
2024-01-29 13:58:43 +0000 UTCYou are right. It took me a while too as well. Hopefully will do ASAP.
Furkan Gözükara
2024-01-29 13:55:01 +0000 UTCActually I used EMA in my best training if you remember : https://youtu.be/g0wXIcRhkJk These custom models uses best VAE embedded so no need extra VAE
Furkan Gözükara
2024-01-29 13:52:33 +0000 UTCyes but you still need concepts accurately set and optimizer settings. be careful with those 2
Furkan Gözükara
2024-01-29 13:51:38 +0000 UTCWe need a video explaining the whole process with Onetrainer please
AIrtistry Contact
2024-01-29 13:51:34 +0000 UTCOneT has option to export training parameters, for training without UI... i kinda like OneT, i have to try training sdxl embedding, cause Kohya embedding training gives me nightmares with placeholder tokens, strings etc...
Nenad Kuzmanovic
2024-01-29 13:40:58 +0000 UTCOk... I'm curious about training with EMA, and in what way it "enhance" training...? I remember good old Dreambooth training in auto1111 and u never used it (at least in your tutorials)... I've tried to find some readings about training with EMA but no luck... Also, i saw One T has VAE training option, and i am REALLY interested for that.. :-) If you have to say something about it, do not hesitate :-)
Nenad Kuzmanovic
2024-01-29 13:39:14 +0000 UTCIt would work but you had to prepare training command on your pc and copy paste there. On Kaggle you can't run the GUI. So it is really hard thing to do. Use Kohya config we already have working Kaggle notebook and tutorial. Just follow it and use the SD 1.5 config.
Furkan Gözükara
2024-01-29 13:22:28 +0000 UTCDoes it also work on Kaggle?
Felix Rockwell
2024-01-29 13:20:56 +0000 UTCWell it depends. Saving is best approach as usual and comparing.
Furkan Gözükara
2024-01-29 13:07:48 +0000 UTCSo that save at the end is ok? Not overtrained?
Nenad Kuzmanovic
2024-01-29 12:47:21 +0000 UTCNo worries, cause it is part of the learning process - now i got it... ;)
Nenad Kuzmanovic
2024-01-29 12:46:34 +0000 UTCI used 768x768 images. Shown used images in the post. I think OneTrainer will be better since it has plus EMA for SD 1.5. For SDXL I made a comparison here : https://medium.com/@furkangozukara/experimenting-with-onetrainer-onetrainer-vs-kohya-realism-vs-stylization-reg-images-vs-0438950e9515
Furkan Gözükara
2024-01-29 12:25:47 +0000 UTCtrue i didn't save checkpoints during training. it saves at the end. you need to set it yourself manually. I should write this to the post you are right sorry about that.
Furkan Gözükara
2024-01-29 12:23:30 +0000 UTCPlease check your config, it is set to NEVER save checkpoint during training.. i just wasted 1 hour of training...
Nenad Kuzmanovic
2024-01-29 12:01:59 +0000 UTCWhat do you do for dataset image? Do you crop them to a specific sizes or train them with their original size? And do you believe onetrainer is providing better results than kohya? What in compare to SDXL dreambooth LORA?
So Sha
2024-01-29 04:34:57 +0000 UTCyou are welcome thanks for supporting me
Furkan Gözükara
2024-01-29 00:11:20 +0000 UTCThank you for sharing your awesome work!
Dungeon Master
2024-01-28 23:49:50 +0000 UTCI plan to research this and make a tutorial soon hopefully on RunPod.
Furkan Gözükara
2024-01-28 23:41:27 +0000 UTCWould love to get one trainer working in the cloud. Is there somewhere I can rent a gpu along side windows?
mike oxmaul
2024-01-28 23:35:25 +0000 UTC