Open ZhaoDidididi opened 6 months ago
How do I convert the official weight of Sam to the. pt format that libtorch can use.
I tried to use torch.jit.trace(sam.mask_decoder, input_data) and torch.jit.script(sam.mask_decoder, input_data) to save the .pt file,but it failed.
How do I convert the official weight of Sam to the. pt format that libtorch can use.