Replies: 5 comments
-
I was just coming here to ask the same thing. Searching only for a subset of classes within the images would be extremely beneficial. |
Beta Was this translation helpful? Give feedback.
-
After doing a bit of digging into the code, it looks like modifying the |
Beta Was this translation helpful? Give feedback.
-
My impatience and curiosity got the better of me and I couldn't wait for a solution to this issue, so I figured out a workaround for now that takes the result object from the sliced prediction and filters through all objects, keeping only those in a list you specify. Here is the function, in case you or anybody else is interested:
Admittedly it's not the cleanest, but it does the trick and is at least efficient enough for the time being. It would still be ideal if we could specify the |
Beta Was this translation helpful? Give feedback.
-
In batched_greedy_nmm, line 168
i think you can do some filters here, exclude the small classes or include the large classes |
Beta Was this translation helpful? Give feedback.
-
Unfortunately, it's not supported atm, but it would make a good PR 👍🏻 We are open for PRs. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm wondering if it is possible in the current codebase to postprocess boxes only from a certain subset of classes? In my work, I have some classes which are usually small and close together as well as some large classes which have big distances between them (and may be larger than the patch size used to train the model). Because of this, it would make sense in my case for SAHI to only postprocess boxes of the larger classes, and leave the small, close together class boxes untouched.
Thanks :)
Beta Was this translation helpful? Give feedback.
All reactions