gokaygokay commited on
Commit
794cd1b
1 Parent(s): 9e8b7a5

Update img2panoimg/image_to_360panorama_image_pipeline.py

Browse files
img2panoimg/image_to_360panorama_image_pipeline.py CHANGED
@@ -77,7 +77,6 @@ class Image2360PanoramaImagePipeline(DiffusionPipeline):
77
  self.pipe.enable_xformers_memory_efficient_attention()
78
  except Exception as e:
79
  print(e)
80
- self.pipe.enable_model_cpu_offload()
81
 
82
  # init controlnet-sr model
83
  base_model_path = model + '/sr-base'
@@ -96,7 +95,6 @@ class Image2360PanoramaImagePipeline(DiffusionPipeline):
96
  self.pipe_sr.enable_xformers_memory_efficient_attention()
97
  except Exception as e:
98
  print(e)
99
- self.pipe_sr.enable_model_cpu_offload()
100
  device = torch.device("cuda")
101
  model_path = model + '/RealESRGAN_x2plus.pth'
102
  self.upsampler = LazyRealESRGAN(device=device, scale=2)
 
77
  self.pipe.enable_xformers_memory_efficient_attention()
78
  except Exception as e:
79
  print(e)
 
80
 
81
  # init controlnet-sr model
82
  base_model_path = model + '/sr-base'
 
95
  self.pipe_sr.enable_xformers_memory_efficient_attention()
96
  except Exception as e:
97
  print(e)
 
98
  device = torch.device("cuda")
99
  model_path = model + '/RealESRGAN_x2plus.pth'
100
  self.upsampler = LazyRealESRGAN(device=device, scale=2)