Skip to content

Commit

Permalink
Revert "Save captions with checkpoint"
Browse files Browse the repository at this point in the history
  • Loading branch information
JoePenna authored Dec 16, 2022
1 parent a1781aa commit f00062a
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 42 deletions.
16 changes: 0 additions & 16 deletions ldm/modules/callbacks/captions.py

This file was deleted.

1 change: 1 addition & 0 deletions ldm/pruner.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
def prune_checkpoint(old_state):
print(f"Pruning Checkpoint")
pruned_checkpoint = dict()
print(f"Checkpoint Keys: {old_state.keys()}")
for key in old_state.keys():
if key != "optimizer_states":
pruned_checkpoint[key] = old_state[key]
Expand Down
3 changes: 0 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -771,9 +771,6 @@ def on_train_epoch_start(self, trainer, pl_module):
"cuda_callback": {
"target": "main.CUDACallback"
},
"captions_callback": {
"target": "ldm.modules.callbacks.captions.CaptionSaverCallback"
}
}
if version.parse(pl.__version__) >= version.parse('1.4.0'):
default_callbacks_cfg.update({'checkpoint_callback': modelckpt_cfg})
Expand Down
23 changes: 0 additions & 23 deletions scripts/show_captions.py

This file was deleted.

0 comments on commit f00062a

Please sign in to comment.