Skip to content
Back to skills

Image Diffusion

ASecurity

"Operate 2D image DDPM/DDIM workflows with

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 8, 2026
code-qualitydebuggingapi

Works with

  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill image-diffusion --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Image Diffusion?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Image Diffusion
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-image-diffusion/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-image-diffusion)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: image-diffusion
description: "Operate 2D image DDPM/DDIM workflows with
  denoising-diffusion-pytorch Unet, GaussianDiffusion, Dataset, Trainer, FID,
  and RePaint guidance."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# Image Diffusion

Use this sub-skill for 2D image diffusion tasks with `denoising-diffusion-pytorch` (`denoising_diffusion_pytorch` import), inspected at version 2.3.1.

## Route here for

- Building a 2D `Unet` and `GaussianDiffusion` for DDPM or DDIM image loss and sampling.
- Adapting the README-style image tensor recipe into a tiny CPU or CUDA smoke check.
- Using the folder `Dataset` and `Trainer` for image-folder training.
- Explaining `calculate_fid`, `FIDEvaluation`, and `save_best_and_latest_only` behavior.
- Using the RePaint module for mask + ground-truth image inpainting / resampling guidance.
- Debugging image shape, channel, schedule, sampling, Trainer, FID, or optional flash-attention failures.

## Route elsewhere

- 1D sequence APIs (`Unet1D`, `GaussianDiffusion1D`, `Dataset1D`, `Trainer1D`) -> [../sequence-diffusion/SKILL.md](../sequence-diffusion/SKILL.md).
- Classifier-free guidance, external classifier guidance, and `XMWrapper` -> [../conditioning-guidance/SKILL.md](../conditioning-guidance/SKILL.md).
- Karras, continuous-time, EDM, simple diffusion, learned variance, weighted objective, and other advanced variants -> [../advanced-variants/SKILL.md](../advanced-variants/SKILL.md).

## Operating map

1. For import paths, constructor contracts, parameter constraints, and FID/RePaint API notes, read [references/api-reference.md](references/api-reference.md).
2. For safe setup, image loss/sample smoke, Trainer setup, DDPM vs DDIM sampling, interpolation, FID, and RePaint workflows, read [references/workflows.md](references/workflows.md).
3. For common failure diagnosis, read [references/troubleshooting.md](references/troubleshooting.md).
4. To verify an installed package without training or downloads, run [scripts/smoke_image_diffusion.py](scripts/smoke_image_diffusion.py) from any working directory after installing the package.

## Safe defaults

Prefer tiny smoke settings before any real training: `dim=8`, `dim_mults=(1,)`, `channels=1`, `image_size=8`, `timesteps=8`, `sampling_timesteps=4`, `beta_schedule='sigmoid'`, `flash_attn=False`, and random tensors in `[0, 1]`. These defaults exercise loss and DDIM sampling without training or dataset access.

Files in this skill

  • SKILL.md2.4 KB
  • references/api-reference.md5 KB
  • references/troubleshooting.md3 KB
  • references/workflows.md4.5 KB
  • scripts/smoke_image_diffusion.py4.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.