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 examples/paper_tile/morphology.json from a12donhf/CPathOGen: direct link, hf CLI and curl.
- Browser
- Download file 600 Bytes
-
https://huggingface.co/a12donhf/CPathOGen/resolve/main/examples/paper_tile/morphology.json
- Command line
-
hf download hf://a12donhf/CPathOGen/examples/paper_tile/morphology.json
-
curl -L -o morphology.json https://huggingface.co/a12donhf/CPathOGen/resolve/main/examples/paper_tile/morphology.json
600 Bytes
| { | |
| "area_mean": -0.09236620366573334, | |
| "area_var": -0.4095771014690399, | |
| "eccentricity_mean": -1.2148321866989136, | |
| "eccentricity_var": -0.3638562858104706, | |
| "solidity_mean": 1.5003626346588135, | |
| "solidity_var": -1.0003763437271118, | |
| "perimeter_mean": -0.141899973154068, | |
| "perimeter_var": -0.5273236632347107, | |
| "grad_mean": 0.37052053213119507, | |
| "grad_var": 0.22863806784152985, | |
| "r_mean": 0.33253344893455505, | |
| "r_var": 1.0801981687545776, | |
| "g_mean": 0.21002225577831268, | |
| "g_var": 0.5473105311393738, | |
| "b_mean": 0.2969951629638672, | |
| "b_var": 0.6543741822242737 | |
| } | |