Skip to content

Conversation

@ss8319
Copy link
Owner

@ss8319 ss8319 commented Nov 24, 2025

Improving saliency map generation via attention for BrainIAC

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:
Copy link
Owner Author

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
Copy link
Owner Author

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
Copy link
Owner Author

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

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.

2 participants