Skip to content
Discussion options

You must be logged in to vote

Hi @jarod1212, if your autoencoder has the same structure as the BasicUnet, you can simply load the pre-trained weight by adding a load_weight func like:

def load_weight(self._model, weights_from_autoencoder):
    self._model.load_state_dict(weights_from_autoencoder)

Hope it can help you, thanks!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jarod1212
Comment options

Answer selected by wyli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants