aifeifei798 commited on
Commit
fb0ed96
·
verified ·
1 Parent(s): c1f0abc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -11,17 +11,17 @@ def feifeimodload():
11
  dtype = torch.bfloat16
12
  device = "cuda" if torch.cuda.is_available() else "cpu"
13
 
14
- #pipe = DiffusionPipeline.from_pretrained(
15
- # "aifeifei798/DarkIdol-flux-v1.1", torch_dtype=dtype
16
- #).to(device)
17
-
18
  pipe = DiffusionPipeline.from_pretrained(
19
- "city96/Flux.1-Heavy-17B", torch_dtype=dtype
20
  ).to(device)
 
 
 
 
21
 
22
  pipe.vae.enable_slicing()
23
  pipe.vae.enable_tiling()
24
- pipe.unload_lora_weights()
25
  torch.cuda.empty_cache()
26
  return pipe
27
 
 
11
  dtype = torch.bfloat16
12
  device = "cuda" if torch.cuda.is_available() else "cpu"
13
 
 
 
 
 
14
  pipe = DiffusionPipeline.from_pretrained(
15
+ "aifeifei798/DarkIdol-flux-v1.1", torch_dtype=dtype
16
  ).to(device)
17
+
18
+ #pipe = DiffusionPipeline.from_pretrained(
19
+ # "city96/Flux.1-Heavy-17B", torch_dtype=dtype
20
+ #).to(device)
21
 
22
  pipe.vae.enable_slicing()
23
  pipe.vae.enable_tiling()
24
+ #pipe.unload_lora_weights()
25
  torch.cuda.empty_cache()
26
  return pipe
27