From 4bbabc602678a0227bfe9ffae4bbb4caab8a3767 Mon Sep 17 00:00:00 2001 From: RĂ©mi Flamary Date: Fri, 24 Apr 2020 17:38:01 +0200 Subject: relative path exmaples --- examples/domain-adaptation/plot_otda_color_images.py | 4 ++-- examples/domain-adaptation/plot_otda_mapping_colors_images.py | 4 ++-- examples/gromov/plot_gromov_barycenter.py | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'examples') diff --git a/examples/domain-adaptation/plot_otda_color_images.py b/examples/domain-adaptation/plot_otda_color_images.py index 7e0afee..929365e 100644 --- a/examples/domain-adaptation/plot_otda_color_images.py +++ b/examples/domain-adaptation/plot_otda_color_images.py @@ -46,8 +46,8 @@ def minmax(I): # ------------- # Loading images -I1 = pl.imread('../data/ocean_day.jpg').astype(np.float64) / 256 -I2 = pl.imread('../data/ocean_sunset.jpg').astype(np.float64) / 256 +I1 = pl.imread('../../data/ocean_day.jpg').astype(np.float64) / 256 +I2 = pl.imread('../../data/ocean_sunset.jpg').astype(np.float64) / 256 X1 = im2mat(I1) X2 = im2mat(I2) diff --git a/examples/domain-adaptation/plot_otda_mapping_colors_images.py b/examples/domain-adaptation/plot_otda_mapping_colors_images.py index 1276714..9d3a7c7 100644 --- a/examples/domain-adaptation/plot_otda_mapping_colors_images.py +++ b/examples/domain-adaptation/plot_otda_mapping_colors_images.py @@ -47,8 +47,8 @@ def minmax(I): # ------------- # Loading images -I1 = pl.imread('../data/ocean_day.jpg').astype(np.float64) / 256 -I2 = pl.imread('../data/ocean_sunset.jpg').astype(np.float64) / 256 +I1 = pl.imread('../../data/ocean_day.jpg').astype(np.float64) / 256 +I2 = pl.imread('../../data/ocean_sunset.jpg').astype(np.float64) / 256 X1 = im2mat(I1) diff --git a/examples/gromov/plot_gromov_barycenter.py b/examples/gromov/plot_gromov_barycenter.py index 6b29687..f6f031a 100755 --- a/examples/gromov/plot_gromov_barycenter.py +++ b/examples/gromov/plot_gromov_barycenter.py @@ -89,10 +89,10 @@ def im2mat(I): return I.reshape((I.shape[0] * I.shape[1], I.shape[2])) -square = pl.imread('../data/square.png').astype(np.float64)[:, :, 2] -cross = pl.imread('../data/cross.png').astype(np.float64)[:, :, 2] -triangle = pl.imread('../data/triangle.png').astype(np.float64)[:, :, 2] -star = pl.imread('../data/star.png').astype(np.float64)[:, :, 2] +square = pl.imread('../../data/square.png').astype(np.float64)[:, :, 2] +cross = pl.imread('../../data/cross.png').astype(np.float64)[:, :, 2] +triangle = pl.imread('../../data/triangle.png').astype(np.float64)[:, :, 2] +star = pl.imread('../../data/star.png').astype(np.float64)[:, :, 2] shapes = [square, cross, triangle, star] -- cgit v1.2.3