Text-to-Image
Diffusers
TensorBoard
stable-diffusion
stable-diffusion-diffusers
diffusers-training
lora
Instructions to use lamble-lambe/atelie with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use lamble-lambe/atelie with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("fill-in-base-model", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("lamble-lambe/atelie") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Atualização do model card
Browse files
README.md
CHANGED
|
@@ -9,3 +9,39 @@ tags:
|
|
| 9 |
- lora
|
| 10 |
library_name: diffusers
|
| 11 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
- lora
|
| 10 |
library_name: diffusers
|
| 11 |
---
|
| 12 |
+
|
| 13 |
+
# Ateliê Generativo — Estilo Lambe-Lambe
|
| 14 |
+
|
| 15 |
+
O modelo foi treinado sobre a base do **Stable Diffusion v1.5** no estilo lambe-lambe / retrato vintage, por meio de fine-tuning LoRA (Low-Rank Adaptation), integrado a um pipeline multimodal completo (texto → imagem → áudio).
|
| 16 |
+
|
| 17 |
+
## 🌟 Informações Gerais
|
| 18 |
+
- **Disciplina:** Inteligência Artificial Generativa e Modelos Multimodais — UniCEUB
|
| 19 |
+
- **Professor:** Prof. Romes Heriberto
|
| 20 |
+
- **Desenvolvido por:** Diego Nunes de Morais, Eduardo Deodoro de Moraes Florindo, Higo Soares do Lago, Lucio Flavio Vilar de Azevedo, Paulo Victor Torres Martins
|
| 21 |
+
- **Dataset:** Imagens coletadas de acervos com proveniência verificável (Wikimedia Commons, The Met, Flickr), sob licenças de domínio público, CC0, CC-BY ou CC-BY-SA.
|
| 22 |
+
|
| 23 |
+
## Hiperparâmetros
|
| 24 |
+
- **rank:** 4
|
| 25 |
+
- **learning_rate:** 5e-5
|
| 26 |
+
- **max_train_steps:** 1000
|
| 27 |
+
- **lr_warmup_steps:** 100
|
| 28 |
+
- **lr_scheduler:** cosine
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
## 🚀 Como Usar
|
| 32 |
+
|
| 33 |
+
```python
|
| 34 |
+
from diffusers import StableDiffusionPipeline
|
| 35 |
+
import torch
|
| 36 |
+
|
| 37 |
+
pipe = StableDiffusionPipeline.from_pretrained(
|
| 38 |
+
"stable-diffusion-v1-5/stable-diffusion-v1-5", torch_dtype=torch.float16
|
| 39 |
+
).to("cuda")
|
| 40 |
+
# revision fixa uma versão específica (ver "Versionamento" abaixo); v1.4.0 = produção
|
| 41 |
+
pipe.load_lora_weights("lamble-lambe/atelie", revision="v1.4.0")
|
| 42 |
+
|
| 43 |
+
img = pipe(
|
| 44 |
+
"estilo_lambelambe, a vintage portrait of an elderly man with a hat, detailed face, black and white",
|
| 45 |
+
cross_attention_kwargs={"scale": 0.7},
|
| 46 |
+
).images[0]
|
| 47 |
+
img.save("saida.png")
|