Staticaliza commited on
Commit
e2d88ba
·
verified ·
1 Parent(s): 4554617

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -38,20 +38,20 @@ footer {
38
  '''
39
 
40
  repo_default = StableDiffusionXLPipeline.from_pretrained("fluently/Fluently-XL-Final", torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False)
41
- #repo_default.load_lora_weights("ehristoforu/dalle-3-xl-v2", adapter_name="base")
42
- #repo_default.set_adapters(["base"], adapter_weights=[0.7])
43
 
44
- repo_pixel = None#StableDiffusionXLPipeline.from_pretrained("fluently/Fluently-XL-Final", torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False)
45
- #repo_pixel.load_lora_weights("artificialguybr/PixelArtRedmond", adapter_name="base")
46
- #repo_pixel.load_lora_weights("nerijs/pixel-art-xl", adapter_name="base2")
47
- #repo_pixel.set_adapters(["base", "base2"], adapter_weights=[1, 1])
48
 
49
  repo_customs = {
50
  "Default": repo_default,
51
- "Realistic": None,#StableDiffusionXLPipeline.from_pretrained("ehristoforu/Visionix-alpha", torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False),
52
- "Anime": None,#StableDiffusionXLPipeline.from_pretrained("cagliostrolab/animagine-xl-3.1", torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False),
53
- "Pixel": None,#repo_pixel,
54
- "Large": None,#StableDiffusion3Pipeline.from_pretrained("stabilityai/stable-diffusion-3-medium-diffusers", torch_dtype=torch.float16, use_safetensors=True),
55
  }
56
 
57
  # Functions
 
38
  '''
39
 
40
  repo_default = StableDiffusionXLPipeline.from_pretrained("fluently/Fluently-XL-Final", torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False)
41
+ repo_default.load_lora_weights("ehristoforu/dalle-3-xl-v2", adapter_name="base")
42
+ repo_default.set_adapters(["base"], adapter_weights=[0.7])
43
 
44
+ repo_pixel = StableDiffusionXLPipeline.from_pretrained("fluently/Fluently-XL-Final", torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False)
45
+ repo_pixel.load_lora_weights("artificialguybr/PixelArtRedmond", adapter_name="base")
46
+ repo_pixel.load_lora_weights("nerijs/pixel-art-xl", adapter_name="base2")
47
+ repo_pixel.set_adapters(["base", "base2"], adapter_weights=[1, 1])
48
 
49
  repo_customs = {
50
  "Default": repo_default,
51
+ "Realistic": StableDiffusionXLPipeline.from_pretrained("ehristoforu/Visionix-alpha", torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False),
52
+ "Anime": StableDiffusionXLPipeline.from_pretrained("cagliostrolab/animagine-xl-3.1", torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False),
53
+ "Pixel": repo_pixel,
54
+ "Large": StableDiffusion3Pipeline.from_pretrained("stabilityai/stable-diffusion-3-medium-diffusers", torch_dtype=torch.float16, use_safetensors=True),
55
  }
56
 
57
  # Functions