-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Open
Description
When creatingmodel_2
and trying to load the weights by
model_2.load_weights(checkpoint_path)
I'm getting the following error:
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
[<ipython-input-55-d2e3006b884f>](https://localhost:8080/#) in <cell line: 2>()
1 # Load model from checkpoint, that way we can fine-tune from the same stage the 10 percent data model was fine-tuned from
----> 2 model_2.load_weights(checkpoint_path) # revert model back to saved weights
1 frames
[/usr/local/lib/python3.9/dist-packages/tensorflow/python/ops/resource_variable_ops.py](https://localhost:8080/#) in _restore_from_tensors(self, restored_tensors)
718 self.handle, self.shape, restored_tensor)
719 except ValueError as e:
--> 720 raise ValueError(
721 f"Received incompatible tensor with shape {restored_tensor.shape} "
722 f"when attempting to restore variable with shape {self.shape} "
ValueError: Received incompatible tensor with shape (1280, 10) when attempting to restore variable with shape (1, 1, 1152, 48) and name Adam/m/block7a_se_reduce/kernel:0.
I tried to download the notebook from this repo, but have the same result.
Metadata
Metadata
Assignees
Labels
No labels