Instructions to use AtlasAnalyticsLab/AtlasPatch with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sam2
How to use AtlasAnalyticsLab/AtlasPatch with sam2:
# Use SAM2 with images import torch from sam2.sam2_image_predictor import SAM2ImagePredictor predictor = SAM2ImagePredictor.from_pretrained(AtlasAnalyticsLab/AtlasPatch) with torch.inference_mode(), torch.autocast("cuda", dtype=torch.bfloat16): predictor.set_image(<your_image>) masks, _, _ = predictor.predict(<input_prompts>)# Use SAM2 with videos import torch from sam2.sam2_video_predictor import SAM2VideoPredictor predictor = SAM2VideoPredictor.from_pretrained(AtlasAnalyticsLab/AtlasPatch) with torch.inference_mode(), torch.autocast("cuda", dtype=torch.bfloat16): state = predictor.init_state(<your_video>) # add new prompts and instantly get the output on the same frame frame_idx, object_ids, masks = predictor.add_new_points(state, <your_prompts>): # propagate the prompts to get masklets throughout the video for frame_idx, object_ids, masks in predictor.propagate_in_video(state): ... - Notebooks
- Google Colab
- Kaggle
Updated paper information
Browse files
README.md
CHANGED
|
@@ -88,9 +88,8 @@ If you use this model, please cite our paper:
|
|
| 88 |
```bibtex
|
| 89 |
@article{atlaspatch2025,
|
| 90 |
title = {AtlasPatch: An Efficient and Scalable Tool for Whole Slide Image Preprocessing in Computational Pathology},
|
| 91 |
-
author = {Alagha, Ahmed and Leclerc, Christopher and Kotp, Yousef and
|
| 92 |
-
journal = {arXiv},
|
| 93 |
-
year = {2025}
|
| 94 |
-
url = {TODO: coming soon}
|
| 95 |
}
|
| 96 |
```
|
|
|
|
| 88 |
```bibtex
|
| 89 |
@article{atlaspatch2025,
|
| 90 |
title = {AtlasPatch: An Efficient and Scalable Tool for Whole Slide Image Preprocessing in Computational Pathology},
|
| 91 |
+
author = {Alagha, Ahmed and Leclerc, Christopher and Kotp, Yousef and Metwally, Omar and Moras, Calvin and Rentopoulos, Peter and Rostami, Ghodsiyeh 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.},
|
| 92 |
+
journal = {arXiv preprint arXiv:2602.03998},
|
| 93 |
+
year = {2025}
|
|
|
|
| 94 |
}
|
| 95 |
```
|