Instructions to use iiiiDeal/SD2_1_Base_Rank_8_CulText_8k with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use iiiiDeal/SD2_1_Base_Rank_8_CulText_8k with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-2-1-base", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("iiiiDeal/SD2_1_Base_Rank_8_CulText_8k") 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
LoRA text2image fine-tuning - iiiiDeal/SD2_1_Base_Rank_8_CulText_8k
These are LoRA adaption weights for stabilityai/stable-diffusion-2-1-base. The weights were fine-tuned on the None dataset.
Intended uses & limitations
How to use
# TODO: add an example code snippet for running this diffusion pipeline
import torch
from diffusers import StableDiffusionPipeline
model_path = "iiiiDeal/SD2_1_Base_Rank_8_CulText_8k"
prompt = "A high resolution image of a modern security checkpoint in China, featuring bilingual signage, uniformed personnel, and sleek architectural design."
pipe = StableDiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-2-1-base", torch_dtype=torch.float16).to("cuda")
# can probably use a better sampler
image = pipe(prompt, num_inference_steps=50, guidance_scale=7.5).images[0]
image.save("samples/pretrain.png")
pipe.unet.load_attn_procs(model_path)
image = pipe(prompt, num_inference_steps=50, guidance_scale=7.5).images[0]
image.save("samples/finetune.png")
Limitations and bias
[TODO: provide examples of latent issues and potential remediations]
Training details
[TODO: describe the data used to train the model]
- Downloads last month
- 6
Model tree for iiiiDeal/SD2_1_Base_Rank_8_CulText_8k
Base model
stabilityai/stable-diffusion-2-1-base