Home Creators Posts Import Register Favorites Logout

Downloads

Content

Patreon exclusive posts index

Join 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.

Files

Comments

mike oxmaul

Would love to get one trainer working in the cloud. Is there somewhere I can rent a gpu along side windows?

Dungeon Master

Thank you for sharing your awesome work!

So Sha

What 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?

Nenad Kuzmanovic

Please check your config, it is set to NEVER save checkpoint during training.. i just wasted 1 hour of training...

Nenad Kuzmanovic

No worries, cause it is part of the learning process - now i got it... ;)

Nenad Kuzmanovic

So that save at the end is ok? Not overtrained?

SECourses: FLUX, Tutorials, Guides, Resources, Training, Scripts

It 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.

Nenad Kuzmanovic

Ok... 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

OneT 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...

AIrtistry Contact

We need a video explaining the whole process with Onetrainer please

Nenad Kuzmanovic

I 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

..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

I'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

Yes, 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

It'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

I 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

ohh 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

Is 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 :-)

Guggeli

Could it be that the links are wrong? The OneTrainer links to the Kohya tutorial, and vice versa.

likewisemarien

I 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?

Sid (edited)

Comment edits

2026-09-07 10:00 please make a video about it for simpletons like me who just want to click a button and get results :D
2024-01-29 17:43

SECourses: FLUX, Tutorials, Guides, Resources, Training, Scripts

I 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.

likewisemarien

What are your thoughts on Prodigy? I got a 4090 24GB would that be enough?

John Dopamine

What was the resolution of your source images? 1024x1024? Thx for this - giving it a run through.

Nenad Kuzmanovic

My 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...

Wktra

Is OneTrainer better for creating Loras because of EMA? Or is it just better for fine tuning dreambooth checkpoins?

Wktra

I'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?

Felix Rockwell

Which 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?

Nenad Kuzmanovic

wow, 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.

AIrtistry Contact

so 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

Nenad Kuzmanovic

I 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

Edit 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

And 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 :-)

GeekZolda

Sorry if this was specified somewhere and I didn't see it but how many images\ steps do you recommend ? (for the dataset)

楠 陈

FileNotFoundError: [WinError 3] 系统找不到指定的路径。: 'C:/Users/King/Pictures/me new size/1024x1024 sdxl'

Stanislav Yurev

Hello. 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.

SECourses: FLUX, Tutorials, Guides, Resources, Training, Scripts

can 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

Jared Calvert

Thank 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?

Jam

Hi. 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

Just to add, image starts creating in live view but goes black at the end.

Jam

New 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

Where do i find those settings?

Jam

I have now tried with your settings and only my concepts. But One trainer wont start. It says it cant load the base model

Jam

Traceback (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

Sorry 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

I'm about to test the tier2 settings. Didn't touch anything except base model and concepts. https://ibb.co/1sbnCJK

Nenad Kuzmanovic

Every 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

Btw 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

I 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

right.. 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..

Jared Calvert

Thank you for your response. Just figured that out.

Wktra

You 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

Wait 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"??

100Sachen80

Why 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.

Hikarias (edited)

Comment edits

2026-09-07 10:00 I 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.
2024-02-09 18:13

Hikarias (edited)

Comment edits

2026-09-07 10:00 Also 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)
2024-02-09 18:47

SECourses: FLUX, Tutorials, Guides, Resources, Training, Scripts

Hello. 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.

Jam

Anyone 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

Around 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

I think that CPU is set for EMA on tier1 setting by default?

Jam

Just checked, it is set to CPU. I saw that but i tought that you left it like that for a reason.

Florian Maas

Hello, 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! :)

100Sachen80

Did 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

100Sachen80

How 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?

Wktra

I'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

You 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

That's exactly what I needed to know. Thank you!!!!

John Dopamine

OT 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).

Steve

Been 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.

DAVID OSTLER

I'm running with EMA set to cpu. Looks like it's only using 19% of my CPU. I wonder if it's not multithreaded.

Steve

this 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.

Sugar Coat VFX Design

I am trying to install OneTrainer on Runpod, but I always have "tkinter" error. Can you help?

Leonardo Chocron

Hello 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.

Tomek Deręgowski

So 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?

Maxim Kramarenko

I 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?

Nenad Kuzmanovic

Please make Runpod template for One trainer. Please please please

100Sachen80

Hi Mate, updating OneTrainer on Windows throws an error now. Maybe you can check?

100Sachen80

The update.bat is not updating. Will try complete reinstall!

Nenad Kuzmanovic

so, 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

i just have to figure out how to enable EMA within training in diffusers library...

Nenad Kuzmanovic

Maybe we should request to integrate Dreambooth, cause if OT has LORA support, then Dreambooth would be no problem, i guess..

mike oxmaul

You got this working with ai-dock onetrainer docker?

Pavel Desort

so 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?

Elevo

Hi, 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?

Elevo

Oh 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.

Pavel Desort

can you post your command here or on SE patreon discord channel?

Nenad Kuzmanovic

Pivotal 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.

Roy Ding

I 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

I 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?

Manpreet Singh

What 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

Thanks. Do 10 images also work well? For 10 images, would we need 200 or 130 epochs for good results?

Jannik

Hi, can you share your settings for the ADetailer?

Jannik

Awesome! Thank you so much. Keep going with the good work :-)

Marc

Hi , 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.