Skip to content

Commit 326e6db

Browse files
committed
-am renamed to -ac
1 parent a2c97fb commit 326e6db

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

demos/python_demos/image_inpainting_demo/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ to fill holes in images.
77
This demo can work in 2 modes:
88

99
* GUI mode: areas for inpainting can be marked interactively using mouse painting
10-
* Auto mode (use -am or -ar option for it): image will be processed automatically using randomly applied mask (-ar option) or using specific color-based mask (-am option)
10+
* Auto mode (use -ac or -ar option for it): image will be processed automatically using randomly applied mask (-ar option) or using specific color-based mask (-ac option)
1111

1212
Running the application with the `-h` option yields the following usage message:
1313

1414
```
1515
usage: image_inpainting_demo.py [-h] -m MODEL [-i INPUT] [-d DEVICE]
1616
[-p PARTS] [-mbw MAX_BRUSH_WIDTH]
1717
[-ml MAX_LENGTH] [-mv MAX_VERTEX] [--no_show]
18-
[-o OUTPUT] [-am C C C] [-ar]
18+
[-o OUTPUT] [-ac C C C] [-ar]
1919
2020
Options:
2121
-h, --help Show this help message and exit.
@@ -45,15 +45,15 @@ Options:
4545
-o OUTPUT, --output OUTPUT
4646
Optional. Save output to the file with provided
4747
filename. Ignored in GUI mode
48-
-am C C C, --auto_mask_color C C C
48+
-ac C C C, --auto_mask_color C C C
4949
Optional. Use automatic (non-interactive) mode with
5050
color mask.Provide color to be treated as mask (3 RGB
5151
components in range of 0...255). Cannot be used
5252
together with -ar.
5353
-ar, --auto_mask_random
5454
Optional. Use automatic (non-interactive) mode with
5555
random mask for inpainting (with parameters set by -p,
56-
-mbw, -mk and -mv). Cannot be used together with -am.
56+
-mbw, -mk and -mv). Cannot be used together with -ac.
5757
```
5858

5959
To run the demo, you can use public or pretrained models. You can download the pretrained models with the OpenVINO™ [Model Downloader](../../../tools/downloader/README.md).

demos/python_demos/image_inpainting_demo/image_inpainting_demo.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ def build_arg_parser():
4545
args.add_argument("--no_show", help="Optional. Don't show output. Cannot be used in GUI mode", action='store_true')
4646
args.add_argument("-o", "--output", help="Optional. Save output to the file with provided filename."
4747
" Ignored in GUI mode", default="", type=str)
48-
args.add_argument("-am", "--auto_mask_color", help="Optional. Use automatic (non-interactive) mode with color mask."
48+
args.add_argument("-ac", "--auto_mask_color", help="Optional. Use automatic (non-interactive) mode with color mask."
4949
"Provide color to be treated as mask (3 RGB components in range of 0...255). "
5050
"Cannot be used together with -ar.",
5151
metavar='C', default=None, type=int, nargs=3)
5252
args.add_argument("-ar", "--auto_mask_random",
5353
help="Optional. Use automatic (non-interactive) mode with random mask for inpainting"
54-
" (with parameters set by -p, -mbw, -mk and -mv). Cannot be used together with -am.",
54+
" (with parameters set by -p, -mbw, -mk and -mv). Cannot be used together with -ac.",
5555
action='store_true')
5656

5757
return parser
@@ -118,7 +118,7 @@ def main():
118118
return -1
119119

120120
if args.auto_mask_color and args.auto_mask_random:
121-
print("Error: -ar and -am options cannot be used together...")
121+
print("Error: -ar and -ac options cannot be used together...")
122122
return -1
123123

124124
if args.auto_mask_color or args.auto_mask_random:

0 commit comments

Comments
 (0)