Training Flux Loras locally with FluxGym!

  Рет қаралды 15,867

AIFuzz

AIFuzz

Күн бұрын

Пікірлер: 53
@gustafgrefberg344
@gustafgrefberg344 4 ай бұрын
Wonderful guide! You can also put the start up in a bat file (environment, start the app etc) so you don't have to go into a command prompt every time. I just added a timeout in the bat for each of the steps. file: timeout /t 3 /no I am not a programmer so there might be a better way, but certainly speeds up starting up.
@dudesicko
@dudesicko 4 ай бұрын
Hey a little tip, set your workflow up to render multiple images each time. 1. where you go around the Lora, and just render it with the prompt (and NO LoRA), for control. 2. Have multiple lora set up, so it test them all at one go (I have a workflow where i do all this). That way you do are sure for every epoc (lora), you test, they have the same settings, seed... and you can better see what the difference is in each epic, and again remember the Control where NO lora is loaded. In your case, you did not use the Tricker word, and not always you do need it, but in your case, without a control it might just be Flux that generated the images of a office since the word office were in, there for i also reccomand to use tricker words like "aY5KaZaD" that way you know that by just putting that in as prompt, and you get the result, it is not because Flux know ah aY5KaZaD = Office...
@brianmonarchcomedy
@brianmonarchcomedy 4 ай бұрын
I got it working and added my images and had it add captions. I hit "start training" and after about 10 seconds it says "Training Complete. Check the outputs folder for the LoRA files." Which is obviously way too fast. Any idea why it thinks it's done when it didn't do anything? I kept all the settings at default and I have a beefy NVidia card.
@dong5394
@dong5394 4 ай бұрын
Delete the fluxgym in the API folder. Then reinstall
@graphicism
@graphicism Ай бұрын
What is the difference between a .safetensors file and a .sft file? All my models are .safetensors and I placed the 20+ GB flux1-dev.safetensor file in the correct folder and it still download flux1-dev.sft. It created the Lora without an issue but now I can't use it because it wants flux1-dev.sft and not flux1-dev.safetensor which my UI needs to create images?
@gileneusz
@gileneusz 4 ай бұрын
can you show more detailed part how to use ComfyUI for running those safetensors? I run your workbench but it shows error of missing modules
@AIFuzz59
@AIFuzz59 4 ай бұрын
@@gileneusz what modules are missing
@metairieman55
@metairieman55 4 ай бұрын
Looks good. I had a test folder that already had jpg/txt files from a kohya_ss trial run. Made sure to ad my lora name to text files also. It stalled but I could not get back in to retry. What is the process of opening Fluxgym again? Whatever I did worked first time . . . if you could get up and running I could be more precise of my error. Thanks. Forgot something: I couldn't get the Gradio html to pop up.
@AIFuzz59
@AIFuzz59 4 ай бұрын
@@metairieman55 you would need to start the virtual environment then activate it. Then run the app.py script. It will give you a URL and just paste that into a new browser and it should load up the UI
@user-nb6kx3qn3p
@user-nb6kx3qn3p 3 ай бұрын
i get this error " Cannot execute because a node is missing the class_type property.: Node ID '#43'
@AIFuzz59
@AIFuzz59 3 ай бұрын
@@user-nb6kx3qn3p did you install missing comfy noses?
@user-nb6kx3qn3p
@user-nb6kx3qn3p 3 ай бұрын
​@@AIFuzz59 thanks. now its working fine, however i have a error in productfactory1 workflow it shows " Error occurred when executing VAEDecode: "
@Cserror1
@Cserror1 2 ай бұрын
Hey:) can you train in flux gym with different loras like skin texture and iphone style lora? And is fal ai better or flux gym? haha great video
@carsoncarr-busyframes619
@carsoncarr-busyframes619 3 ай бұрын
thanks for the walk through! is anyone else getting this on the step around 8:40 ? C:\FluxTraining\fluxgym>python -m venv env 'python' is not recognized as an internal or external command, operable program or batch file.
@goneviralvideos
@goneviralvideos 3 ай бұрын
Thank you so much for video. how to stop downloading models, I already have the models downloaded. Even I added them to folder, it is still downloading them. Thank you.
@ckleinhendler
@ckleinhendler 3 ай бұрын
Can you provide links to the checkpoint used in the attached workflow. Can the trained lora work only with this checkpoint and vae?
@AIFuzz59
@AIFuzz59 3 ай бұрын
@@ckleinhendler this trains a Lora based on Flux Dev so it will work with any Flux model. In order to use Flux, you will also need the Flux VAE
@cgraider
@cgraider 4 ай бұрын
how can i do checkpoint training on low vram ?
@ApexArtistX
@ApexArtistX 3 ай бұрын
doesnt work with 8 vram.. also how to change the --highvram in training script
@KovekProducciones
@KovekProducciones 4 ай бұрын
Is there any way to create a shortcut on the desktop so I don't have to create the virtual environment manually every time I want to open it?
@AIFuzz59
@AIFuzz59 4 ай бұрын
@@KovekProducciones yes we will be posting a video on that soon
@andrewbarrett6403
@andrewbarrett6403 4 ай бұрын
So you have to put all 4 safetensor files in the Lora folder? Does that mean you have to load all 4 when generating the images?
@AIFuzz59
@AIFuzz59 4 ай бұрын
@@andrewbarrett6403 sorry for the confusion, no you don’t need all of them for it to work. Each safetensor represents a saved/final lots during the process. The higher the number, the further into training it saved. If there is no number and just the file name, that is the final Lora which would be the best to use
@lostinoc3528
@lostinoc3528 3 ай бұрын
Hi, can u link comfy workflow, cant find one for flux dev with multi loras. And flux dev unet.
@mr.entezaee
@mr.entezaee 4 ай бұрын
I trained a model on 16 and it took about five hours with 3090. Default settings. I feel that the model he made is good. It is acceptable. But I wanted to ask how some models are 18 megabytes and some even reach one to two gigs? Determining the volume depends on what factors? And another question is how to make a model quickly but with quality and similar to what we want? I forgot another question. How to get flexibility in different styles. The character I made seems to work very well only on the real photo. And that I did the subtitles. Is subtitling really important? Sorry, I have too many questions
@AIFuzz59
@AIFuzz59 4 ай бұрын
@@mr.entezaee in order to make it quickly, you would need to limit the number of images in the dataset, lower the repeats to 1 AND lower the number of epochs to 8-10.
@AIFuzz59
@AIFuzz59 4 ай бұрын
@@mr.entezaee you don’t need captions but if you want it to train specifically for what’s in the image for example for a style Lora, you will need captions
@semakusut
@semakusut 4 ай бұрын
i'm so newbie, how to make your node looks like this? Mine was like a wol, lol
@AIFuzz59
@AIFuzz59 4 ай бұрын
@@semakusut make sure you update ComfyUI
@RyMaz0
@RyMaz0 4 ай бұрын
Any ideas why my sample images during the lora training were amazing and just what I wanted, but I cannot replicate them at all in comfy/forge/etc? The more it uses my lora, the more the overall quality turns to rubbish and I don't know what to change
@AIFuzz59
@AIFuzz59 4 ай бұрын
@@RyMaz0 so the outcome when using the Lora is bad?
@kiransurwade3576
@kiransurwade3576 4 ай бұрын
20:09 you didn't use the trigger word "TTR" in the prompt you set while training 😁
@AIFuzz59
@AIFuzz59 4 ай бұрын
@@kiransurwade3576 good eye thanks
@kiransurwade3576
@kiransurwade3576 4 ай бұрын
@@AIFuzz59 welcome 😊
@dholzric1
@dholzric1 4 ай бұрын
I had to go to AI Toolkit since FluxGym keeps having errors with Torch. Will FluxGym work with multiple GPU's? (I have 2 3090's and 2 P40's.)
@gileneusz
@gileneusz 4 ай бұрын
is she from California? such Californian accent
@satyajitroutray282
@satyajitroutray282 4 ай бұрын
Can we resume an interrupted training session?
@AIFuzz59
@AIFuzz59 4 ай бұрын
@@satyajitroutray282 what do you mean “interrupted”?
@satyajitroutray282
@satyajitroutray282 4 ай бұрын
@@AIFuzz59 the training time on low vram pc is several hours, if i have to stop the training jn the middle then how do i resume the training from the last state.
@Jaysunn
@Jaysunn 4 ай бұрын
What voice changer do you use
@AIFuzz59
@AIFuzz59 4 ай бұрын
@@Jaysunn huh?
@Jaysunn
@Jaysunn 4 ай бұрын
@@AIFuzz59 Your voice changer. Don't act , it's decent but not perfect. Has obvious artifacts in spots
@Jaysunn
@Jaysunn 4 ай бұрын
@@AIFuzz59 your audience is AI enthusiasts, don't think we can't spot something so simple lul
@jamaljenkins8136
@jamaljenkins8136 3 ай бұрын
why do the video of telling us how to install it and just being like oh im not going to do it because i already have it. just delete it and do it step by step
@AIFuzz59
@AIFuzz59 3 ай бұрын
@@jamaljenkins8136 thanks for your suggestion!
@MrWizardGG
@MrWizardGG 4 ай бұрын
So you don't even train it successfully and still uploaded the video anyway lol?
@AIFuzz59
@AIFuzz59 4 ай бұрын
@@MrWizardGG it’s more about sharing the info. We have trained many successful Lora’s fine with FluxGym bro
@AIFuzz59
@AIFuzz59 4 ай бұрын
@@MrWizardGG we love you
@oldleaf3755
@oldleaf3755 4 ай бұрын
you just posted cringe
@mr.entezaee
@mr.entezaee 4 ай бұрын
Excuse me, one more question, what does this warning mean? lora key not loaded: lora_unet_up_blocks_3_attentions_2_transformer_blocks_0_attn2_to_out_0.lora_down.weight Maybe he didn't recognize my model or is there something I didn't understand?
@AIFuzz59
@AIFuzz59 4 ай бұрын
@@mr.entezaee make sure you have all the requirement.txt files run in the fluxgym folder and the sc scripts folder
@Fret-Reps
@Fret-Reps 3 ай бұрын
doesn't run. I don't know what I did wrong. It's pretty straight forward. Here is the error - (env) E:\AI\ComfyUI_windows_portable_nvidia\FluxLora\fluxgym>python app.py Traceback (most recent call last): File "E:\AI\ComfyUI_windows_portable_nvidia\FluxLora\fluxgym\app.py", line 19, in from library import flux_train_utils, huggingface_util File "e:\ai\comfyui_windows_portable_nvidia\fluxlora\fluxgym\sd-scripts\library\flux_train_utils.py", line 17, in from library import flux_models, flux_utils, strategy_base, train_util File "e:\ai\comfyui_windows_portable_nvidia\fluxlora\fluxgym\sd-scripts\library\flux_models.py", line 363, in class ModelSpec: File "e:\ai\comfyui_windows_portable_nvidia\fluxlora\fluxgym\sd-scripts\library\flux_models.py", line 366, in ModelSpec ckpt_path: str | None TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'
Free FLUX LoRA Training | Easy Ai Influencer LoRA | FluxGym Tutorial
14:27
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
Flux: all samplers, schedulers, guidance, shift tested!
24:33
Latent Vision
Рет қаралды 37 М.
Understanding & Using Flux, Made Simple
29:29
Arcane Ai Alchemy
Рет қаралды 746
AI Is Making You An Illiterate Programmer
27:22
ThePrimeTime
Рет қаралды 219 М.
NVIDIA CEO Jensen Huang's Vision for the Future
1:03:03
Cleo Abram
Рет қаралды 614 М.
How to Get $500 Motherboards for $50
31:29
Linus Tech Tips
Рет қаралды 3 МЛН
Why did you make me build this? - CEO PC Build
19:11
Linus Tech Tips
Рет қаралды 2,1 МЛН
LoRA Training in FLUX: How to Use FluxGym Effectively
26:14
Vladimir Chopine [GeekatPlay]
Рет қаралды 6 М.
Dead Simple Local Flux LoRA Training with Flux Gym - 8GB VRAM or more
22:22