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
0bd46010
Commit
0bd46010
authored
4 years ago
by
Jean-Luc Parouty
Browse files
Options
Downloads
Patches
Plain Diff
Update notebooks for continous integration
parent
f9431901
No related branches found
No related tags found
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
VAE/01-VAE-with-MNIST.nbconvert.ipynb
+209
-220
209 additions, 220 deletions
VAE/01-VAE-with-MNIST.nbconvert.ipynb
VAE/modules/vae.py
+13
-9
13 additions, 9 deletions
VAE/modules/vae.py
fidle/log/finished.json
+6
-0
6 additions, 0 deletions
fidle/log/finished.json
with
228 additions
and
229 deletions
VAE/01-VAE-with-MNIST.nbconvert.ipynb
+
209
−
220
View file @
0bd46010
This diff is collapsed.
Click to expand it.
VAE/modules/vae.py
+
13
−
9
View file @
0bd46010
...
@@ -27,8 +27,8 @@ from tensorflow.keras.utils import plot_model
...
@@ -27,8 +27,8 @@ from tensorflow.keras.utils import plot_model
from
modules.callbacks
import
ImagesCallback
from
modules.callbacks
import
ImagesCallback
from
modules.data_generator
import
DataGenerator
from
modules.data_generator
import
DataGenerator
import
os
,
json
,
time
,
datetime
import
os
,
json
,
time
,
datetime
from
IPython.display
import
display
,
Image
,
Markdown
,
HTML
...
@@ -125,15 +125,15 @@ class VariationalAutoencoder():
...
@@ -125,15 +125,15 @@ class VariationalAutoencoder():
# ==== Verbosity ==============================================================
# ==== Verbosity ==============================================================
print
(
'
Model initialized.
'
)
self
.
subtitle
(
'
Model initialized.
'
)
print
(
f
'
Outputs will be in :
{
self
.
run_directory
}
'
)
print
(
f
'
Outputs will be in :
{
self
.
run_directory
}
'
)
if
verbose
>
0
:
if
verbose
>
0
:
print
(
'
\n
'
,
'
-
'
*
10
,
'
Encoder
'
,
'
-
'
*
50
,
'
\n
'
)
self
.
subtitle
(
'
Encoder :
'
)
self
.
encoder
.
summary
()
self
.
encoder
.
summary
()
print
(
'
\n
'
,
'
-
'
*
10
,
'
Encoder
'
,
'
-
'
*
50
,
'
\n
'
)
self
.
subtitle
(
'
Decoder :
'
)
self
.
decoder
.
summary
()
self
.
decoder
.
summary
()
self
.
plot_model
()
#
self.plot_model()
...
@@ -270,14 +270,14 @@ class VariationalAutoencoder():
...
@@ -270,14 +270,14 @@ class VariationalAutoencoder():
filename
=
self
.
run_directory
+
'
/models/
'
+
config
filename
=
self
.
run_directory
+
'
/models/
'
+
config
with
open
(
filename
,
'
w
'
)
as
outfile
:
with
open
(
filename
,
'
w
'
)
as
outfile
:
json
.
dump
(
data
,
outfile
)
json
.
dump
(
data
,
outfile
)
print
(
f
'
Config saved in :
{
filename
}
'
)
print
(
f
'
\n
Config saved in :
{
filename
}
'
)
# ---- Save model
# ---- Save model
if
model
!=
None
:
if
model
!=
None
:
filename
=
self
.
run_directory
+
'
/models/
'
+
model
filename
=
self
.
run_directory
+
'
/models/
'
+
model
self
.
model
.
save
(
filename
)
self
.
model
.
save
(
filename
)
print
(
f
'
Model saved in :
{
filename
}
'
)
print
(
f
'
\n
Model saved in :
{
filename
}
'
)
...
@@ -302,6 +302,10 @@ class VariationalAutoencoder():
...
@@ -302,6 +302,10 @@ class VariationalAutoencoder():
@classmethod
@classmethod
def
about
(
cls
):
def
about
(
cls
):
print
(
'
\n
FIDLE 2020 - Variational AutoEncoder (VAE)
'
)
cls
.
subtitle
(
'
FIDLE 2020 - Variational AutoEncoder (VAE)
'
)
print
(
'
TensorFlow version :
'
,
tf
.
__version__
)
print
(
'
TensorFlow version :
'
,
tf
.
__version__
)
print
(
'
VAE version :
'
,
cls
.
version
)
print
(
'
VAE version :
'
,
cls
.
version
)
\ No newline at end of file
@classmethod
def
subtitle
(
cls
,
text
):
display
(
Markdown
(
f
'
<br>**
{
text
}
**
'
))
This diff is collapsed.
Click to expand it.
fidle/log/finished.json
+
6
−
0
View file @
0bd46010
...
@@ -76,5 +76,11 @@
...
@@ -76,5 +76,11 @@
"start"
:
"Saturday 19 December 2020, 11:37:54"
,
"start"
:
"Saturday 19 December 2020, 11:37:54"
,
"end"
:
"Saturday 19 December 2020, 11:37:57"
,
"end"
:
"Saturday 19 December 2020, 11:37:57"
,
"duration"
:
"00:00:03 329ms"
"duration"
:
"00:00:03 329ms"
},
"VAE1"
:
{
"path"
:
"/home/pjluc/dev/fidle/VAE"
,
"start"
:
"Saturday 19 December 2020, 17:56:34"
,
"end"
:
"Saturday 19 December 2020, 17:58:18"
,
"duration"
:
"00:01:44 880ms"
}
}
}
}
\ No newline at end of file
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