Views
No views yet
1prj_path = "MaziyarPanahi/sljm-bag-stable-diffusion-xl-base-1.0"
2
3model = "stabilityai/stable-diffusion-xl-base-1.0"
4pipe = DiffusionPipeline.from_pretrained(
5 model,
6 torch_dtype=torch.float16,
7)
8pipe.to("cuda")
9pipe.load_lora_weights(prj_path, weight_name="pytorch_lora_weights.safetensors")
10
11refiner = StableDiffusionXLImg2ImgPipeline.from_pretrained(
12 "stabilityai/stable-diffusion-xl-refiner-1.0",
13 torch_dtype=torch.float16,
14)
15refiner.to("cuda")