From 3b731edbd3110c9f204d2521cde1ed4dbd3cd9d0 Mon Sep 17 00:00:00 2001 From: xiexinch Date: Thu, 1 Dec 2022 13:58:17 +0800 Subject: [PATCH] update copyright --- mmseg/datasets/transforms/transforms.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mmseg/datasets/transforms/transforms.py b/mmseg/datasets/transforms/transforms.py index 267a24904..772eddb4a 100644 --- a/mmseg/datasets/transforms/transforms.py +++ b/mmseg/datasets/transforms/transforms.py @@ -1232,7 +1232,9 @@ class GenerateEdge(BaseTransform): class ResizeShortestEdge(BaseTransform): """Resize the image and mask while keeping the aspect ratio unchanged. - Modified from https://github.com/facebookresearch/detectron2/blob/main/detectron2/data/transforms/augmentation_impl.py#L130 (Apache-2.0 License) # noqa:E501 + Modified from https://github.com/facebookresearch/detectron2/blob/main/detectron2/data/transforms/augmentation_impl.py#L130 # noqa:E501 + Copyright (c) Facebook, Inc. and its affiliates. + Licensed under the Apache-2.0 License This transform attempts to scale the shorter edge to the given `scale`, as long as the longer edge does not exceed `max_size`.