fix: add dedicated glaucoma detection endpoint with separate model#58
Open
Siddh2024 wants to merge 3 commits into
Open
fix: add dedicated glaucoma detection endpoint with separate model#58Siddh2024 wants to merge 3 commits into
Siddh2024 wants to merge 3 commits into
Conversation
Owner
|
@Siddh2024 go through the weights available in discussion page and show me logs after tests of this addition of glaucoma model on scans. |
Owner
|
it's confusing to me why we adding it fully separate model even we can add this into existing model in combination of resnet-50. what's POV behind separate work? |
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.
Fixes #56
Description
Added a fully separate glaucoma detection pathway to prevent the glaucoma endpoint from loading cataract-trained or brain-tumor model weights. The glaucoma model is loaded from its own dedicated file path (glaucoma_model.h5 by default, configurable via GLAUCOMA_MODEL_PATH env var) and never shares weights with any other condition model.
Changes
Why this fixes #56
The original issue stated the glaucoma endpoint loaded catract_model.pth - the same weights used for cataract predictions. This PR ensures the glaucoma endpoint uses a dedicated model loaded from its own file path, making predictions meaningful and condition-specific.