How to use from the
Use from the
Diffusers library
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline

# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("colt12/maxcushion", dtype=torch.bfloat16, device_map="cuda")

prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]

MaxCushion - SDXL Fine-tuned Model

This is a fine-tuned Stable Diffusion XL (SDXL) model based on FLUX.1-dev. It's designed to generate high-quality images with a focus on [specific theme or style your model specializes in].

Model Details

Usage

This model can be used with the diffusers library. Here's a basic example:

from diffusers import StableDiffusionXLPipeline
import torch

model_id = "colt12/maxcushion"
pipe = StableDiffusionXLPipeline.from_pretrained(
    model_id, torch_dtype=torch.float16, use_safetensors=True, variant="fp16"
)
pipe = pipe.to("cuda")

prompt = "Your prompt here"
image = pipe(prompt).images[0]
image.save("generated_image.png")
Downloads last month
74
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support