Skip to content
Back to skills

Training

ASecurity

Configure and run DeblurGAN training, checkpoints, and loss selection.

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 8, 2026
tools

Security analysis

A100/100

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

Scanned September 8, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Training?

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

Security grade badge for Training
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-training-eee8af93/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-training-eee8af93)

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: training
description: "Configure and run DeblurGAN training, checkpoints, and loss selection."
metadata:
  disco-role: operating
disable-model-invocation: true
license: NOASSERTION
---

# training

Use this sub-skill when the task is to configure, start, resume, or smoke-test DeblurGAN training.

## What this route covers

- The training loop, optimizer setup, checkpoint saving, and learning-rate decay.
- Generator, discriminator, and loss-selection choices.
- Residual learning and the paper-style perceptual-loss path.
- Safe smoke-mode execution for verification or troubleshooting.
- The portable wrapper that replaces the source script's hardcoded local overrides.

## Read this when the user asks for

- A command to train on a new paired dataset.
- Help choosing `content_gan`, `pix2pix`, `gan`, `lsgan`, or `wgan-gp` settings.
- Advice on checkpoint names, resume behavior, or output locations.
- A minimal training smoke run that does not depend on the source repository's hardcoded data path.

## Primary files

- `scripts/run_training.py` — portable wrapper around the repository's training loop.
- `references/workflows.md` — recommended training flags, checkpoint layout, and smoke mode.
- `references/troubleshooting.md` — CUDA, VGG19, visdom, and checkpoint failures.

## Workflow summary

1. Confirm that the paired training data is ready.
2. Choose the loss/model combination:
   - `model=content_gan` uses perceptual loss on VGG19 features.
   - `model=pix2pix` uses an L1 content loss.
   - `gan_type` selects the discriminator loss family.
3. Use the bundled wrapper instead of the source `train.py` so the run is not tied to a hardcoded local dataroot.
4. Keep the checkpoint directory writable and create it before the run begins.
5. For quick validation, use the wrapper's smoke options to cap the number of optimization steps.

## Decision points

- If the task is only about preparing the dataset, route back to the data-preparation sub-skill.
- If the task is only about restoring a single image, route to inference.
- If the caller wants the paper-style setup, prefer the CUDA path and the perceptual-loss route.
- If the caller wants a lightweight sanity run, prefer the wrapper's headless smoke mode and a tiny step cap.

## Important reminders

- The source `train.py` hardcodes a local dataroot and several option overrides. Do not preserve those values in the reusable wrapper.
- The perceptual-loss path requires CUDA because the implementation moves the VGG19 feature extractor to GPU.
- Live plotting is optional; do not block training guidance on visdom unless the user explicitly wants interactive plots.

## Cross-links

- Read the root installation reference before training if torch or CUDA is missing.
- Read the root troubleshooting reference for the paper-vs-source `gan_type` mismatch.
- Read the data-preparation sub-skill before launching the training loop.

Files in this skill

  • SKILL.md2.9 KB
  • references/troubleshooting.md2.6 KB
  • references/workflows.md2.2 KB
  • scripts/run_training.py4.3 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.