Skip to content

Commit

Permalink
Merge pull request #55 from CameronBodine/main
Browse files Browse the repository at this point in the history
Use weights stored in object #54
  • Loading branch information
CameronBodine committed Jan 24, 2023
2 parents fb98e8e + b3ea43c commit 826d81f
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 826d81f

Please sign in to comment.