-
Notifications
You must be signed in to change notification settings - Fork 0
saliency maps #1
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
src/dataset.py
Outdated
| # Use mri_path if available, otherwise construct from Subject/pat_id | ||
| if 'mri_path' in self.dataframe.columns: | ||
| img_path = str(self.dataframe.loc[idx, 'mri_path']) | ||
| elif 'Subject' in self.dataframe.columns: |
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.
mri_path, Subject, label and Group are column headings/fields in our csv
src/dataset.py
Outdated
| if 'mri_path' in self.dataframe.columns: | ||
| img_path = str(self.dataframe.loc[idx, 'mri_path']) | ||
| elif 'Subject' in self.dataframe.columns: | ||
| # Fallback: use Subject column to construct path |
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.
remove fallback so we dont fail silently
| # Extract the ViT backbone from the BrainIAC model | ||
| vit_model = model.backbone | ||
|
|
||
| success_count = 0 |
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.
simple error counts for batch runs
…ecursive wrapping
Improving saliency map generation via attention for BrainIAC