Skip to content

Commit

Permalink
Merge branch 'master' into create_docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ppdebreuck authored Mar 10, 2021
2 parents 1d15476 + a30cfce commit fcfa222
Show file tree
Hide file tree
Showing 17 changed files with 2,480 additions and 974 deletions.
792 changes: 792 additions & 0 deletions example_notebooks/composition_example.ipynb

Large diffs are not rendered by default.

Binary file modified example_notebooks/out/MODNet_refractive_index.h5
Binary file not shown.
2 changes: 1 addition & 1 deletion example_notebooks/out/MODNet_refractive_index.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"class_name": "Functional", "config": {"name": "functional_1", "layers": [{"class_name": "InputLayer", "config": {"batch_input_shape": [null, 1000], "dtype": "float32", "sparse": false, "ragged": false, "name": "input_1"}, "name": "input_1", "inbound_nodes": []}, {"class_name": "Dense", "config": {"name": "dense", "trainable": true, "dtype": "float32", "units": 128, "activation": "elu", "use_bias": true, "kernel_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}}, "bias_initializer": {"class_name": "Zeros", "config": {}}, "kernel_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "bias_constraint": null}, "name": "dense", "inbound_nodes": [[["input_1", 0, 0, {}]]]}, {"class_name": "Dense", "config": {"name": "dense_1", "trainable": true, "dtype": "float32", "units": 64, "activation": "elu", "use_bias": true, "kernel_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}}, "bias_initializer": {"class_name": "Zeros", "config": {}}, "kernel_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "bias_constraint": null}, "name": "dense_1", "inbound_nodes": [[["dense", 0, 0, {}]]]}, {"class_name": "Dense", "config": {"name": "dense_2", "trainable": true, "dtype": "float32", "units": 32, "activation": "elu", "use_bias": true, "kernel_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}}, "bias_initializer": {"class_name": "Zeros", "config": {}}, "kernel_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "bias_constraint": null}, "name": "dense_2", "inbound_nodes": [[["dense_1", 0, 0, {}]]]}, {"class_name": "Dense", "config": {"name": "refractive_index", "trainable": true, "dtype": "float32", "units": 1, "activation": "linear", "use_bias": true, "kernel_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}}, "bias_initializer": {"class_name": "Zeros", "config": {}}, "kernel_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "bias_constraint": null}, "name": "refractive_index", "inbound_nodes": [[["dense_2", 0, 0, {}]]]}], "input_layers": [["input_1", 0, 0]], "output_layers": [["refractive_index", 0, 0]]}, "keras_version": "2.4.0", "backend": "tensorflow"}
{"class_name": "Functional", "config": {"name": "functional_3", "layers": [{"class_name": "InputLayer", "config": {"batch_input_shape": [null, 1000], "dtype": "float32", "sparse": false, "ragged": false, "name": "input_2"}, "name": "input_2", "inbound_nodes": []}, {"class_name": "Dense", "config": {"name": "dense_3", "trainable": true, "dtype": "float32", "units": 128, "activation": "elu", "use_bias": true, "kernel_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}}, "bias_initializer": {"class_name": "Zeros", "config": {}}, "kernel_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "bias_constraint": null}, "name": "dense_3", "inbound_nodes": [[["input_2", 0, 0, {}]]]}, {"class_name": "Dense", "config": {"name": "dense_4", "trainable": true, "dtype": "float32", "units": 64, "activation": "elu", "use_bias": true, "kernel_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}}, "bias_initializer": {"class_name": "Zeros", "config": {}}, "kernel_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "bias_constraint": null}, "name": "dense_4", "inbound_nodes": [[["dense_3", 0, 0, {}]]]}, {"class_name": "Dense", "config": {"name": "dense_5", "trainable": true, "dtype": "float32", "units": 32, "activation": "elu", "use_bias": true, "kernel_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}}, "bias_initializer": {"class_name": "Zeros", "config": {}}, "kernel_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "bias_constraint": null}, "name": "dense_5", "inbound_nodes": [[["dense_4", 0, 0, {}]]]}, {"class_name": "Dense", "config": {"name": "refractive_index", "trainable": true, "dtype": "float32", "units": 1, "activation": "linear", "use_bias": true, "kernel_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}}, "bias_initializer": {"class_name": "Zeros", "config": {}}, "kernel_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "bias_constraint": null}, "name": "refractive_index", "inbound_nodes": [[["dense_5", 0, 0, {}]]]}], "input_layers": [["input_2", 0, 0]], "output_layers": [["refractive_index", 0, 0]]}, "keras_version": "2.4.0", "backend": "tensorflow"}
Binary file modified example_notebooks/out/MODNet_refractive_index.pkl
Binary file not shown.
14 changes: 7 additions & 7 deletions example_notebooks/predicting_ref_index.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@
"metadata": {},
"outputs": [
{
"name": "stderr",
"name": "stdout",
"output_type": "stream",
"text": [
"INFO:root:Loading model from ../pretrained/refractive_index(.json/.h5/.pkl)\n",
"INFO:root:Loaded `MODNetModel` created with modnet version 0.1.8.\n"
"2021-02-24 14:28:00,039 - modnet - INFO - Loading model from ../pretrained/refractive_index(.json/.h5/.pkl)\n",
"2021-02-24 14:28:00,118 - modnet - INFO - Loaded `MODNetModel` created with modnet version 0.1.8.\n"
]
}
],
Expand All @@ -57,10 +57,10 @@
"metadata": {},
"outputs": [
{
"name": "stderr",
"name": "stdout",
"output_type": "stream",
"text": [
"INFO:root:Loaded <modnet.preprocessing.MODData object at 0x7f86af24eb50> object, created with modnet version <=0.1.7\n"
"2021-02-24 14:28:33,168 - modnet - INFO - Loaded <modnet.preprocessing.MODData object at 0x7f98b3463af0> object, created with modnet version <=0.1.7\n"
]
}
],
Expand Down Expand Up @@ -280,9 +280,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python [conda env:modnet]",
"display_name": "Python [conda env:modnet-develop]",
"language": "python",
"name": "conda-env-modnet-py"
"name": "conda-env-modnet-develop-py"
},
"language_info": {
"codemirror_mode": {
Expand Down
Loading

0 comments on commit fcfa222

Please sign in to comment.