Skip to content

Conversation

@ntomita
Copy link
Contributor

@ntomita ntomita commented Jan 18, 2024

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.

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
Copy link
Collaborator

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.
Copy link
Collaborator

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?
Copy link
Collaborator

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?

Copy link
Collaborator

@adas2125 adas2125 left a 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants