Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Fidle
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Slim Karkar
Fidle
Commits
8546f434
Commit
8546f434
authored
5 years ago
by
Jean-Luc Parouty Jean-Luc.Parouty@simap.grenoble-inp.fr
Browse files
Options
Downloads
Patches
Plain Diff
Update VAE and fidle
parent
3146cfb7
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
VAE/02-VAE-with-MNIST-post.ipynb
+176
-82
176 additions, 82 deletions
VAE/02-VAE-with-MNIST-post.ipynb
fidle/pwk.py
+3
-4
3 additions, 4 deletions
fidle/pwk.py
with
179 additions
and
86 deletions
VAE/02-VAE-with-MNIST-post.ipynb
+
176
−
82
View file @
8546f434
source diff could not be displayed: it is too large. Options to address this:
view the blob
.
This diff is collapsed.
Click to expand it.
fidle/pwk.py
+
3
−
4
View file @
8546f434
...
@@ -155,11 +155,11 @@ def rmin(l):
...
@@ -155,11 +155,11 @@ def rmin(l):
# show_images
# show_images
# -------------------------------------------------------------
# -------------------------------------------------------------
#
#
def
plot_images
(
x
,
y
=
None
,
indices
=
None
,
columns
=
12
,
x_size
=
1
,
y_size
=
1
,
colorbar
=
False
,
y_pred
=
None
,
cm
=
'
binary
'
):
def
plot_images
(
x
,
y
=
None
,
indices
=
'
all
'
,
columns
=
12
,
x_size
=
1
,
y_size
=
1
,
colorbar
=
False
,
y_pred
=
None
,
cm
=
'
binary
'
):
"""
"""
Show some images in a grid, with legends
Show some images in a grid, with legends
args:
args:
X
: images - Shapes must be (-1
lx,ly,1) or (-1
lx,ly,3)
x
: images - Shapes must be (-1
,lx,ly) (-1,
lx,ly,1) or (-1
,
lx,ly,3)
y: real classes or labels or None (None)
y: real classes or labels or None (None)
indices: indices of images to show or None for all (None)
indices: indices of images to show or None for all (None)
columns: number of columns (12)
columns: number of columns (12)
...
@@ -177,8 +177,7 @@ def plot_images(x,y=None, indices=None, columns=12, x_size=1, y_size=1, colorbar
...
@@ -177,8 +177,7 @@ def plot_images(x,y=None, indices=None, columns=12, x_size=1, y_size=1, colorbar
draw_labels
=
(
y
is
not
None
)
draw_labels
=
(
y
is
not
None
)
draw_pred
=
(
y_pred
is
not
None
)
draw_pred
=
(
y_pred
is
not
None
)
# if y_pred is None: y_pred=y
if
indices
==
'
all
'
:
indices
=
range
(
len
(
x
))
if
indices
==
None
:
indices
=
range
(
len
(
x
))
for
i
in
indices
:
for
i
in
indices
:
axs
=
fig
.
add_subplot
(
rows
,
columns
,
n
)
axs
=
fig
.
add_subplot
(
rows
,
columns
,
n
)
n
+=
1
n
+=
1
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment