Skip to content

Commit 88c14c6

Browse files
authored
Updated to check for .keras weight files
1 parent 905e3c1 commit 88c14c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/NN.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1492,7 +1492,7 @@ def driver(inputdir, outputdir, datadir, plotdir, preddir,
14921492
clr_mode, clr_steps,
14931493
weight_file, stop_file='./STOP',
14941494
train_flag=False, shuffle=False, resume=False)
1495-
if '.h5' in weight_file or '.hdf5' in weight_file:
1495+
if '.h5' in weight_file or '.hdf5' in weight_file or '.keras' in weight_file:
14961496
nn.model.load_weights(weight_file) # Load the model
14971497
# Save in ONNX format
14981498
try:

0 commit comments

Comments
 (0)