Instructions to use litvan/SDXL_finetuned_for_russian_churches with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use litvan/SDXL_finetuned_for_russian_churches 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-xl-base-1.0", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("litvan/SDXL_finetuned_for_russian_churches") prompt = "Orthodox church in the style of African buildings of the 6th century" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- Draw Things
- DiffusionBee
import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", dtype=torch.bfloat16, device_map="cuda")
pipe.load_lora_weights("litvan/SDXL_finetuned_for_russian_churches")
prompt = "Orthodox church in the style of African buildings of the 6th century"
image = pipe(prompt).images[0]SDXL LoRA DreamBooth - litvan/SDXL_finetuned_for_russian_churches

- Prompt
- Orthodox church in the style of African buildings of the 6th century

- Prompt
- Orthodox church in the style of African buildings of the 6th century

- Prompt
- Orthodox church in the style of African buildings of the 6th century

- Prompt
- Orthodox church in the style of African buildings of the 6th century
Model description
These are litvan/SDXL_finetuned_for_russian_churches LoRA adaption weights for stabilityai/stable-diffusion-xl-base-1.0.
The main purpose of the model: Generate Orthodox churches in different cultural and architectural codes of countries
The weights were trained using DreamBooth.
LoRA for the text encoder was enabled: False.
Special VAE used for training: madebyollin/sdxl-vae-fp16-fix.
Dataset for finetuning: litvan/russian_churches_with_blip_captioning
For training were used: 3 GPU A100(80Gb)
Trigger words
You should use Orthodox church to trigger the image generation.
Download model
You can do this using the following lines of code:
from diffusers import DiffusionPipeline
pipeline = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0").cuda()
pipeline.load_lora_weights("litvan/SDXL_finetuned_for_russian_churches")
For using refiner
refiner = DiffusionPipeline.from_pretrained(
"stabilityai/stable-diffusion-xl-refiner-1.0",
text_encoder_2=pipeline.text_encoder_2,
vae=pipeline.vae,
torch_dtype=torch.float32,
use_safetensors=True,
).cuda()
- Downloads last month
- 7
Model tree for litvan/SDXL_finetuned_for_russian_churches
Base model
stabilityai/stable-diffusion-xl-base-1.0