You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -373,7 +397,7 @@ with h5py.File("output/patches/sample.h5", "r") as f:
373
397
|[`midnight`](https://huggingface.co/kaiko-ai/midnight) ([Training state-of-the-art pathology foundation models with orders of magnitude less data](https://arxiv.org/abs/2504.05186)) | 3072 |
374
398
|[`musk`](https://github.com/lilab-stanford/MUSK) ([MUSK: A Vision-Language Foundation Model for Precision Oncology](https://www.nature.com/articles/s41586-024-08378-w)) | 1024 |
375
399
|[`openmidnight`](https://sophontai.com/blog/openmidnight) ([How to Train a State-of-the-Art Pathology Foundation Model with $1.6k](https://sophontai.com/blog/openmidnight)) | 1536 |
376
-
|[`pathorchestra`](https://huggingface.co/AI4Pathology/PathOrchestra) ([PathOrchestra: A Comprehensive Foundation Model for Computational Pathology with Over 100 Diverse Clinical-Grade Tasks](https://arxiv.org/abs/2503.24345)) |512|
400
+
|[`pathorchestra`](https://huggingface.co/AI4Pathology/PathOrchestra) ([PathOrchestra: A Comprehensive Foundation Model for Computational Pathology with Over 100 Diverse Clinical-Grade Tasks](https://arxiv.org/abs/2503.24345)) |1024|
|[`h0_mini`](https://huggingface.co/bioptimus/H0-mini) ([Distilling foundation models for robust and efficient models in digital pathology](https://doi.org/10.48550/arXiv.2501.16239)) | 1536 |
@@ -480,6 +504,132 @@ We prepared ready-to-run SLURM templates under `jobs/`:
480
504
- Submit with `sbatch jobs/atlaspatch_features.slurm.sh`.
481
505
- Running multiple jobs: you can submit several jobsin a loop (e.g., 50 job using `for i in {1..50};do sbatch jobs/atlaspatch_features.slurm.sh; done`). AtlasPatch uses per-slide lock files to avoid overlapping work on the same slide.
482
506
507
+
## Frequently Asked Questions (FAQ)
508
+
509
+
<details>
510
+
<summary><b>I'm facing an out of memory (OOM) error</b></summary>
511
+
512
+
This usually happens when too many WSI files are open simultaneously. Try reducing the `--max-open-slides` parameter:
513
+
514
+
```bash
515
+
atlaspatch process /path/to/slides --output ./output --max-open-slides 50
516
+
```
517
+
518
+
The default is 200. Lower this value if you're processing many large slides or have limited system memory.
519
+
</details>
520
+
521
+
<details>
522
+
<summary><b>I'm getting a CUDA out of memory error</b></summary>
523
+
524
+
Try one or more of the following:
525
+
526
+
1. **Reduce feature extraction batch size**:
527
+
```bash
528
+
--feature-batch-size 16 # Default is 32
529
+
```
530
+
531
+
2. **Reduce segmentation batch size**:
532
+
```bash
533
+
--seg-batch-size 1 # Default is 1
534
+
```
535
+
536
+
3. **Use lower precision**:
537
+
```bash
538
+
--feature-precision float16 # or bfloat16
539
+
```
540
+
541
+
4. **Use a smaller patch size**:
542
+
```bash
543
+
--patch-size 224 # Instead of 256
544
+
```
545
+
</details>
546
+
547
+
<details>
548
+
<summary><b>OpenSlide library not found</b></summary>
549
+
550
+
AtlasPatch requires the OpenSlide system library. Install it based on your system:
If your format isn't supported, consider converting it to a supported format or [open an issue](https://github.com/AtlasAnalyticsLab/AtlasPatch/issues/new?template=feature_request.md).
617
+
</details>
618
+
619
+
<details>
620
+
<summary><b>How do I skip already processed slides?</b></summary>
621
+
622
+
Use the `--skip-existing` flag to skip slides that already have an output H5 file:
623
+
624
+
```bash
625
+
atlaspatch process /path/to/slides --output ./output --skip-existing
626
+
```
627
+
</details>
628
+
629
+
---
630
+
631
+
Have a question not covered here? Feel free to [open an issue](https://github.com/AtlasAnalyticsLab/AtlasPatch/issues/new) and ask!
632
+
483
633
## Feedback
484
634
485
635
- Report problems via the [bug report template](https://github.com/AtlasAnalyticsLab/AtlasPatch/issues/new?template=bug_report.md) so we can reproduce and fix them quickly.
@@ -488,14 +638,15 @@ We prepared ready-to-run SLURM templates under `jobs/`:
488
638
489
639
## Citation
490
640
491
-
If you use AtlasPatch in your research, please cite it:
641
+
If you use AtlasPatch in your research, please cite our paper:
492
642
493
-
```
494
-
@software{atlaspatch,
495
-
author = {Atlas Analytics Lab},
496
-
title = {AtlasPatch},
643
+
```bibtex
644
+
@article{atlaspatch2025,
645
+
title = {AtlasPatch: An Efficient and Scalable Tool for Whole Slide Image Preprocessing in Computational Pathology},
646
+
author = {Alagha, Ahmed and Leclerc, Christopher and Kotp, Yousef and Abdelwahed, Omar and Moras, Calvin and Rentopoulos, Peter and Rostami, Rose and Nguyen, Bich Ngoc and Baig, Jumanah and Khellaf, Abdelhakim and Trinh, Vincent Quoc-Huy and Mizouni, Rabeb and Otrok, Hadi and Bentahar, Jamal and Hosseini, Mahdi S.},
0 commit comments