Skip to content

Commit 610b62f

Browse files
Circle CICircle CI
authored andcommitted
CircleCI update of dev docs (68).
1 parent 4c69b00 commit 610b62f

97 files changed

Lines changed: 329 additions & 315 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎_downloads/1b148e8c6f33b295852ee0a817ab9a7c/plot_otda_mapping_colors_images.ipynb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"cell_type": "markdown",
1616
"metadata": {},
1717
"source": [
18-
"\n# OT for image color adaptation with mapping estimation\n\n\nOT for domain adaptation with image color adaptation [6] with mapping\nestimation [8].\n\n[6] Ferradans, S., Papadakis, N., Peyre, G., & Aujol, J. F. (2014). Regularized\n discrete optimal transport. SIAM Journal on Imaging Sciences, 7(3),\n 1853-1882.\n[8] M. Perrot, N. Courty, R. Flamary, A. Habrard, \"Mapping estimation for\n discrete optimal transport\", Neural Information Processing Systems (NIPS),\n 2016.\n"
18+
"\n# OT for image color adaptation with mapping estimation\n\n\nOT for domain adaptation with image color adaptation [6] with mapping\nestimation [8].\n\n[6] Ferradans, S., Papadakis, N., Peyre, G., & Aujol, J. F. (2014). Regularized\ndiscrete optimal transport. SIAM Journal on Imaging Sciences, 7(3), 1853-1882.\n[8] M. Perrot, N. Courty, R. Flamary, A. Habrard, \"Mapping estimation for\ndiscrete optimal transport\", Neural Information Processing Systems (NIPS), 2016.\n"
1919
]
2020
},
2121
{

‎_downloads/210aa126ba182b7dc6e44edcda80f1cb/plot_gromov_barycenter.ipynb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
},
6363
"outputs": [],
6464
"source": [
65-
"def im2mat(I):\n \"\"\"Converts and image to matrix (one pixel per line)\"\"\"\n return I.reshape((I.shape[0] * I.shape[1], I.shape[2]))\n\n\nsquare = pl.imread('../data/square.png').astype(np.float64)[:, :, 2] / 256\ncross = pl.imread('../data/cross.png').astype(np.float64)[:, :, 2] / 256\ntriangle = pl.imread('../data/triangle.png').astype(np.float64)[:, :, 2] / 256\nstar = pl.imread('../data/star.png').astype(np.float64)[:, :, 2] / 256\n\nshapes = [square, cross, triangle, star]\n\nS = 4\nxs = [[] for i in range(S)]\n\n\nfor nb in range(4):\n for i in range(8):\n for j in range(8):\n if shapes[nb][i, j] < 0.95:\n xs[nb].append([j, 8 - i])\n\nxs = np.array([np.array(xs[0]), np.array(xs[1]),\n np.array(xs[2]), np.array(xs[3])])"
65+
"def im2mat(I):\n \"\"\"Converts and image to matrix (one pixel per line)\"\"\"\n return I.reshape((I.shape[0] * I.shape[1], I.shape[2]))\n\n\nsquare = pl.imread('../data/square.png').astype(np.float64)[:, :, 2]\ncross = pl.imread('../data/cross.png').astype(np.float64)[:, :, 2]\ntriangle = pl.imread('../data/triangle.png').astype(np.float64)[:, :, 2]\nstar = pl.imread('../data/star.png').astype(np.float64)[:, :, 2]\n\nshapes = [square, cross, triangle, star]\n\nS = 4\nxs = [[] for i in range(S)]\n\n\nfor nb in range(4):\n for i in range(8):\n for j in range(8):\n if shapes[nb][i, j] < 0.95:\n xs[nb].append([j, 8 - i])\n\nxs = np.array([np.array(xs[0]), np.array(xs[1]),\n np.array(xs[2]), np.array(xs[3])])"
6666
]
6767
},
6868
{

‎_downloads/3c6c684eb6e01dc9a4319d2969f85cdd/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] / 256
93-
cross = pl.imread('../data/cross.png').astype(np.float64)[:, :, 2] / 256
94-
triangle = pl.imread('../data/triangle.png').astype(np.float64)[:, :, 2] / 256
95-
star = pl.imread('../data/star.png').astype(np.float64)[:, :, 2] / 256
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

Binary file not shown.
Binary file not shown.

‎_downloads/fac4a90e210a2a01da86c9309772fe37/plot_otda_mapping_colors_images.py‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,9 @@
88
estimation [8].
99
1010
[6] Ferradans, S., Papadakis, N., Peyre, G., & Aujol, J. F. (2014). Regularized
11-
discrete optimal transport. SIAM Journal on Imaging Sciences, 7(3),
12-
1853-1882.
11+
discrete optimal transport. SIAM Journal on Imaging Sciences, 7(3), 1853-1882.
1312
[8] M. Perrot, N. Courty, R. Flamary, A. Habrard, "Mapping estimation for
14-
discrete optimal transport", Neural Information Processing Systems (NIPS),
15-
2016.
13+
discrete optimal transport", Neural Information Processing Systems (NIPS), 2016.
1614
1715
"""
1816

-815 Bytes
-1.16 KB
-11 Bytes
-2.92 KB

0 commit comments

Comments
 (0)