Giter Club home page Giter Club logo

Comments (12)

qq110146 avatar qq110146 commented on July 18, 2024 1

There was a fork of Joe's than handled multi-concepts but it hasn't been touched in 6 months https://github.com/kanewallmann/Dreambooth-Stable-Diffusion

ShivamShrirao's Dreambooth (diffusers based) colab handles multi-concepts. https://github.com/ShivamShrirao/diffusers/examples/dreambooth

Thanks a lot~ I looked in ShivamShrirao's Dreambooth and found that it may not work well for multi-concepts: ShivamShrirao/diffusers#127
So the main question right now is: Are there reproducible successful multi-concepts training cases?

from dreambooth-stable-diffusion.

SlZeroth avatar SlZeroth commented on July 18, 2024 1

@qq110146 do you success in train multiple subject ?

from dreambooth-stable-diffusion.

caniyabanci76 avatar caniyabanci76 commented on July 18, 2024

depends on which dreambooth..... there are many repos and they're not all the same. you post this here and yet you link to huggingface diffusers dreambooth. the Joepenna repo is not diffusers based.

from dreambooth-stable-diffusion.

qq110146 avatar qq110146 commented on July 18, 2024

depends on which dreambooth..... there are many repos and they're not all the same. you post this here and yet you link to huggingface diffusers dreambooth. the Joepenna repo is not diffusers based.

yep. I'm just confused about... Does dreambooth support multi-subjects training? Or are there any successful repos of multi-subjects training?(E.g the Joepenna repo or the others?)

from dreambooth-stable-diffusion.

caniyabanci76 avatar caniyabanci76 commented on July 18, 2024

There was a fork of Joe's than handled multi-concepts but it hasn't been touched in 6 months
https://github.com/kanewallmann/Dreambooth-Stable-Diffusion

ShivamShrirao's Dreambooth (diffusers based) colab handles multi-concepts.
https://github.com/ShivamShrirao/diffusers/examples/dreambooth

from dreambooth-stable-diffusion.

caniyabanci76 avatar caniyabanci76 commented on July 18, 2024

You could take a look at the EveryDream Trainer. it's a bit different but it does mention multiple-concepts in its readme.

https://github.com/victorchall/EveryDream-trainer

from dreambooth-stable-diffusion.

qq110146 avatar qq110146 commented on July 18, 2024

Okay, thank you very much!

from dreambooth-stable-diffusion.

qq110146 avatar qq110146 commented on July 18, 2024

@qq110146 do you success in train multiple subject ?

Not yet. I trained 2 concepts with train_multi_subject_dreambooth.py but failed.

from dreambooth-stable-diffusion.

SlZeroth avatar SlZeroth commented on July 18, 2024

@qq110146 I understand that dreambooth mostly overwrites all weights related to the learning target instance during learning. The example ( train_multi_subject_dreambooth.py is crappy and there is no proof, so I don't know how it got approved.

from dreambooth-stable-diffusion.

ZeyadWaell avatar ZeyadWaell commented on July 18, 2024

any new related to training multi subject's ?

from dreambooth-stable-diffusion.

djbielejeski avatar djbielejeski commented on July 18, 2024

This repo has supported multi subjects for a bit, but it was never documented well.

I've updated the readme with instructions: https://github.com/JoePenna/Dreambooth-Stable-Diffusion#captions

from dreambooth-stable-diffusion.

goodlux avatar goodlux commented on July 18, 2024

I've been having good luck with multi subject using Kohya LoRA, i think it would probably work with training a full Dreambooth model

  1. Putting training images of each subject in a different folder
  2. Balance the folders using the repeats number. For instance, if you have 50 images of Bob, and 100 images of Alice, you want it to train on the Bob images twice as much, so you would have:

2_bob-example
1_alice-example

This will do two repeats on Bob for each epic, for a total of 200 steps.

  1. Use a caption .txt file each training image with a sidecar, for each training image, using the subject name in the prompt, i.e.

bob-example, an image of a man smiling, [other tags go here]

or

alice-example, a woman looking at the camera, [other tags go here]

  1. When using the LoRA/model, specify the model instance name (let's say this is examplepeople.ckpt), for example

examplepeople, bob-example, A man in outerspace <lora: examplepeople_v0.5:76>

This will show bob in outerspace, instead of alice, and looks really good, even without regularization images. I generally do people though. If you want to be more specific (for your dog), you can add categories to the folder name and regularization images. Like this:

2_bob-example man
1_alice-example woman
4_spot-example dog

then in the regularization/ folder:

1_man
1_woman
1_dog

With regularization images. Seems to work!

Sorry if this is too basic, but this works well for me so far.

from dreambooth-stable-diffusion.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.