Skip to content

Commit 6dba202

Browse files
Apply suggestions from code review
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 3b32e7f commit 6dba202

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bioimageio/core/weight_converter/keras/tensorflow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
# adapted from
1515
# https://github.com/deepimagej/pydeepimagej/blob/master/pydeepimagej/yaml/create_config.py#L236
1616
def _convert_tf1(keras_weight_path, output_path, zip_weights):
17-
1817
def build_tf_model():
1918
keras_model = keras.models.load_model(keras_weight_path)
2019

@@ -37,6 +36,7 @@ def build_tf_model():
3736
except Exception:
3837
# if the above fails try to export with the standalone keras
3938
import keras
39+
4040
build_tf_model()
4141

4242
if zip_weights:

0 commit comments

Comments
 (0)