-
Notifications
You must be signed in to change notification settings - Fork 58
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
Batch-aware loss function? #43
Comments
Hiya @yassineAlouini , what you suggested should work! It might be a bit slow, and the learning rate might need to be adjusted. LCFCN does not work natively with batch sizes larger than one, mainly because the watershed algorithm does not support more than one image. If there is a Pytorch-based watershed method, then we could incorporate it and make LCFCN support larger batches. Thanks for the nice, concise code in making the code support batches larger than 1. |
Indeed, watershed is probably the limiting part for now. I will have a look at a pytorch implementation and update with more details. Thanks for the quick feedback. |
I have found this: https://paperswithcode.com/paper/deep-watershed-transform-for-instance. Not sure how useful it could be, I probably need some exploration to see if we can extract the watershed part of it. Here is a Pytorch implementation: https://github.com/timothyn617/watershed-transform |
As far as I my understanding goes, the lcfcn loss works with one sample per batch. Is that really the case?
If so, how hard would it be to adapt it to more than one sample per batch?
I have tried this code:
Could that work? 🤔
Thanks for any help!
The text was updated successfully, but these errors were encountered: