Skip to content

Commit

Permalink
Fix for tf 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Arno1235 committed Mar 22, 2023
1 parent 19d4db0 commit db8b791
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,8 @@ def train(self, data_provider, epochs, output_path, restore=False, train_summary
def pred_image(self, image_in, checkpoint_path, num):
#self.checkpoint = tfe.Checkpoint(model=self.model.net)
self.checkpoint = tf.train.Checkpoint(model=self.model.net)
self.checkpoint.restore(checkpoint_path)
# self.checkpoint.restore(checkpoint_path) # TEST
self.checkpoint.read(checkpoint_path)

preds = []
for icounter in range(num):
Expand Down

0 comments on commit db8b791

Please sign in to comment.