Run this model with HF Jobs
Run RISHIKAMASHETTY/diffusion-models on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/RISHIKAMASHETTY/diffusion-models. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/RISHIKAMASHETTY/diffusion-models on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use RISHIKAMASHETTY/diffusion-models with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use RISHIKAMASHETTY/diffusion-models with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("RISHIKAMASHETTY/diffusion-models", 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
Add SDXL LoRA, data split and results
Browse filesFiles changed (13)
- .gitattributes+5
- sdxl-smoke/README.mdAdded+20
- sdxl-smoke/config.jsonAdded+25
- sdxl-smoke/results/grid.pngAdded
- sdxl-smoke/results/loss_curve.pngAdded
- sdxl-smoke/results/metrics_by_tradition.csvAdded+4
- sdxl-smoke/results/metrics_summary.csvAdded+4
- sdxl-smoke/results/per_image_metrics.csvAdded+13
- sdxl-smoke/results/qualitative/val_00.jpgAdded
- sdxl-smoke/results/qualitative/val_01.jpgAdded
- sdxl-smoke/results/qualitative/val_02.jpgAdded
- sdxl-smoke/results/qualitative/val_03.jpgAdded
- sdxl-smoke/results/training_log.csvAdded+7
32 unmodified lines33343532 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text32 unmodified lines333435363738394032 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -textsdxl-smoke/results/grid.png filter=lfs diff=lfs merge=lfs -textsdxl-smoke/results/qualitative/val_00.jpg filter=lfs diff=lfs merge=lfs -textsdxl-smoke/results/qualitative/val_01.jpg filter=lfs diff=lfs merge=lfs -textsdxl-smoke/results/qualitative/val_02.jpg filter=lfs diff=lfs merge=lfs -textsdxl-smoke/results/qualitative/val_03.jpg filter=lfs diff=lfs merge=lfs -text
1234567891011121314151617181920# SDXL-Inpainting LoRA — damaged Indian painting restoration
Pipeline: damaged image -> YOLOv8s-seg damage mask -> `diffusers/stable-diffusion-xl-1.0-inpainting-0.1` + LoRA (train 768px) -> composite.Masks and the train/val split are the same as the SD-1.5 run (`sd-1.5`), so results are directly comparable.
| Folder | Contents ||---|---|| `lora/` | LoRA weights (`pytorch_lora_weights.safetensors`), load with `pipe.load_lora_weights` || `data/` | `train.csv`, `val.csv`, `split_manifest.csv`, `split_info.json` (mask paths point to the repo folder that holds the PNGs) || `results/` | `training_log.csv`, `loss_curve.png`, `metrics_summary.csv`, `per_image_metrics.csv`, `metrics_by_tradition.csv`, `grid.png`, `qualitative/`, `comparison_sd15_vs_sdxl.csv` (if SD-1.5 results exist) || `config.json` | hyper-parameters and library versions |
Source data: `RISHIKAMASHETTY/indian-paintings-synthetic-damage`. Split grouped by base painting (seed 42, 10% val): 100 train / 20 val.All damage is synthetic. Metrics computed at 512px on 4 held-out val images:
| method | psnr | ssim | lpips | psnr_masked | n_images ||:-----------------|--------:|-------:|--------:|--------------:|-----------:|| baseline_damaged | 27.2385 | 0.9566 | 0.0571 | 33.558 | 4 || sdxl_gt_mask | 28.0778 | 0.9524 | 0.043 | 37.5979 | 4 || sdxl_yolo_mask | 27.6428 | 0.9484 | 0.047 | 36.8708 | 4 |12345678910111213141516171819202122232425{ "SMOKE": true, "SD_ID": "diffusers/stable-diffusion-xl-1.0-inpainting-0.1", "VAE_ID": "madebyollin/sdxl-vae-fp16-fix", "RES": 768, "EVAL_RES": 512, "LORA_RANK": 16, "LR": 0.0001, "BS": 2, "ACCUM": 4, "MAX_STEPS": 8, "P_GT_MASK": 0.3, "MASK_W": 2.0, "INF_STEPS": 30, "GUIDANCE": 5.0, "SEED": 42, "VAL_FRAC": 0.1, "N_EVAL": 4, "compute_dtype": "torch.bfloat16", "torch": "2.14.1+cu130", "diffusers": "0.42.1", "peft": "0.21.2", "gpu": "NVIDIA L4", "python": "3.13.16 (main, Oct 1 2026, 15:40:24) [GCC 13.3.0]"}1234tradition,method,psnr,ssim,lpipsGond,baseline_damaged,27.2385,0.9566,0.0571Gond,sdxl_gt_mask,28.0778,0.9524,0.043Gond,sdxl_yolo_mask,27.6428,0.9484,0.0471234method,psnr,ssim,lpips,psnr_masked,n_imagesbaseline_damaged,27.2385,0.9566,0.0571,33.558,4sdxl_gt_mask,28.0778,0.9524,0.043,37.5979,4sdxl_yolo_mask,27.6428,0.9484,0.047,36.8708,412345678910111213image,tradition,method,psnr,ssim,lpips,psnr_maskedgond17_damaged_4.jpg,Gond,baseline_damaged,30.332074039802215,0.9782823339198132,0.020517297089099884,108.13080360867912gond17_damaged_4.jpg,Gond,sdxl_yolo_mask,29.792315642306363,0.976738186783508,0.021298915147781372,108.13080360867912gond17_damaged_4.jpg,Gond,sdxl_gt_mask,30.332074039802215,0.9782823339198132,0.020517297089099884,108.13080360867912gond17_damaged_1.jpg,Gond,baseline_damaged,18.536645424003908,0.8985729794819122,0.10980672389268875,7.314075628799963gond17_damaged_1.jpg,Gond,sdxl_yolo_mask,19.603481936213814,0.8640707405241078,0.08218064904212952,10.474501823826454gond17_damaged_1.jpg,Gond,sdxl_gt_mask,20.52055849809415,0.8788770629359387,0.0763305127620697,11.08109164431006gond25_damaged_4.jpg,Gond,baseline_damaged,33.13802564590434,0.9758802915544362,0.04727648198604584,11.035796431350697gond25_damaged_4.jpg,Gond,sdxl_yolo_mask,28.478074053656158,0.9684642100968296,0.06553442031145096,9.796229962913932gond25_damaged_4.jpg,Gond,sdxl_gt_mask,27.171912491156718,0.967187205166726,0.05688365921378136,8.64275564100046gond25_damaged_3.jpg,Gond,baseline_damaged,26.9474471067728,0.9734763002064928,0.05066820979118347,7.751185164600251gond25_damaged_3.jpg,Gond,sdxl_yolo_mask,32.697502385650964,0.9842838223130342,0.019066419452428818,19.081551076439553gond25_damaged_3.jpg,Gond,sdxl_gt_mask,34.28674629186807,0.9853565069750756,0.01843130961060524,22.5367822813487781234567step,train_loss,val_loss,lr2,0.019732971384655684,,0.00014,0.02415650941838976,,7.500000000000001e-054,,0.021036691148765385,7.500000000000001e-056,0.02784977317787707,,2.500000000000001e-058,0.047980231924157124,,0.08,,0.021029668976552784,0.0.gitattributes+5
sdxl-smoke/README.mdAdded+20
sdxl-smoke/config.jsonAdded+25
sdxl-smoke/results/grid.pngAdded

Large File Pointer Details
- SHA256: 88be611183f8f13886c71188411b338e5aef673353ced8988efed02697ed90a9
- Pointer size: 132 Bytes
- Size of remote file: 1.81 MB
sdxl-smoke/results/loss_curve.pngAdded

sdxl-smoke/results/metrics_by_tradition.csvAdded+4
sdxl-smoke/results/metrics_summary.csvAdded+4
sdxl-smoke/results/per_image_metrics.csvAdded+13
sdxl-smoke/results/qualitative/val_00.jpgAdded

Large File Pointer Details
- SHA256: 8cca1d5c3130b9dcc8833acfbcc4c163cb426b6f490eff8789e8e13dfda05c4c
- Pointer size: 131 Bytes
- Size of remote file: 614 kB
sdxl-smoke/results/qualitative/val_01.jpgAdded

Large File Pointer Details
- SHA256: e997ba4b3d7077996f7d9b7c27d486d66afb30803e1b2036f902ece8f3647930
- Pointer size: 131 Bytes
- Size of remote file: 634 kB
sdxl-smoke/results/qualitative/val_02.jpgAdded

Large File Pointer Details
- SHA256: 6d7ce82848d0b848fe967b567ec0078a10f76cf4d3ad8c25f64210e54383c680
- Pointer size: 131 Bytes
- Size of remote file: 327 kB
sdxl-smoke/results/qualitative/val_03.jpgAdded

Large File Pointer Details
- SHA256: 984d1d768949a0557c12abd520bd64f0003e5eb39747dcdd7f45ee841b79a8a2
- Pointer size: 131 Bytes
- Size of remote file: 321 kB
sdxl-smoke/results/training_log.csvAdded+7