Closed nemeziz69 closed 1 year ago
Hi, you can do this in two ways:
model = create_yolov7_model(..., pretrained=False)
then loading the state dict from the checkpoint using checkpoint = torch.load('best_model.pt', map_location="cpu"); model.load_state_dict(checkpoint["model_state_dict"])
I hope this helps!
How to properly load the best_model.pt model to run prediction on image?