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

how to inference with onnx but no box prompt ,and points prompt? #768

Open
cqray1990 opened this issue Jun 26, 2024 · 0 comments
Open

how to inference with onnx but no box prompt ,and points prompt? #768

cqray1990 opened this issue Jun 26, 2024 · 0 comments

Comments

@cqray1990
Copy link

how to inference with onnx but no box prompt ,and points prompt, sam in pytorch inference,it didn't need input prompt and points, becasue we didn't know the object position,and we need get whole mask in picture, how to achieve this requirements?
sam in pytorch inference code as follows:

   data = MaskData()
    for (points,) in batch_iterator(self.points_per_batch, points_for_image):
        batch_data = self._process_batch(points, cropped_im_size, crop_box, orig_size)
        data.cat(batch_data)

as so far, i found all demos about sam is given the box and points to get mask, how get whole object mask in picture without specific box? even i use return_single_mask=False to export onnx

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

No branches or pull requests

1 participant