From 4aac3df06bc091b8a74788fea5decd736e15bcda Mon Sep 17 00:00:00 2001 From: Liu Yi Date: Wed, 20 Jul 2022 20:58:59 +0800 Subject: [PATCH] [Fix] Fix scipy warning problem (#2342) --- paddleseg/models/losses/decoupledsegnet_relax_boundary_loss.py | 2 +- paddleseg/transforms/functional.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/paddleseg/models/losses/decoupledsegnet_relax_boundary_loss.py b/paddleseg/models/losses/decoupledsegnet_relax_boundary_loss.py index 38be3d120a..eb02389c4b 100644 --- a/paddleseg/models/losses/decoupledsegnet_relax_boundary_loss.py +++ b/paddleseg/models/losses/decoupledsegnet_relax_boundary_loss.py @@ -16,7 +16,7 @@ import paddle from paddle import nn import paddle.nn.functional as F -from scipy.ndimage.interpolation import shift +from scipy.ndimage import shift from paddleseg.cvlibs import manager diff --git a/paddleseg/transforms/functional.py b/paddleseg/transforms/functional.py index cb26b6e491..dc1ac572ae 100644 --- a/paddleseg/transforms/functional.py +++ b/paddleseg/transforms/functional.py @@ -15,7 +15,7 @@ import cv2 import numpy as np from PIL import Image, ImageEnhance -from scipy.ndimage.morphology import distance_transform_edt +from scipy.ndimage import distance_transform_edt def normalize(im, mean, std):