-
Notifications
You must be signed in to change notification settings - Fork 0
Implement User-Defined Feature Extractor Support #17
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: master
Are you sure you want to change the base?
Conversation
| df['id_patient'], df['type'] = zip(*df['file'].apply(extract_tcga_info)) | ||
| else: | ||
| #TODO: This behavior seems dangerous. Shouldn't we have a separated script | ||
| #and describe the input files definition so we don't need to update code |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes I agree, I think we can define id_patient in the dataset class itself.
| # (2, 3, 5) | ||
| # Path to the pickle file containing metadata for the .svs files | ||
| # Example: meta/dhmc_rcc_svs.pickle | ||
| # TODO: This is a saving path, right? We should clarify that this is not input. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, a meta-file is created by 01_get_svs_meta.py and then is used by other pre-processing scripts such as 02_patch_extraction.py
| # (2) | ||
| # Mask magnification for color filtering during patch extraction. | ||
| # A lower magnification will run faster but will be less precise | ||
| #TODO: Ask why this value? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure. Maybe we should give the user a choice to set this value themselves?
adas2125
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes look good. I can work on handling some of the TODO comments as well.
This PR introduces the capability to load custom feature extractors in our model.
Usage: Set the pretrained model path in config.patch.pretrained_model_path. The system handles integration with the base model architecture.