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_9", | |
| "kind": "trained", | |
| "note": "9 层 (训练过·标准配色)", | |
| "K": 9, | |
| "n": 80, | |
| "seed": 0, | |
| "miou": 0.5491934098758761, | |
| "per_class": { | |
| "NFL": 0.5004956336356615, | |
| "GCL": 0.4820181340423965, | |
| "IPL": 0.53686103914424, | |
| "INL": 0.4709079601923307, | |
| "OPL/ONL": 0.6971792776511694, | |
| "IS": 0.550607469225885, | |
| "EZ/OS": 0.5477674876267176, | |
| "RPE": 0.4749261353292513, | |
| "choroid": 0.6819775520352327 | |
| }, | |
| "prompt": "Segment this OCT B-scan into 9 retinal layers as a colored visualization. Color mapping: NFL=red, GCL=orange, IPL=yellow, INL=green, OPL/ONL=cyan, IS=blue, EZ/OS=purple, RPE=pink, choroid=brown; background=black." | |
| } |