|
--- |
|
language: en |
|
tags: |
|
- stable-diffusion-xl |
|
- text-to-image |
|
- diffusers |
|
license: creativeml-openrail-m |
|
datasets: |
|
- your-dataset-name |
|
metrics: |
|
- your-metric |
|
--- |
|
|
|
# MaxCushion - SDXL Fine-tuned Model |
|
|
|
This is a fine-tuned Stable Diffusion XL (SDXL) model based on [FLUX.1-dev](https://huggingface.co/black-forest-labs/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 |
|
|
|
- **Base Model:** [FLUX.1-dev](https://huggingface.co/black-forest-labs/FLUX.1-dev) |
|
- **Type:** Stable Diffusion XL (SDXL) |
|
- **Language(s):** English |
|
- **License:** [CreativeML Open RAIL-M](https://huggingface.co/spaces/CompVis/stable-diffusion-license) |
|
|
|
## Usage |
|
|
|
This model can be used with the `diffusers` library. Here's a basic example: |
|
|
|
```python |
|
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") |