Skip to content

Commit

Permalink
Fix auto-download issue
Browse files Browse the repository at this point in the history
  • Loading branch information
deepanwayx authored Nov 21, 2023
1 parent 3d83507 commit e350693
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def build_pretrained_models(name):

ckpt_path = get_metadata()[name]["path"]
if not os.path.exists(ckpt_path):
download_checkpoint(name)
download_checkpoint(name)

checkpoint = torch.load(ckpt_path, map_location="cpu")
scale_factor = checkpoint["state_dict"]["scale_factor"].item()
Expand Down

0 comments on commit e350693

Please sign in to comment.