Downloads · 30 days
25
29% of all-time downloads
svjack/Genshin-Impact-LandScape-lora-sd-xl-rk4
Genshin-Impact-LandScape-lora-sd-xl-rk4 is a machine learning model from svjack. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for diffusers.
Downloads · 30 days
25
29% of all-time downloads
All-time downloads
87
Public
Repo size
1.3 GB
Likes
0
Public
Click a slice to open those files.
.bin900 MB · 67%
From the Hugging Face model README
pip install git+https://github.com/huggingface/diffusers.git peft
import torch
from diffusers import (
StableDiffusionXLPipeline,
AutoencoderKL,
)
vae = AutoencoderKL.from_pretrained(
"madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16, use_safetensors=True
)
model_path = "stabilityai/stable-diffusion-xl-base-1.0"
pipe = StableDiffusionXLPipeline.from_pretrained(
model_path, torch_dtype=torch.float16, vae=vae
)
pipe.to("cuda")
pipe.load_lora_weights("svjack/Genshin-Impact-LandScape-lora-sd-xl-rk4")
prompt = "European, green coniferous tree, yellow coniferous tree, rock, creek, sunny day, pastel tones, 3D"
image = pipe(prompt=prompt,
num_inference_steps=50, guidance_scale=5.0,
cross_attention_kwargs={"scale": 0.7}
).images[0]
image

prompt = "European, green coniferous tree, yellow coniferous tree, rock, creek, sunny day, pastel tones, 3D"
image = pipe(prompt=prompt,
negative_prompt = "blurred, uneven, messy, foggy",
num_inference_steps=50, guidance_scale=5.0,
cross_attention_kwargs={"scale": 0.7}
).images[0]
image

prompt = "Chinese, yellow deciduous wood, orange deciduous wood, rock, sunny day, pastel tones, 3D"
image = pipe(prompt=prompt,
num_inference_steps=50, guidance_scale=5.0,
cross_attention_kwargs={"scale": 0.7}
).images[0]
image

prompt = "Chinese, yellow deciduous wood, orange deciduous wood, rock, sunny day, bright, 3D"
image = pipe(prompt=prompt,
num_inference_steps=50, guidance_scale=5.0,
cross_attention_kwargs={"scale": 0.7}
).images[0]
image
