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
@@ -69,35 +69,35 @@ To run the demo, you can use public or pre-trained models. You can download the
69
69
70
70
There are two ways to use this demo:
71
71
72
-
1. To use only translation model.
73
-
You can use the following command run demo on CPU using CoCosNet as translation model:
72
+
1. Run with segmentation model in addition to translation model. You should use only models trained on ADE20k dataset. Example: [hrnet-v2-c1-segmentation](../../../models/public/hrnet-v2-c1-segmentation/hrnet-v2-c1-segmentation.md).
73
+
In this case only input and reference images are required without any masks.
74
+
Segmentation masks will be generated via segmentation model.
75
+
76
+
You can use the following command to run demo on CPU using cocosnet and hrnet-v2-c1-segmentation models:
> **NOTE**: For segmentation masks you should use mask (with shape: [height x width]) that specifies class for each pixel. Number of classes is 151 (from ADE20k), where '0' - background class.
85
-
86
-
2. To use the segmentation model in addition to translation. You should use only models trained on ADE20k dataset. Example: [hrnet-v2-c1-segmentation](../../../models/public/hrnet-v2-c1-segmentation/hrnet-v2-c1-segmentation.md).
87
-
In this case user have to set input image and reference image without any masks.
88
-
Segmentation masks will be generated via segmentation model.
89
-
90
-
You can use the following command run demo on CPU using CoCosNet as translation model:
87
+
2. Run with only translation model.
88
+
You can use the following command to run demo on CPU using cocosnet as translation model:
> **NOTE**: For segmentation masks you should use mask (with shape: [height x width]) that specifies class for each pixel. Number of classes is 151 (from ADE20k), where '0' - background class.
100
+
101
101
## Demo Output
102
102
103
103
The results of the demo processing are saved to a folder that is specified by the parameter `output_dir`.
0 commit comments