We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00b830c commit 209a259Copy full SHA for 209a259
official/vision/tasks/maskrcnn.py
@@ -105,7 +105,7 @@ def initialize(self, model: tf.keras.Model):
105
106
# Restoring checkpoint.
107
if self.task_config.init_checkpoint_modules == 'all':
108
- ckpt = tf.train.Checkpoint(**model.checkpoint_items)
+ ckpt = tf.train.Checkpoint(model=model)
109
status = ckpt.read(ckpt_dir_or_file)
110
status.expect_partial().assert_existing_objects_matched()
111
else:
0 commit comments