Spaces:
Build error
Build error
Commit
·
7a1b0a5
1
Parent(s):
472ac56
Update app.py
Browse files
app.py
CHANGED
@@ -35,6 +35,9 @@ if torch.cuda.is_available():
|
|
35 |
use_safetensors=True,
|
36 |
variant='fp16')
|
37 |
|
|
|
|
|
|
|
38 |
if ENABLE_CPU_OFFLOAD:
|
39 |
pipe.enable_model_cpu_offload()
|
40 |
refiner.enable_model_cpu_offload()
|
@@ -46,8 +49,7 @@ if torch.cuda.is_available():
|
|
46 |
pipe.unet = torch.compile(pipe.unet,
|
47 |
mode='reduce-overhead',
|
48 |
fullgraph=True)
|
49 |
-
|
50 |
-
pipeline.unet.load_attn_procs('artificialguybr/360Redmond')
|
51 |
else:
|
52 |
pipe = None
|
53 |
refiner = None
|
|
|
35 |
use_safetensors=True,
|
36 |
variant='fp16')
|
37 |
|
38 |
+
# LoRA for 360° images
|
39 |
+
pipe.unet.load_attn_procs('artificialguybr/360Redmond')
|
40 |
+
|
41 |
if ENABLE_CPU_OFFLOAD:
|
42 |
pipe.enable_model_cpu_offload()
|
43 |
refiner.enable_model_cpu_offload()
|
|
|
49 |
pipe.unet = torch.compile(pipe.unet,
|
50 |
mode='reduce-overhead',
|
51 |
fullgraph=True)
|
52 |
+
|
|
|
53 |
else:
|
54 |
pipe = None
|
55 |
refiner = None
|