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 5bf90fb commit d012b23Copy full SHA for d012b23
official/vision/beta/tasks/image_classification.py
@@ -62,7 +62,7 @@ def initialize(self, model: tf.keras.Model):
62
63
# Restoring checkpoint.
64
if self.task_config.init_checkpoint_modules == 'all':
65
- ckpt = tf.train.Checkpoint(**model.checkpoint_items)
+ ckpt = tf.train.Checkpoint(model=model)
66
status = ckpt.read(ckpt_dir_or_file)
67
status.expect_partial().assert_existing_objects_matched()
68
elif self.task_config.init_checkpoint_modules == 'backbone':
0 commit comments