Skip to content

Commit

Permalink
delete unnecessary comments and messages
Browse files Browse the repository at this point in the history
Signed-off-by: Rohit Jena <[email protected]>
  • Loading branch information
rohitrango committed Jul 10, 2024
1 parent 508198f commit 00c0fd0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -596,8 +596,6 @@ def load_from_unet(self, from_pretrained_unet, from_NeMo=True):
)
print(f'There is {len(missing_keys)} total missing keys')
print("Missing:", missing_keys)
for key in sorted(missing_keys):
print(key)
print("Unexpected:", unexpected_keys)
else:
print("sd blocks loaded successfully")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1219,7 +1219,7 @@ def _state_key_mapping(self, state_dict: dict):
def _load_pretrained_model(self, state_dict, ignore_mismatched_sizes=False, from_NeMo=False):
state_dict = self._strip_unet_key_prefix(state_dict)
if not from_NeMo:
print("creating state key mapping from HF")
logging.info("creating state key mapping from HF")
state_dict = self._state_key_mapping(state_dict)
state_dict = self._legacy_unet_ckpt_mapping(state_dict)

Expand Down

0 comments on commit 00c0fd0

Please sign in to comment.