From 4baa28d37633e44bb02d52c15a07dabe68120f68 Mon Sep 17 00:00:00 2001 From: jiejieyun <89055539+jiejieyun@users.noreply.github.com> Date: Wed, 30 Mar 2022 10:28:36 +0800 Subject: [PATCH] Update 13.9 semantic-segmentation-and-dataset.md --- .../13.9 semantic-segmentation-and-dataset.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dive-into-DL-paddlepaddle/docs/13-computer-vision/13.9 semantic-segmentation-and-dataset.md b/Dive-into-DL-paddlepaddle/docs/13-computer-vision/13.9 semantic-segmentation-and-dataset.md index 3dbac5849..07a85421f 100644 --- a/Dive-into-DL-paddlepaddle/docs/13-computer-vision/13.9 semantic-segmentation-and-dataset.md +++ b/Dive-into-DL-paddlepaddle/docs/13-computer-vision/13.9 semantic-segmentation-and-dataset.md @@ -163,7 +163,8 @@ def voc_rand_crop(feature, label, height, width): feature = paddle.vision.transforms.crop(feature, *rect) label = paddle.vision.transforms.crop(label, *rect) return feature, label - +``` +```python imgs = [] for _ in range(n): imgs += voc_rand_crop(train_features[0], train_labels[0], 200, 300)