Please add support for SAM3.
I tried to use SamOnnxConfig but the configuration is quite different. Any thoughts on how to create a new config as I'm new to this.
from optimum.exporters.onnx import main_export
from optimum.exporters.onnx.model_configs import SamOnnxConfig
from transformers.models.sam3 import Sam3Config
model_id = 'model/sam3'
config = Sam3Config.from_pretrained(model_id)
main_export(
model_id,
output='model/sam3_onnx',
task='feature-extraction',
custom_onnx_configs={
'model': SamOnnxConfig(config),
}
)
Please add support for SAM3.
I tried to use
SamOnnxConfigbut the configuration is quite different. Any thoughts on how to create a new config as I'm new to this.