Replies: 6 comments
-
Hi @SevenFoldDeep 👋 Thanks for the suggestion! Just to make sure, you are referring to generate a batch of CAMs with the same output class index? If you have a small snippet of code sample you have in mind about what you'd like, that would be great! |
Beta Was this translation helpful? Give feedback.
-
Hey, thanks for the response. I thought it would be nice to be able to pass a batch of images to the network, and from the resulting output, get the CAMs for each of the images in the batch, regardless of the output class index. I guess the class indices could be given as a list or tensor such that each element in the list corresponds to one image in the batch. Here is a code snippet of how that work flow would look like:
I guess this would work easiest in a single label classification problem, but maybe it's also possible to have it work for multi-label classification, and then the preds would look something like this
Maybe you have some better ideas though how the multi-label could be programmed. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the detailed explanation! So there are two things to consider here:
But for the first part, I can try coming up with something that would work 👌 Let me know what you think! |
Beta Was this translation helpful? Give feedback.
-
@SevenFoldDeep any thoughts? :) |
Beta Was this translation helpful? Give feedback.
-
Moving this to discussion as it's not an issue per-se! |
Beta Was this translation helpful? Give feedback.
-
Hi @SevenFoldDeep 👋 FYI, I just merged #143 which should be of interest to you ;) |
Beta Was this translation helpful? Give feedback.
-
🚀 Feature
Currently when I use this package, I can only feed a single image through the network at a time in order to process a CAM. However, it would be greatly beneficial to me if I could pass an entire batch of images through the network and obtain a batch of CAMs. This would greatly speed up my processing time, as I am using the CAMs as supervision for a segmentation branch, and at the moment am building a batch of CAMs one at a time (very slow).
I could possibly look into how this could be implemented myself, but since you are more familiar with your own code then maybe you already have an idea of how this could be implemented.
Beta Was this translation helpful? Give feedback.
All reactions