Manjushri commited on
Commit
3b23b50
1 Parent(s): ed724f7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,10 +7,10 @@ from diffusers import DiffusionPipeline, StableDiffusionLatentUpscalePipeline
7
 
8
  device = 'cuda' if torch.cuda.is_available() else 'cpu'
9
 
10
- pipe = DiffusionPipeline.from_pretrained("circulus/canvers-real-v3.8.1", torch_dtype=torch.float16, safety_checker=None) if device = ("cuda") else pipe = DiffusionPipeline.from_pretrained("circulus/canvers-real-v3.8.1")
11
  pipe = pipe.to(device)
12
  pipe.enable_xformers_memory_efficient_attention()
13
- refiner = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-refiner-1.0", use_safetensors=True, torch_dtype=torch.float16, variant="fp16") if device = ("cuda") else refiner = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-refiner-1.0")
14
  refiner.enable_xformers_memory_efficient_attention()
15
  refiner = refiner.to(device)
16
 
 
7
 
8
  device = 'cuda' if torch.cuda.is_available() else 'cpu'
9
 
10
+ pipe = DiffusionPipeline.from_pretrained("circulus/canvers-real-v3.8.1", torch_dtype=torch.float16, safety_checker=None) if device = ("cuda") else: pipe = DiffusionPipeline.from_pretrained("circulus/canvers-real-v3.8.1")
11
  pipe = pipe.to(device)
12
  pipe.enable_xformers_memory_efficient_attention()
13
+ refiner = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-refiner-1.0", use_safetensors=True, torch_dtype=torch.float16, variant="fp16") if device = ("cuda") else: refiner = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-refiner-1.0")
14
  refiner.enable_xformers_memory_efficient_attention()
15
  refiner = refiner.to(device)
16