Feature/api sam predict boxes#198
Open
Dutch77 wants to merge 2 commits intocontinue-revolution:masterfrom
Open
Feature/api sam predict boxes#198Dutch77 wants to merge 2 commits intocontinue-revolution:masterfrom
Dutch77 wants to merge 2 commits intocontinue-revolution:masterfrom
Conversation
Contributor
|
You breakes ui and extensions which use it |
Contributor
|
You can save it inside image object instead |
Author
|
It's appended stuff. Which UI and extension does it break please? It's really shame it doesn't return this info. Can you suggest any other way than meta data of image? I need to automate some stuff and extracting info from image seems really non-standard way of how to do stuff. (actualy cannot do this without some heavy implementation in lib I use) |
Contributor
|
You can use your fork in your app, I don't think it's a big problem
I mean here: return Image.fromarray(show_boxes(image_np, boxes_filt_numpy.astype(int), show_index=True)), ..., boxes_filtturn it into res = Image.fromarray(show_boxes(image_np, boxes_filt_numpy.astype(int), show_index=True))
res.boxes_filt = boxes_filt
return res, ...In apy.py get them by [x.boxes_filt for x in sam_output_mask_gallery[:3]]and dino_output_img.boxes_filt |
Contributor
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
return bounding boxes on dino and sam API