Skip to content

Commit

Permalink
Update hardcode path
Browse files Browse the repository at this point in the history
  • Loading branch information
dinhanhx committed Oct 29, 2023
1 parent b2a6fd5 commit 9b9a7f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kit/extract_lightning_ckpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
from exp.run_pretrain import Wrapper

if __name__ == "__main__":
ckpt_folder = Path("logs/lightning_logs/version_0/checkpoints")
ckpt_file = ckpt_folder.joinpath("epoch=1-step=18000.ckpt")
ckpt_folder = Path("pls-logs/lightning_logs/version_4/checkpoints/")
ckpt_file = ckpt_folder.joinpath("epoch=1-step=147000.ckpt")
assert ckpt_file.is_file()
wrapper = Wrapper.load_from_checkpoint(checkpoint_path=ckpt_file)
pt_file = ckpt_folder.joinpath("imagetext-base.pt")
Expand Down

0 comments on commit 9b9a7f2

Please sign in to comment.