rogerxavier commited on
Commit
4e0f6d1
1 Parent(s): 53fa228

Update 1removeMask.py

Browse files
Files changed (1) hide show
  1. 1removeMask.py +1 -1
1removeMask.py CHANGED
@@ -101,7 +101,7 @@ if __name__ == '__main__':
101
  if not os.path.exists(new_img_path):
102
  #如果已经处理过那么跳过
103
  # 处理图片并保存
104
- img_inpainted = inpaint(img_path=img_file, mask_path='mask/all_mask.jpg')
105
  save_img(img_content=img_inpainted, new_save_path=new_img_path,old_img_path=img_file)
106
  else:
107
  print(f"Skipping {new_img_path} as it already exists.")
 
101
  if not os.path.exists(new_img_path):
102
  #如果已经处理过那么跳过
103
  # 处理图片并保存
104
+ img_inpainted = inpaint(img_path=img_file, mask_path='mask/0.jpg')#上传的遮罩保存都是0开始
105
  save_img(img_content=img_inpainted, new_save_path=new_img_path,old_img_path=img_file)
106
  else:
107
  print(f"Skipping {new_img_path} as it already exists.")