Skip to content

Commit

Permalink
Merge pull request #19 from akapoorcern/master
Browse files Browse the repository at this point in the history
Added some functionalities
  • Loading branch information
a-kapoor authored Jul 25, 2021
2 parents 197bcfb + 2a9d996 commit 1317697
Show file tree
Hide file tree
Showing 3 changed files with 2,198 additions and 452 deletions.
11 changes: 11 additions & 0 deletions Tools/convert_h5Topb.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import numpy as np
import tensorflow as tf
from tensorflow import keras
import sys

modelloc=str(sys.argv[1])
pbmodelloc=str(sys.argv[2])
model = keras.models.load_model(modelloc)

import cmsml
cmsml.tensorflow.save_graph(pbmodelloc, model, variables_to_constants=True)
Loading

0 comments on commit 1317697

Please sign in to comment.