jingyangcarl commited on
Commit
e51b78e
·
1 Parent(s): 8918c2e

debug zerogpu

Browse files
Files changed (1) hide show
  1. model.py +3 -3
model.py CHANGED
@@ -108,8 +108,8 @@ class Model:
108
  def get_prompt(self, prompt: str, additional_prompt: str) -> str:
109
  return additional_prompt if not prompt else f"{prompt}, {additional_prompt}"
110
 
111
- # @spaces.GPU #[uncomment to use ZeroGPU]
112
- @torch.autocast("cuda")
113
  def run_pipe(
114
  self,
115
  prompt: str,
@@ -131,7 +131,7 @@ class Model:
131
  image=control_image,
132
  ).images
133
 
134
- @spaces.GPU #[uncomment to use ZeroGPU]
135
  @torch.inference_mode()
136
  def process_canny(
137
  self,
 
108
  def get_prompt(self, prompt: str, additional_prompt: str) -> str:
109
  return additional_prompt if not prompt else f"{prompt}, {additional_prompt}"
110
 
111
+ @spaces.GPU #[uncomment to use ZeroGPU]
112
+ # @torch.autocast("cuda")
113
  def run_pipe(
114
  self,
115
  prompt: str,
 
131
  image=control_image,
132
  ).images
133
 
134
+ # @spaces.GPU #[uncomment to use ZeroGPU]
135
  @torch.inference_mode()
136
  def process_canny(
137
  self,