ddiddi commited on
Commit
ca5c9f9
1 Parent(s): 9ddd3c5

feat: remove water mark processing fully

Browse files
Files changed (1) hide show
  1. model.py +6 -6
model.py CHANGED
@@ -176,8 +176,8 @@ class Model:
176
  generator=generator,
177
  output_type='pt').images
178
  pil_images = self.to_pil_images(images)
179
- self.pipe.watermarker.apply_watermark(
180
- pil_images, self.pipe.unet.config.sample_size)
181
 
182
  stage1_params = {
183
  'prompt': prompt,
@@ -241,8 +241,8 @@ class Model:
241
  if disable_watermark:
242
  return pil_images[0]
243
 
244
- self.super_res_1_pipe.watermarker.apply_watermark(
245
- pil_images, self.super_res_1_pipe.unet.config.sample_size)
246
  return pil_images[0]
247
 
248
  def run_stage3(
@@ -298,8 +298,8 @@ class Model:
298
  num_inference_steps_2=num_inference_steps_2,
299
  disable_watermark=True)
300
  temp_image = out_image.copy()
301
- self.super_res_1_pipe.watermarker.apply_watermark(
302
- [temp_image], self.super_res_1_pipe.unet.config.sample_size)
303
  yield temp_image
304
  yield self.run_stage3(image=out_image,
305
  prompt=prompt,
 
176
  generator=generator,
177
  output_type='pt').images
178
  pil_images = self.to_pil_images(images)
179
+ # self.pipe.watermarker.apply_watermark(
180
+ # pil_images, self.pipe.unet.config.sample_size)
181
 
182
  stage1_params = {
183
  'prompt': prompt,
 
241
  if disable_watermark:
242
  return pil_images[0]
243
 
244
+ # self.super_res_1_pipe.watermarker.apply_watermark(
245
+ # pil_images, self.super_res_1_pipe.unet.config.sample_size)
246
  return pil_images[0]
247
 
248
  def run_stage3(
 
298
  num_inference_steps_2=num_inference_steps_2,
299
  disable_watermark=True)
300
  temp_image = out_image.copy()
301
+ # self.super_res_1_pipe.watermarker.apply_watermark(
302
+ # [temp_image], self.super_res_1_pipe.unet.config.sample_size)
303
  yield temp_image
304
  yield self.run_stage3(image=out_image,
305
  prompt=prompt,