Instructions to use naclbit/trinart_stable_diffusion_v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use naclbit/trinart_stable_diffusion_v2 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("naclbit/trinart_stable_diffusion_v2", dtype=torch.bfloat16, device_map="cuda") 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
Commit History
-
Add `clip_sample=False` to scheduler to make model compatible with DDIM.
Hey naclbit 👋, Your model repository seems to contain a stable diffusion checkpoint. We have noticed that your scheduler config currently does not correctly work with the [DDIMScheduler](https://huggingface.co/docs/diffusers/main/en/api/schedulers#diffusers.DDIMScheduler) because `clip_sample` is not set to False and will therefore [incorrectly default to True](https://github.com/huggingface/diffusers/blob/3ce6380d3a2ec5c3e3f4f48889d380d657b151bc/src/diffusers/schedulers/scheduling_ddim.py#L127). The official stable diffusion checkpoints have `clip_sample=False` so that the scheduler config works will **all** schedulers, see: https://huggingface.co/stabilityai/stable-diffusion-2-1-base/blob/main/scheduler/scheduler_config.json#L7. We strongly recommend that you merge this PR to make sure your model works correctly with DDIM. Diffusingly, Patrick.27b81cc
-
Update README.md
1e47265
-
Update README.md
fe095b8
-
Add DIffusers weights (#9)
- Add Diffusers weights for trinart2_step60000.ckpt (3ac53b52933af1182c1fb29a61802042dab71cc0)15f8aed
-
Update README.md
a2cc7d8
-
tag fix
8c916a7 -
Update license (#8)
- Update license (96f50e5414188a6bd4afc5bb54c05d7ff0db801b) Co-authored-by: Carlos Muñoz Ferrandis <CarlosMF@users.noreply.huggingface.co>2ed4d59
-
add gradio web ui in colab notebook (#5)
- add gradio web ui in colab notebook (5cbd307eb6ab2a583a679864e2c6dd35a8773698) Co-authored-by: Ahsen Khaliq <akhaliq@users.noreply.huggingface.co>e24bdf9
-
Update README.md
cleaning up broken links0e4259c -
Change README to show how to use it with diffusers (#4)
- Change README to show how to use it with diffusers (0628f4b96d2ae4dc2f55c3aa541f7db6675a5501) Co-authored-by: Patrick von Platen <patrickvonplaten@users.noreply.huggingface.co>af81239
-
Update README.md
094482a
-
Added training info
af3bbd5 -
Update README.md
9c1a7cc
-
Update README.md
d2896e1
-
Update README.md
b853beb -
Upload trinart2_step115000.ckpt
ac4ab32 -
Update README.md
6b38628 -
Update README.md
e2eba97 -
Update README.md
f17ae6d -
Update README.md
df7bd2f -
Update README.md
c6821af -
Upload trinart2_step95000.ckpt
18551bd -
Update README.md
73c2498
-
Upload trinart2_step60000.ckpt
9ea33c8 -
Update README.md
f1a42bb -
Update README.md
161ae68 -
initial commit
4d0c7c4