Entrenar mi propio #lora no funciono muy bien :( #dreambooth
corre en la terminal, pero no tiene efecto dentro de #krita
Entrenar mi propio #lora no funciono muy bien :( #dreambooth
corre en la terminal, pero no tiene efecto dentro de #krita
Are there any guides on using #Dreambooth with #SDXL in #Automatic1111?
My google-fu is coming up short.
@stablehorde
Do you know anything about #DreamBooth free access?
Dear Mastodon, what are your favorite #DreamBooth prompts?
I watched some youtube. Tried some, but I feel everything I am trying is wildly inconsistent. I get one I like for every 16 or so images, maybe less.
(For context, all of these are generative ai, created from a training model I created in DreamBooth, inside Automatic1111. I'm finding it hard to re-create the aspects I even like about some of my favorites.)
Tried to train AI to make a few funny photos of my kiddo. The results are kind of funny but... NO
Another collaboration with visual artist Lili Fiallo. Using #dreambooth we fine tuned #stablediffusion to incorporate Lili's toy art style. incredibly simple using diffusers and gradio libraries.
https://instagram.com/fiallolili/
https://3e2bb3f1180757bdee.gradio.live
Ever wondered what it looks like to create high quality printable works of art with Stable Diffusion?
I just published my latest blog post about how I used Stable Diffusion and Dreambooth to create a "painted" portrait of my dog Queso
Making faces: How to train an AI on your face to create silly portraits - Enlarge / Ever want to be a superhero? We'll show you how. (credit: Sha... - https://arstechnica.com/?p=1924616 #stablediffusion #dreambooth #features #photos #tech #ai
Ars Technica: Making faces: How to train an AI on your face to create silly portraits https://arstechnica.com/?p=1924616 #Tech #arstechnica #IT #Technology #StableDiffusion #Dreambooth #Features #photos #Tech #AI
#LoRA :Low-Rank Adaptation of Large Language Models
昨天速学LoRA今天就要给友友们讲了!紧张!希望没讲错!顺便把拖了很久的 #DreamBooth 一并讲了。
要讲LoRA就要先讲模型finetune。模型的finetune指的是什么呢?其实就是当你有一个现成的,很厉害的大模型(pre-trained model),你想要让它学一些新知识,或者完成一些更面向具体应用的子任务,或者只是为了适配你的数据分布时,就需要拿你的小数据去对模型进行重新训练。这个训练不能训太久,否则模型就会过拟合到你的小样本数据上。
pre-train + finetune 是机器学习非常常见的组合,在应用上有很大价值。但是最常见的一个问题就是“遗忘”。模型会在finetune过程中不断忘记之前已经记住的内容。
常见的解决方案中,一个是replay,就是也把原始知识过一遍;第二个是正则化,通过正则项控制模型参数和原始参数尽量一致,不要变太多;还有一个是Parameter isolation(参数孤立化),这个是通过独立出一个模块来做finetune,原有的模型不再更新权重。
参数孤立化是最有效的一种方式,具体有好几种实现方式,例如Adaptor(P1)就是在原模型中增加一个子模块,固定原模型,只训练子模块。是不是听起来很熟悉?是的,ControlNet就是一种类似Adaptor的方法,同理还有T2I-Adapter,也是通过增加子模块来引入新的条件输入控制。
LoRA则是另一种参数孤立化策略。如P2,它利用低秩矩阵来替代原来全量参数进行训练,从而提升finetune的效率。
我们可以拿来和DreamBooth对比一下。P3是个很清晰的对比图。
对于DreamBooth来说,它是直接更新整个大模型的权重来让模型学习新概念的。虽然可以通过正则项避免遗忘,但是finetune后的模型依然非常大(和原模型一样大)。
而使用LoRA后,LoRA影响的只是其中一小部分(通过低秩矩阵叠加到大模型网络上)。所以finetune起来更快,更不吃资源,而且得到的finetune模型非常小,使用起来方便很多。
由于LoRA在结构上是独立于大模型的,所以它甚至有一个额外的好处是替换大模型可以得到不同的令人惊喜的结果。而且也非常方便进行模型融合。
在使用上来说,LoRA很像是模型的“插件”,你可以在基础模型上叠加你想要的效果,或者把各种你想要的效果加权组合叠在一起,可以产生很多令人惊喜的结果。
当然LoRA由于是finetune模型,所以画风会趋于单一,是好是坏见仁见智,在需要固定画风orID的时候能发挥令人惊喜的用处。
After spending the last few weeks exploring how #finetuning #stablediffuson works in #dreambooth at https://replicate.com, I am excited to experiment with fine-tuning an LLM using #flan T5.
I found this walkthrough useful to get started: https://www.philschmid.de/fine-tune-flan-t5
Bildgeneration mit #StableDiffusion und #Dreambooth ist unterdessen scary realistisch
Released datasets of regularization & class instance images for prior preservation loss training: Landscape, space, creature, horse, architecture, and more!
Занимаюсь созданием искусственного интеллекта....
#artofartificial #neuroart #mastoart #stablediffusion #dreambooth
Обучил Stable Diffusion 1.5 на коте Maxwell из видео "Half Life 2, но у меня есть кот"
https://huggingface.co/kabachuha/maxwell-the-cat-diffusion?text=maxwell+the+cat