Skip to content

Commit

Permalink
Use weights stored in object #54
Browse files Browse the repository at this point in the history
  • Loading branch information
CameronBodine committed Jan 11, 2023
1 parent 2832ec6 commit b3ea43c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/class_portstarObj.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ def _initModel(self,
)

try:
model = tf.keras.models.load_model(weights)
model = tf.keras.models.load_model(self.weights)
except:
model.compile(optimizer = 'adam', loss = dice_coef_loss, metrics = [mean_iou, dice_coef])
model.load_weights(self.weights)
Expand Down

0 comments on commit b3ea43c

Please sign in to comment.