Skip to content

Commit

Permalink
Change Prunin' to Pruning
Browse files Browse the repository at this point in the history
  • Loading branch information
TalAter committed Nov 6, 2022
1 parent c5c48dd commit 0339276
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ldm/pruner.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
def prune_checkpoint(old_state):
print(f"Prunin' Checkpoint")
print(f"Pruning Checkpoint")
pruned_checkpoint = dict()
print(f"Checkpoint Keys: {old_state.keys()}")
for key in old_state.keys():
Expand Down
2 changes: 1 addition & 1 deletion prune_ckpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
ckpt = args.ckpt

def prune_it(checkpoint_path):
print(f"Prunin' checkpoint from path: {checkpoint_path}")
print(f"Pruning checkpoint from path: {checkpoint_path}")
size_initial = os.path.getsize(checkpoint_path)
checkpoint = torch.load(checkpoint_path, map_location="cpu")
pruned = prune_checkpoint(checkpoint)
Expand Down
2 changes: 1 addition & 1 deletion scripts/prune-ckpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
ckpt = args.ckpt

def prune_it(p, keep_only_ema=False):
print(f"prunin' in path: {p}")
print(f"Pruning in path: {p}")
size_initial = os.path.getsize(p)
nsd = dict()
sd = torch.load(p, map_location="cpu")
Expand Down

0 comments on commit 0339276

Please sign in to comment.