Diffusers
ophthalmology
OCT
fundus
medical-imaging
diffusion
stable-diffusion-3
segmentation
instruction-tuning
Instructions to use MaybeRichard/OCTFlow with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use MaybeRichard/OCTFlow with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("MaybeRichard/OCTFlow", 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
OCTFlow 2026-06-10: base_v2+stageA_v3+v3b2 (stripped) + results bundle (report/figs/manuscript)
1fe9f75 verified | { | |
| "condition": "trained_3", | |
| "kind": "trained", | |
| "note": "3 层 (训练过)", | |
| "K": 3, | |
| "n": 80, | |
| "seed": 0, | |
| "miou": 0.5676611035267873, | |
| "per_class": { | |
| "inner retina": 0.5124880347013073, | |
| "outer retina": 0.47571638597895644, | |
| "RPE-choroid": 0.7147788899000982 | |
| }, | |
| "prompt": "Segment this OCT B-scan into 3 retinal layers as a colored visualization. Color mapping: inner retina=red, outer retina=orange, RPE-choroid=yellow; background=black." | |
| } |