MountaintopLotus / braintrust

A Dockerized platform for running Stable Diffusion, on AWS (for now)
Apache License 2.0
1 stars 2 forks source link

Dreambooth #35

Open JohnTigue opened 1 year ago

JohnTigue commented 1 year ago

Dreambooth continues to get used in innovative projects. Invoke2.2 UI mentions that Dreambooth will be usable within Invoke. So, Dreambooth is on the ToDo list.

DreamBooth is an AI algorithm that allows you to teach new subjects or even styles to existing Stable Diffusion models very successfully, such as teaching the face of a person.

JohnTigue commented 1 year ago

The Dreambooth paper: DreamBooth: Fine Tuning Text-to-Image Diffusion Models for Subject-Driven Generation, 202208

JohnTigue commented 1 year ago

Reddit: Creating a specific character via Dreambooth

JohnTigue commented 1 year ago

Reddit:

I cant say since dreambooth requires +12GB gpu, I have zero knowledge of it at the moment

JohnTigue commented 1 year ago

YouTube (P11m): Dreambooth & SD on Colab

JohnTigue commented 1 year ago

This seems to be popular (e.g., 3.5k GitHub stars, "is a phenomenal (accessible) start."): https://github.com/TheLastBen/fast-stable-diffusion

JohnTigue commented 1 year ago

This is essentially a 19 minute non-technical intro to DreamBooth (with cheezy embedded commercials): Is This The Death of VFX?

JohnTigue commented 1 year ago

DreamBooth is often compared to textual inversion (#2). The former is considered more powerul.

JohnTigue commented 1 year ago

Zero To Hero Stable Diffusion DreamBooth Tutorial By Using Automatic1111 Web UI - Ultra Detailed (YouTube, 1h43m)

JohnTigue commented 1 year ago

DreamBooth Got Buffed - 22 January Update - Much Better Success Train Stable Diffusion Models Web UI

JohnTigue commented 1 year ago

Seems the main branch of DreamBooth A1111 extension has been broken for weeks. Here's how to work around that, DREAMBOOTH: 10 MINS TRAINING In Stable Diffusion! AMAZING RESULTS!.

JohnTigue commented 1 year ago

Here's runpod's Dockerfile for fast-stable-diffusion. That might be the easiest way to get DreamBooth running inside Hynowerk. [TODO:JFT] not sure about the license.

JohnTigue commented 1 year ago

Looks like DreamBooth's problem may simply be that diffuers is not installed?

Exception importing api
Traceback (most recent call last):
  File "/stable-diffusion-webui/extensions/sd_dreambooth_extension/scripts/api.py", line 27, in <module>
    from dreambooth.dataclasses.db_config import from_file, DreamboothConfig
  File "/stable-diffusion-webui/extensions/sd_dreambooth_extension/dreambooth/dataclasses/db_config.py", line 10, in <module>
    from dreambooth.utils.image_utils import get_scheduler_names  # noqa
  File "/stable-diffusion-webui/extensions/sd_dreambooth_extension/dreambooth/utils/image_utils.py", line 11, in <module>
    from diffusers.schedulers import KarrasDiffusionSchedulers
ModuleNotFoundError: No module named 'diffusers'
Error loading script: main.py
Traceback (most recent call last):
  File "/stable-diffusion-webui/modules/scripts.py", line 248, in load_scripts
    script_module = script_loading.load_module(scriptfile.path)
  File "/stable-diffusion-webui/modules/script_loading.py", line 11, in load_module
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/stable-diffusion-webui/extensions/sd_dreambooth_extension/scripts/main.py", line 7, in <module>
    from dreambooth.dataclasses.db_config import (
  File "/stable-diffusion-webui/extensions/sd_dreambooth_extension/dreambooth/dataclasses/db_config.py", line 10, in <module>
    from dreambooth.utils.image_utils import get_scheduler_names  # noqa
  File "/stable-diffusion-webui/extensions/sd_dreambooth_extension/dreambooth/utils/image_utils.py", line 11, in <module>
    from diffusers.schedulers import KarrasDiffusionSchedulers
ModuleNotFoundError: No module named 'diffusers'
JohnTigue commented 1 year ago

A (currently open) InvokeAI GitHub Issue: Dreambooth support (#995)

JohnTigue commented 1 year ago

The Discord for the Automatic1111 DreamBooth extension: https://discord.gg/vEQtE2Rcxq

JohnTigue commented 1 year ago

Might as well go with the recently released update to the DreamBooth A1111 extension: How To Install New DreamBooth & Torch 2 On Automatic1111 Web UI PC For Epic Performance Gains Guide.

JohnTigue commented 1 year ago

I guess we'll be going for PyTorch v2 as well (multiple projects seem to be in the process of deploying it):

In this video, I will also explain how you can install Torch version 2. Torch version 2 is supposed to increase image speed generation and training speed significantly

JohnTigue commented 1 year ago

This Dr. Furkan Gözükara, a PhD Computer Engineer, is putting out great content on his YouTube channel, SECourses. In the context of DreamBooth, we have:

RunPod uses Docker containers…

JohnTigue commented 1 year ago

Here we go! It looks like diffusers versioning is a common problem with the A1111 Dreambooth extension, straight from the horse's mouth: Dreambooth Extension for Stable-Diffusion-WebUI: Installation.