Diffusers
Safetensors
English
histopathology
he-staining
breast-cancer
diffusion
counterfactuals
explainability
film
conditional-image-generation
Instructions to use a12donhf/CPathOGen with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use a12donhf/CPathOGen with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("a12donhf/CPathOGen", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
|
Download assets/README.md from a12donhf/CPathOGen: direct link, hf CLI and curl.
- Browser
- Download file 965 Bytes
-
https://huggingface.co/a12donhf/CPathOGen/resolve/main/assets/README.md
- Command line
-
hf download hf://a12donhf/CPathOGen/assets/README.md
-
curl -L -o README.md https://huggingface.co/a12donhf/CPathOGen/resolve/main/assets/README.md
965 Bytes
Paper figures
These figures accompany CPathOGen: Spatially and Morphologically Controlled H&E Counterfactuals for Probing Pathology Models, by Samarth Singhal and Varang Rai.
principle.png: rendered from paper Figure 1.pipeline.png: rendered from paper Figure 2.spatial_fidelity.png: assembled from the same tile assets used in paper Figure 3, with matching cell-color legend.morphology_controls.png: assembled from the same tile assets used in paper Figure 4. Dose labels are shortened to standardized control coordinates; eccentricity uses the paper image package's historical absolute-coordinate sweep.
Figure artwork is shared under Creative Commons Attribution 4.0 International. Attribute the authors and indicate changes when adapting the artwork. Third-party datasets retain their original terms. The generator weights remain under their separate CreativeML Open RAIL++-M license.