-
Notifications
You must be signed in to change notification settings - Fork 9
Add inference ability for custom features classifier. #47
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
base: main
Are you sure you want to change the base?
Conversation
Hi @haesleinhuepf, would you like to take a look at this one? |
Hey @daviddaytw Yes! Just give me some days. I'm travelling. ;-) |
@haesleinhuepf Any thoughts on this one? |
Hi @daviddaytw , I haven't found the time yet to test this. Out of curiousity: If you press the inference button, there is no mechansim checking that the same columns are selected, or? We definitely have to write something in the documentation (readme.md) to make this modification useful for others. Thanks fo your time! Best, |
Also, it should be possible to read out the features of a classifier and use this list instead of a user-selection: https://github.com/haesleinhuepf/apoc/blob/fcec43837445514eebe6897376465867bf450045/apoc/_table_row_classifier.py#L57 Or we check if the user selection is identical with that list... No sure how to deal with this. Opinions welcome! |
Hi @haesleinhuepf, Thank you for your feedback. There is no mechanism for checking that the same columns are selected, but I think having that is a good idea. In this case, I suggest using two QT boxes, one for training and one for inferencing. Do you think this is a good approach? Best, |
Yes, that makes sense! Plus: I presume a QWidget is not even necessary if this pattern can be applied to object classification: Lines 83 to 92 in a094823
|
Hi @haesleinhuepf, Thank you for the insight. I see the reason you want to implement it following the pattern of other functions in The primary issue is the file selection options. I think the best way is to have two boxes in the custom feature classifier panel. If you agree with this, I can go ahead and implement it. Best, |
Do you think this |
Hi @haesleinhuepf , I added a function and reverted the custom feature classifier widget modification. Best, |
Hi,
Thank you for creating such a valuable tool! My team and I have been using the custom features classifier widget to classify nuclei, and we've found it very effective. However, we needed to apply our trained model across multiple images, which isn’t currently supported in napari-apoc. To address this, I forked the repository and added the functionality, and I thought others might benefit from it as well, so I've submitted a PR for your review.
Thank you for considering this addition, and please let me know if there's anything further I can do to improve it!
Best,
David