1import torch
2from diffusers import StableDiffusionPipeline
3
4model_id = "hcarrion/cutaneous_T-cell_lymphoma"
5pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
6pipe = pipe.to("cuda")
7
8prompt = "a photo of a skin lesion of <cutaneous_T-cell_lymphoma-class> on dark skin"
9image = pipe(prompt).images[0]
10image.save("synthetic_lesion.png")
1@inproceedings{carrion2026cgddi,
2 title = {Controllable Generation of Diverse Dermatological Imagery for Fair and Efficient Malignancy Classification},
3 author = {Carri{\'o}n, H{\'e}ctor and Norouzi, Narges},
4 booktitle = {Medical Image Computing and Computer-Assisted Intervention (MICCAI)},
5 year = {2026},
6 publisher = {Springer},
7 series = {Lecture Notes in Computer Science}
8}