Downloads · 30 days
9
6% of all-time downloads
bghira/sd35m-sfwbooru
sd35m-sfwbooru is a text-to-image model from bghira. Use it when you need an image from a text prompt. It is set up for diffusers. The card lists the license as other.
This is a full rank finetune derived from stabilityai/stable-diffusion-3.5-medium.
Downloads · 30 days
9
6% of all-time downloads
All-time downloads
163
Public
Parameters
2.5B
30.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors31.1 GB · 77%
From the Hugging Face model README
This is a full rank finetune derived from stabilityai/stable-diffusion-3.5-medium.
The main validation prompt used during training was:
A photo-realistic image of a cat
3.20.030FlowMatchEulerDiscreteScheduler421024x1024Note: The validation settings are not necessarily the same as the training settings.
You can find some example images in the following gallery:
<Gallery />The text encoder was not trained. You may reuse the base model text encoder for inference.
no_changeimport torch
from diffusers import DiffusionPipeline
model_id = 'bghira/sd35m-sfwbooru'
pipeline = DiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.bfloat16) # loading directly in bf16
prompt = "A photo-realistic image of a cat"
negative_prompt = 'blurry, cropped, ugly'
pipeline.to('cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu') # the pipeline is already in its target precision level
model_output = pipeline(
prompt=prompt,
negative_prompt=negative_prompt,
num_inference_steps=30,
generator=torch.Generator(device='cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu').manual_seed(42),
width=1024,
height=1024,
guidance_scale=3.2,
skip_guidance_layers=[7, 8, 9],
).images[0]
model_output.save("output.png", format="PNG")
SimpleTuner generates a safetensors variant of the EMA weights and a pt file.
The safetensors file is intended to be used for inference, and the pt file is for continuing finetuning.
The EMA model may provide a more well-rounded result, but typically will feel undertrained compared to the full model as it is a running decayed average of the model weights.