You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does your model not support torch.jit? I encounter an error when trying to convert the model with the following code. If there is a solution, please let me know.
importtorchfromedge_samimportSamPredictor, sam_model_registrysam_checkpoint="./weights/edge_sam.pth"model_type="edge_sam"# load model and runsam=sam_model_registry[model_type](checkpoint=sam_checkpoint)
sam_jit=torch.jit.script(copy.deepcopy(sam))
The text was updated successfully, but these errors were encountered:
Does your model not support torch.jit? I encounter an error when trying to convert the model with the following code. If there is a solution, please let me know.
The text was updated successfully, but these errors were encountered: