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.
RISHIKAMASHETTY's picture
Add SDXL LoRA, data split and results
439a933 verified
|
Raw History Blame Contribute Delete
1.47 kB
# 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 |