Advice on Flux LoRA training #10787
Replies: 1 comment 10 replies
-
can you post an image generated with your lora? It's probably doable with any model but it depends on your definition of 'isn't great'. For example, there's a lora for ikea instructions trained in the base SDXL model which is fine if you don't consider the text. About your decision to use Flux, I haven't tried to train a lora on it yet but for what I've seen and tested, Flux looses a lot of the quality when you finetune it, the loras I tested work fine but they degrade a lot the other stuff and also the model isn't that great for lines (for example anime) and it's really overtrained in professional photos with bokeh. For example, take this lora for SDXL and this one for Flux which are for 3D wireframes, if you ask me, based in the demo images, I think the SDXL one is better. Also how big if your dataset? Depending on the size, you will probably need to finetune a model that's really over trained in lines like the anime models. This probably needs a bigger dataset than a normal character lora. I really can't help with the hyperparameters for Flux, but one good start would be to train the whole model and then extract loras in different ranks to test which one works better for your use case. Also as a good default start, you should use the same LR than what the base model used. |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I'm looking for advice on how to best train a LoRA on the following task: the LoRA should learn to represent black and white wireframe drawings seen from top (orthogonal view ie objects seen from top, no perspective).
I attach one example of image from my dataset depicting a desk in the above mentioned style.
So far I've mostly tried fine-tuning flux dev, varying lr, rank etc. to see what I can get; and the LoRA partially learns but definitely isn't great.
Do you have any recommendations of model/hyperparams? (if this task is feasible at all)
Thanks vm!
![dataset_desk_14](https://private-user-images.githubusercontent.com/70368164/412840098-d7b600d6-6c50-4169-9164-d7d7025e4fdd.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1ODgxMjQsIm5iZiI6MTczOTU4NzgyNCwicGF0aCI6Ii83MDM2ODE2NC80MTI4NDAwOTgtZDdiNjAwZDYtNmM1MC00MTY5LTkxNjQtZDdkNzAyNWU0ZmRkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDAyNTAyNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWFlOTQ2N2Y1ZDBlOWU4NDRjMGIwNThjMWY4YzZjY2E5Y2E5ZDRiNzAyYmI0NDI5N2M5NTEzYzJlZjhjMWExYWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.6rRE6HlqjTjQ-GNsK8uhvRIobxg0l0_PzO-tw9xD2fQ)
Happy to provide more details if needed
(maybe @asomoza ?)
Beta Was this translation helpful? Give feedback.
All reactions