chore: prepare repository for public release
This commit is contained in:
@@ -13,7 +13,8 @@ def main() -> int:
|
||||
parser.add_argument("checkpoint", type=Path)
|
||||
args = parser.parse_args()
|
||||
import torch
|
||||
checkpoint = torch.load(args.checkpoint, map_location="cpu", weights_only=False)
|
||||
|
||||
checkpoint = torch.load(args.checkpoint, map_location="cpu", weights_only=True)
|
||||
payload = {
|
||||
key: checkpoint.get(key)
|
||||
for key in ("date", "version", "license", "docs", "train_args")
|
||||
|
||||
Reference in New Issue
Block a user