Skip to content

Commit 4bbabc6

Browse files
committed
relative path exmaples
1 parent a547751 commit 4bbabc6

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

examples/domain-adaptation/plot_otda_color_images.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ def minmax(I):
4646
# -------------
4747

4848
# Loading images
49-
I1 = pl.imread('../data/ocean_day.jpg').astype(np.float64) / 256
50-
I2 = pl.imread('../data/ocean_sunset.jpg').astype(np.float64) / 256
49+
I1 = pl.imread('../../data/ocean_day.jpg').astype(np.float64) / 256
50+
I2 = pl.imread('../../data/ocean_sunset.jpg').astype(np.float64) / 256
5151

5252
X1 = im2mat(I1)
5353
X2 = im2mat(I2)

examples/domain-adaptation/plot_otda_mapping_colors_images.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ def minmax(I):
4747
# -------------
4848

4949
# Loading images
50-
I1 = pl.imread('../data/ocean_day.jpg').astype(np.float64) / 256
51-
I2 = pl.imread('../data/ocean_sunset.jpg').astype(np.float64) / 256
50+
I1 = pl.imread('../../data/ocean_day.jpg').astype(np.float64) / 256
51+
I2 = pl.imread('../../data/ocean_sunset.jpg').astype(np.float64) / 256
5252

5353

5454
X1 = im2mat(I1)

examples/gromov/plot_gromov_barycenter.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ def im2mat(I):
8989
return I.reshape((I.shape[0] * I.shape[1], I.shape[2]))
9090

9191

92-
square = pl.imread('../data/square.png').astype(np.float64)[:, :, 2]
93-
cross = pl.imread('../data/cross.png').astype(np.float64)[:, :, 2]
94-
triangle = pl.imread('../data/triangle.png').astype(np.float64)[:, :, 2]
95-
star = pl.imread('../data/star.png').astype(np.float64)[:, :, 2]
92+
square = pl.imread('../../data/square.png').astype(np.float64)[:, :, 2]
93+
cross = pl.imread('../../data/cross.png').astype(np.float64)[:, :, 2]
94+
triangle = pl.imread('../../data/triangle.png').astype(np.float64)[:, :, 2]
95+
star = pl.imread('../../data/star.png').astype(np.float64)[:, :, 2]
9696

9797
shapes = [square, cross, triangle, star]
9898

0 commit comments

Comments
 (0)