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
|
Download sdxl-smoke/README.md from RISHIKAMASHETTY/diffusion-models: direct link, hf CLI and curl.
- Browser
- Download file 1.47 kB
-
https://huggingface.co/RISHIKAMASHETTY/diffusion-models/resolve/main/sdxl-smoke/README.md
- Command line
-
hf download hf://RISHIKAMASHETTY/diffusion-models/sdxl-smoke/README.md
-
curl -L -o README.md https://huggingface.co/RISHIKAMASHETTY/diffusion-models/resolve/main/sdxl-smoke/README.md
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 |