You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: demos/python_demos/image_inpainting_demo/README.md
+21-20Lines changed: 21 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,16 +7,16 @@ to fill holes in images.
7
7
This demo can work in 2 modes:
8
8
9
9
* GUI mode: areas for inpainting can be marked interactively using mouse painting
10
-
* Auto mode (use -a option for it): image will be processed automatically using randomly applied mask (-r option) or using specific color-based mask (-mc option to set mask color)
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)
11
11
12
12
Running the application with the `-h` option yields the following usage message:
13
13
14
14
```
15
-
usage: image_inpainting_demo.py [-h] -m MODEL [-i INPUT] [-d DEVICE] [-r]
15
+
usage: image_inpainting_demo.py [-h] -m MODEL [-i INPUT] [-d DEVICE]
16
16
[-p PARTS] [-mbw MAX_BRUSH_WIDTH]
17
-
[-ml MAX_LENGTH] [-mv MAX_VERTEX]
18
-
[-mc MASK_COLOR [MASK_COLOR ...]] [--no_show]
19
-
[-o OUTPUT] [-a]
17
+
[-ml MAX_LENGTH] [-mv MAX_VERTEX] [--no_show]
18
+
[-o OUTPUT] [-ac C C C] [-ar]
19
+
20
20
Options:
21
21
-h, --help Show this help message and exit.
22
22
-m MODEL, --model MODEL
@@ -28,31 +28,32 @@ Options:
28
28
GPU, FPGA, HDDL or MYRIAD is acceptable. The demo will
29
29
look for a suitable plugin for device specified.
30
30
Default value is CPU
31
-
-r, --rnd Optional. Use random mask for inpainting (with
32
-
parameters set by -p, -mbw, -mk and -mv).Skipped in
33
-
GUI mode
34
31
-p PARTS, --parts PARTS
35
-
Optional. Number of parts to draw mask. Skipped in GUI
32
+
Optional. Number of parts to draw mask. Ignored in GUI
Optional. Color to be treated as mask (provide 3 RGB
48
-
components in range of 0...255). Default is 0 0 0.
49
-
Skipped in GUI mode
50
-
--no_show Optional. Don't show output. Cannot be used in GUI mode
43
+
--no_show Optional. Don't show output. Cannot be used in GUI
44
+
mode
51
45
-o OUTPUT, --output OUTPUT
52
46
Optional. Save output to the file with provided
53
-
filename. Skipped in GUI mode
54
-
-a, --auto Optional. Use automatic (non-interactive) mode instead
55
-
of GUI
47
+
filename. Ignored in GUI mode
48
+
-ac C C C, --auto_mask_color C C C
49
+
Optional. Use automatic (non-interactive) mode with
50
+
color mask.Provide color to be treated as mask (3 RGB
51
+
components in range of 0...255). Cannot be used
52
+
together with -ar.
53
+
-ar, --auto_mask_random
54
+
Optional. Use automatic (non-interactive) mode with
55
+
random mask for inpainting (with parameters set by -p,
56
+
-mbw, -mk and -mv). Cannot be used together with -ac.
56
57
```
57
58
58
59
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).
0 commit comments