anvilarth commited on
Commit
1b46970
·
verified ·
1 Parent(s): b155680

Update Garage/models/PowerPaintModel.py

Browse files
Files changed (1) hide show
  1. Garage/models/PowerPaintModel.py +3 -3
Garage/models/PowerPaintModel.py CHANGED
@@ -114,7 +114,7 @@ class PowerPaintModel:
114
  self.pipe.to(device)
115
  self.device = device
116
 
117
- # @spaces.GPU(duration=120)
118
  def __call__(
119
  self,
120
  input_image: Dict[str, Image.Image],
@@ -167,8 +167,8 @@ class PowerPaintModel:
167
  result = self.pipe(
168
  promptA=promptA,
169
  promptB=promptB,
170
- promptU="cat",
171
- # promptU=prompt,
172
  tradoff=fitting_degree,
173
  tradoff_nag=fitting_degree,
174
  image=Image.fromarray(np_inpimg.astype(np.uint8)).convert("RGB").convert("RGB"),
 
114
  self.pipe.to(device)
115
  self.device = device
116
 
117
+ @spaces.GPU(duration=120)
118
  def __call__(
119
  self,
120
  input_image: Dict[str, Image.Image],
 
167
  result = self.pipe(
168
  promptA=promptA,
169
  promptB=promptB,
170
+ # promptU="cat",
171
+ promptU=prompt,
172
  tradoff=fitting_degree,
173
  tradoff_nag=fitting_degree,
174
  image=Image.fromarray(np_inpimg.astype(np.uint8)).convert("RGB").convert("RGB"),