Skip to content
Back to skills

Inference

ASecurity

Restore single images from DeblurGAN checkpoints and export HTML results.

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • 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 inference --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Inference?

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

Security grade badge for Inference
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-inference-5724b748/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-inference-5724b748)

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: inference
description: "Restore single images from DeblurGAN checkpoints and export HTML results."
metadata:
  disco-role: operating
disable-model-invocation: true
license: NOASSERTION
---

# inference

Use this sub-skill when the task is to restore or inspect images with a trained DeblurGAN checkpoint.

## What this route covers

- Single-image inference with `model=test` and `dataset_mode=single`.
- Checkpoint lookup and result-directory layout.
- HTML output generation for restored images.
- CPU fallback for inference with `--gpu_ids -1`.
- A wrapper that avoids the source script's brittle external `ssim` import path.

## Read this when the user asks for

- A command to deblur one image folder with a trained checkpoint.
- Help finding `latest_net_G.pth` or choosing the right epoch label.
- A safe CPU inference command.
- A way to inspect or save the generated HTML results.

## Primary files

- `scripts/run_inference.py` — portable wrapper around the repository's test-time pipeline.
- `references/workflows.md` — command patterns, result paths, and CPU fallback notes.
- `references/troubleshooting.md` — checkpoint, import, and folder-layout failures.

## Workflow summary

1. Point the run at a folder of standalone images.
2. Choose the checkpoint directory and epoch label.
3. Use `model=test` with `dataset_mode=single` and, for headless runs, `--gpu_ids -1`.
4. Save the generated HTML and PNGs under the results directory.
5. If you want a smoke-style run, keep `how_many` small and use a tiny image folder.

## Decision points

- If the task is about building the dataset rather than restoring images, route back to data-preparation.
- If the task is about optimizing weights or resuming training, route to training.
- If the user wants the exact source `test.py` behavior, remember that the shipped script imports `ssim` directly; the wrapper avoids that brittle path.

## Important reminders

- The inference wrapper creates the checkpoint directory before the visualizer is constructed.
- The wrapper defaults to a headless-friendly display setting so the run does not depend on visdom.
- The repository's `TestModel` expects `single` dataset mode and a generator checkpoint with the requested epoch label.

## Cross-links

- Read the root installation reference if torch, torchvision, or the optional compatibility packages are missing.
- Read the root troubleshooting reference for checkpoint naming and source-script mismatches.
- Read the data-preparation sub-skill first if you still need to build the input image folder.

Files in this skill

  • SKILL.md2.5 KB
  • references/troubleshooting.md2.3 KB
  • references/workflows.md1.7 KB
  • scripts/run_inference.py2.7 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.