Skip to content

Commit

Permalink
changing compilation for tf compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
panushri25 committed Apr 11, 2023
1 parent d501bf9 commit 875affc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion chrombpnet/evaluation/make_bigwigs/predict_to_bigwig.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def load_model_wrapper(model_hdf5):
# read .h5 model
custom_objects={"multinomial_nll":losses.multinomial_nll, "tf": tf}
get_custom_objects().update(custom_objects)
model=load_model(model_hdf5)
model=load_model(model_hdf5, compile=False)
print("got the model")
model.summary()
return model
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def load_model_wrapper(args):
# read .h5 model
custom_objects={"multinomial_nll":losses.multinomial_nll, "tf": tf}
get_custom_objects().update(custom_objects)
model=load_model(args.model_h5)
model=load_model(args.model_h5, compile=False)
print("got the model")
model.summary()
return model
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def load_model_wrapper(args):
# read .h5 model
custom_objects={"tf": tf, "multinomial_nll":losses.multinomial_nll}
get_custom_objects().update(custom_objects)
model=load_model(args.model_h5)
model=load_model(args.model_h5, compile=False)
print("model loaded succesfully")
return model

Expand Down
2 changes: 1 addition & 1 deletion chrombpnet/training/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def load_model_wrapper(args):
# read .h5 model
custom_objects={"tf": tf, "multinomial_nll":losses.multinomial_nll}
get_custom_objects().update(custom_objects)
model=load_model(args.model_h5)
model=load_model(args.model_h5, compile=False)
print("got the model")
#model.summary()
return model
Expand Down

0 comments on commit 875affc

Please sign in to comment.