Skip to content
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

[wip] SAM: onnx passing not closing well #2600

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

[wip] SAM: onnx passing not closing well #2600

wants to merge 1 commit into from

Conversation

edgarriba
Copy link
Member

@edgarriba edgarriba commented Oct 3, 2023

Related to ##2559

@edgarriba edgarriba added this to the ONNX support milestone Oct 3, 2023
@edgarriba edgarriba requested a review from johnnv1 October 3, 2023 19:36
@@ -85,7 +85,10 @@ def __init__(

def forward(self, x: Tensor) -> Tensor:
if x.ndim == 3:
x = x.transpose(1, 2).unflatten(2, self.input_resolution) # (B, H * W, C) -> (B, C, H, W)
# x = x.transpose(1, 2).unflatten(2, self.input_resolution) # (B, H * W, C) -> (B, C, H, W)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ducha-aiki i noticed that some models for matching use unflatten too which is not supported by onnx

@johnnv1
Copy link
Member

johnnv1 commented Feb 7, 2024

this still relevant @edgarriba ?

@johnnv1 johnnv1 changed the title [wip] onnx passing not closing well [wip] SAM: onnx passing not closing well Feb 7, 2024
@edgarriba
Copy link
Member Author

@johnnv1 our current Sam is not ONNX exportable, so I’d say yes it’s relevant but I won’t have time work on it

@johnnv1 johnnv1 changed the base branch from master to main February 8, 2024 00:54
@johnnv1
Copy link
Member

johnnv1 commented Feb 8, 2024

@johnnv1 our current Sam is not ONNX exportable, so I’d say yes it’s relevant but I won’t have time work on it

Ok, just updated it to be main based

@johnnv1 johnnv1 closed this Feb 8, 2024
@johnnv1 johnnv1 reopened this Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants