-2

I am new to machine learning. Need help. I have been looking for a solution to update the existing detectron2 model_final.pth file with new annotations, can you guys suggest a solution.

As i am new to ML, haven't tried yet, exploring it.

1 Answers1

0

.pth file can be updated using torch. The code will be like below:

import torch
old_model = torch.load("model_final.pth")
new_model = update_annotations(old_model) #update your .pth file here
torch.save(new_model,"model_final.pth")
user3503711
  • 1,623
  • 1
  • 21
  • 32