#269·FastSAM

Converting FastSAM to torchscript format

Author: HenryParkGCreated May 26, 2025Updated May 26, 2025

I want to convert FastSAM-s.pt or FastSAM-x.pt to torchscript format

However, the conversion process does not seem simple. If I convert using the Tracing method, I cannot input the existing argument values, such as point_coords or point_labels.

Also, I tried to convert using the Annotating method, but I cannot write the code. Is there any example code or reference material?