Instructions to use R-J/StainFuser with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use R-J/StainFuser with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("R-J/StainFuser", 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
Update README.md
Browse files
README.md
CHANGED
|
@@ -17,6 +17,7 @@ Repo containing model weights from the [paper](https://arxiv.org/abs/2403.09302)
|
|
| 17 |
- training: contains SD per-trained weights for backbone initialistaion in training
|
| 18 |
|
| 19 |
### Citation
|
|
|
|
| 20 |
@misc{jewsbury2024stainfuser,
|
| 21 |
title={StainFuser: Controlling Diffusion for Faster Neural Style Transfer in Multi-Gigapixel Histology Images},
|
| 22 |
author={Robert Jewsbury and Ruoyu Wang and Abhir Bhalerao and Nasir Rajpoot and Quoc Dang Vu},
|
|
|
|
| 17 |
- training: contains SD per-trained weights for backbone initialistaion in training
|
| 18 |
|
| 19 |
### Citation
|
| 20 |
+
```
|
| 21 |
@misc{jewsbury2024stainfuser,
|
| 22 |
title={StainFuser: Controlling Diffusion for Faster Neural Style Transfer in Multi-Gigapixel Histology Images},
|
| 23 |
author={Robert Jewsbury and Ruoyu Wang and Abhir Bhalerao and Nasir Rajpoot and Quoc Dang Vu},
|