Skip to content
Snippets Groups Projects
Commit 0bd46010 authored by Jean-Luc Parouty's avatar Jean-Luc Parouty
Browse files

Update notebooks for continous integration

parent f9431901
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
...@@ -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'\nConfig 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'\nModel saved in : {filename}')
...@@ -302,6 +302,10 @@ class VariationalAutoencoder(): ...@@ -302,6 +302,10 @@ class VariationalAutoencoder():
@classmethod @classmethod
def about(cls): def about(cls):
print('\nFIDLE 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}**'))
...@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment