Spaces:
Running
on
Zero
Running
on
Zero
gokaygokay
commited on
Commit
•
9e8b7a5
1
Parent(s):
71126af
Update txt2panoimg/text_to_360panorama_image_pipeline.py
Browse files
txt2panoimg/text_to_360panorama_image_pipeline.py
CHANGED
@@ -74,7 +74,6 @@ class Text2360PanoramaImagePipeline(DiffusionPipeline):
|
|
74 |
self.pipe.enable_xformers_memory_efficient_attention()
|
75 |
except Exception as e:
|
76 |
print(e)
|
77 |
-
self.pipe.enable_model_cpu_offload()
|
78 |
|
79 |
# init controlnet-sr model
|
80 |
base_model_path = model + '/sr-base'
|
@@ -93,7 +92,6 @@ class Text2360PanoramaImagePipeline(DiffusionPipeline):
|
|
93 |
self.pipe_sr.enable_xformers_memory_efficient_attention()
|
94 |
except Exception as e:
|
95 |
print(e)
|
96 |
-
self.pipe_sr.enable_model_cpu_offload()
|
97 |
device = torch.device("cuda")
|
98 |
model_path = model + '/RealESRGAN_x2plus.pth'
|
99 |
self.upsampler = LazyRealESRGAN(device=device, scale=2)
|
|
|
74 |
self.pipe.enable_xformers_memory_efficient_attention()
|
75 |
except Exception as e:
|
76 |
print(e)
|
|
|
77 |
|
78 |
# init controlnet-sr model
|
79 |
base_model_path = model + '/sr-base'
|
|
|
92 |
self.pipe_sr.enable_xformers_memory_efficient_attention()
|
93 |
except Exception as e:
|
94 |
print(e)
|
|
|
95 |
device = torch.device("cuda")
|
96 |
model_path = model + '/RealESRGAN_x2plus.pth'
|
97 |
self.upsampler = LazyRealESRGAN(device=device, scale=2)
|