Maradonainedito commited on
Commit
157c0ad
·
verified ·
1 Parent(s): acff11d

Update run_diffueraser.py

Browse files

Hello Friends:

I wanted to propose a change to this line: ('--mask_dilation_iter', type=int, default=8, help='Adjust it to change the degree of mask expansion')

from default 8 to 2 (if possible, change it to 2)

because the quality of object or logo removal is extremely better.

I've tested it on other servers, even with objects on top of fast-moving videos, and the result is excellent.

Option 8 (DEFAULT) is fine when the objects to be removed are in a corner of the video, but when they are OVER the video.

Option 8 (DEFAULT) when the removal is complete, the video behind the object is deformed.

It deforms the scene behind the removed object.

If the video is moving fast, it's even worse, since the final result is deformed and looks bad.

Also, to save resources, you could change the default value of 960 in this line: ('--max_img_size', type=int, default=960, help='The maximum length of output width and height')

to 720, as this is sufficient to obtain a very good final result.

SUMMARY: Perhaps, although I don't know how DIFFUERASER works in extreme detail, more resources would be spent by improving object removal from 8 to 2, but resources would be gained by lowering the final video from 960 to 720, or even to 640.

THANK YOU VERY MUCH

Files changed (1) hide show
  1. run_diffueraser.py +1 -1
run_diffueraser.py CHANGED
@@ -12,7 +12,7 @@ def main():
12
  parser.add_argument('--input_video', type=str, default="examples/example3/video.mp4", help='Path to the input video')
13
  parser.add_argument('--input_mask', type=str, default="examples/example3/mask.mp4" , help='Path to the input mask')
14
  parser.add_argument('--video_length', type=int, default=10, help='The maximum length of output video')
15
- parser.add_argument('--mask_dilation_iter', type=int, default=8, help='Adjust it to change the degree of mask expansion')
16
  parser.add_argument('--max_img_size', type=int, default=960, help='The maximum length of output width and height')
17
  parser.add_argument('--save_path', type=str, default="results" , help='Path to the output')
18
  parser.add_argument('--ref_stride', type=int, default=10, help='Propainter params')
 
12
  parser.add_argument('--input_video', type=str, default="examples/example3/video.mp4", help='Path to the input video')
13
  parser.add_argument('--input_mask', type=str, default="examples/example3/mask.mp4" , help='Path to the input mask')
14
  parser.add_argument('--video_length', type=int, default=10, help='The maximum length of output video')
15
+ parser.add_argument('--mask_dilation_iter', type=int, default=2, help='Adjust it to change the degree of mask expansion')
16
  parser.add_argument('--max_img_size', type=int, default=960, help='The maximum length of output width and height')
17
  parser.add_argument('--save_path', type=str, default="results" , help='Path to the output')
18
  parser.add_argument('--ref_stride', type=int, default=10, help='Propainter params')