Add GrandQC slide quality control notebook for IDC DICOM WSI#105
Draft
fedorov wants to merge 3 commits into
Draft
Add GrandQC slide quality control notebook for IDC DICOM WSI#105fedorov wants to merge 3 commits into
fedorov wants to merge 3 commits into
Conversation
Demonstrates end-to-end use of GrandQC with NCI Imaging Data Commons: - Discover H&E slides via idc-index sm_index metadata - Patch GrandQC scripts for native DICOM directory support via OpenSlide 4.0 - Download TCGA-BRCA DICOM series and run tissue detection + artifact segmentation - Visualize results using GrandQC's own wsi_colors.py palette - Validate the DICOM-based pipeline against GrandQC's pre-computed TCGA masks (zenodo.org/records/14041578) by comparing per-class artifact fractions Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
main.py loads a fully-pickled QC model via torch.load(), which fails with exit code 1 under PyTorch >=2.6 (weights_only=True default). Patch the load to weights_only=False so the trusted Zenodo weights unpickle. Also add [i/N] progress reporting and a failure guard that records per-slide errors and exits non-zero, so the notebook surfaces failures the loop used to swallow. Add grandqc_slide_quality_resolution_notes.md documenting the model working resolution (MPP 1.5) vs. the fixed 512x512 input tile, how MPP is read from openslide.mpp-x (DICOM PixelSpacing), and an empirical confirmation on an IDC slide; link it from the Part 4 intro. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Clone the fedorov/grandqc idc-dicom-fixes branch, which carries the DICOM-directory, device-detection, PyTorch >=2.6 load, small-slide overlay, and fail-loud fixes as proper commits. Replace the in-notebook patch_grandqc_for_dicom() cell with a verification cell that asserts the fixes are present in the cloned scripts, and update Part 2 prose plus the resolution notes accordingly. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Demonstrates end-to-end use of GrandQC with NCI Imaging Data Commons: