-
Notifications
You must be signed in to change notification settings - Fork 340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ADD SAM2.1 #1607
Comments
SAM2.1では、add_tpos_enc_to_obj_ptrsがtrueになっている。 |
matserをブランチにマージしてONNXの変換は動作していそう。 |
変換スクリプト。
|
SAM2
SAM2.1
コード SAM2
SAM2.1
圧縮した過去フレーム情報であるobj_ptrsに対するposition_embeddingであるobj_posは、 |
@kyakuno 最新のsam2は最初のframe以外にもpromptを入力できそうなのですが、最新のvideo predictorをadaptすることは可能そうでしょうか? |
@wep21 ONNX自体はモデルの全ての引数に対応しているため、下記のスクリプトに従って、add_new_points_or_boxなどを呼び出せば、内部ステートが更新されて、最初のframe以外にもrefinementのpromptを適用できるのではないかと考えています。 |
SAM2.1のモデルをエクスポートする。
https://github.com/facebookresearch/sam2
エクスポートブランチ。
axinc-ai/segment-anything-2#7
The text was updated successfully, but these errors were encountered: