Diffusers
Safetensors
StableDiffusionUnconditionalPipeline
stable-diffusion
stable-diffusion-diffusers
Instructions to use yurman/uncond_sd2-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use yurman/uncond_sd2-base with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("yurman/uncond_sd2-base", 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
import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("yurman/uncond_sd2-base", dtype=torch.bfloat16, device_map="cuda")
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]Unconditioned stable diffusion finetuning - uncond_sd2-base
This pipeline was finetuned from stabilityai/stable-diffusion-2-base for brain image generation. Below are some example images generated with the finetuned pipeline:
Pipeline usage
You can use the pipeline like so:
from diffusers import StableDiffusionUnconditionalPipeline
import torch
pipeline = StableDiffusionUnconditionalPipeline.from_pretrained("uncond_sd2-base", torch_dtype=torch.float32)
image = pipeline(1).images[0]
image.save("brain_image.png")
Training info
For training info, refer the model card for the parent conditional model: stabilityai/stable-diffusion-2-base.
- Downloads last month
- 1
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support
