Skip to content

Commit 0efe033

Browse files
committed
Check docstrings
1 parent cf08650 commit 0efe033

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

pytorch_toolbelt/utils/catalyst/visualization.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def draw_binary_segmentation_predictions(
199199
image_format: Union[str, Callable] = "rgb",
200200
) -> List[np.ndarray]:
201201
"""
202-
Draws visualization of model's prediction for binary segmentation problem.
202+
Render visualization of model's prediction for binary segmentation problem.
203203
This function draws a color-coded overlay on top of the image, with color codes meaning:
204204
- green: True positives
205205
- red: False-negatives
@@ -279,7 +279,7 @@ def draw_semantic_segmentation_predictions(
279279
image_format: Union[str, Callable] = "rgb",
280280
) -> List[np.ndarray]:
281281
"""
282-
Draws visualization of model's prediction for binary segmentation problem.
282+
Render visualization of model's prediction for binary segmentation problem.
283283
This function draws a color-coded overlay on top of the image, with color codes meaning:
284284
- green: True positives
285285
- red: False-negatives
@@ -301,7 +301,6 @@ def draw_semantic_segmentation_predictions(
301301
Can be string ("gray", "rgb", "brg") or function `convert(np.ndarray)->nd.ndarray`.
302302
:return: List of images
303303
"""
304-
305304
assert mode in {"overlay", "side-by-side"}
306305

307306
images = []
@@ -367,7 +366,7 @@ def draw_multilabel_segmentation_predictions(
367366
image_format: Union[str, Callable] = "rgb",
368367
) -> List[np.ndarray]:
369368
"""
370-
Draws visualization of model's prediction for binary segmentation problem.
369+
Render visualization of model's prediction for binary segmentation problem.
371370
This function draws a color-coded overlay on top of the image, with color codes meaning:
372371
- green: True positives
373372
- red: False-negatives
@@ -389,7 +388,6 @@ def draw_multilabel_segmentation_predictions(
389388
Can be string ("gray", "rgb", "brg") or function `convert(np.ndarray)->nd.ndarray`.
390389
:return: List of images
391390
"""
392-
393391
assert mode in {"overlay", "side-by-side"}
394392

395393
images = []

0 commit comments

Comments
 (0)