Skip to content
Back to skills

Inference And Demo

ASecurity

Runs AnyDoor image generation, demo, and prediction workflows.

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

Works with

  • api

Security analysis

A100/100

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

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill inference-and-demo --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Inference And Demo?

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

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

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-and-demo
description: "Runs AnyDoor image generation, demo, and prediction workflows."
metadata:
  disco-role: operating
disable-model-invocation: true
license: MIT
---

# Inference and Demo

Use this sub-skill when the task is about generating a customized image,
launching the local Gradio demo, or understanding the prediction interface.

## What this sub-skill owns

- Single-image AnyDoor inference.
- VITON-HD-style batch inference.
- Mask and image validation before generation.
- Local Gradio launch behavior and interactive options.
- Cog / Replicate-style prediction input and output contracts.

## What this sub-skill does not own

- Environment installation and checkpoint patching.
- Dataset format design or training data preparation.
- Weight conversion and training launch details.

Route those to the sibling sub-skills.

## Read first

- `../../references/overview.md`
- `../../references/checkpoints-and-configs.md`
- `../../references/troubleshooting.md`
- `references/inference-workflows.md`
- `references/mask-and-image-formats.md`
- `references/demo-and-cog-deployment.md`
- `references/troubleshooting.md`

## Use these scripts

- `scripts/validate_inference_inputs.py` to check image and mask pairs.
- `scripts/run_inference_checked.sh` to validate a repo root before running the
  source inference entry point.
- `scripts/launch_gradio_checked.sh` to validate the same prerequisites before a
  local demo launch.

## Trigger phrases

This is usually the right branch when the user says things like:

- “Generate from this reference object.”
- “How do I run inference on a single image?”
- “I need VITON-HD results.”
- “Launch the local demo.”
- “What does the Cog predictor expect?”
- “Why is my mask or crop wrong?”
- “Can the demo refine the reference mask?”

## Input contract

The main generation route expects:

- a reference image,
- a reference mask or alpha channel,
- a target/background image,
- a target mask,
- and the patched AnyDoor / DINOv2 checkpoints.

The preprocessing contract is mask-aware:

- masks must be non-empty,
- masks must match the image size you intend to use,
- and masks should be binary by the time they reach the generation step.

## Output contract

A successful generation route should explain:

- where the customized image is saved,
- whether the result is a single image or a composite visualization,
- which guidance, strength, and step settings were used,
- and whether the output comes from the standard or shape-control path.

## Default workflow order

1. Run the environment preflight from `setup-and-checkpoints` if you have not
   already done so.
2. Validate the input images and masks.
3. Confirm the checkpoints are patched and accessible.
4. Run the generation or demo launch command.
5. If the result is wrong, inspect the mask and crop assumptions before changing
   model settings.

## Common decisions

- **Reference image has alpha**: derive the reference mask from alpha when that
  is the cleanest representation.
- **Separate reference mask exists**: prefer explicit validation over guessing.
- **Interactive mask refinement**: treat it as optional and explain the weight
  requirement.
- **Shape control**: explain that it changes how the target mask influences the
  collage path.
- **Cog deployment**: document the download/cache assumption so the user knows
  when offline use will fail.

## Troubleshooting focus

This branch owns symptoms such as:

- empty or non-binary masks,
- wrong crop placement,
- target/reference mask dimension mismatches,
- checkpoint placeholders that were never patched,
- demo launch issues,
- Cog network download failures,
- and generation failures that are really data-shape problems.

## Handy reminders

- The runtime defaults in the source scripts use 512x512 generation space.
- Guidance scale and DDIM steps are part of the user-facing API; document them.
- The local demo is intentionally coarse-mask sensitive.
- A successful import check does not prove the generation path is ready.

## Cross-links

When the issue is actually about setup or checkpoints, route back to
`setup-and-checkpoints`.
When the issue is about dataset layout, route to `data-and-training`.

## Quality bar

A future agent should be able to answer generation and demo questions from this
branch alone, plus the bundled references and validation scripts, without
reopening the source repository.

Files in this skill

  • SKILL.md4.3 KB
  • references/demo-and-cog-deployment.md1.6 KB
  • references/inference-workflows.md2.2 KB
  • references/mask-and-image-formats.md1.9 KB
  • references/troubleshooting.md1.4 KB
  • scripts/launch_gradio_checked.sh976 B
  • scripts/run_inference_checked.sh970 B
  • scripts/validate_inference_inputs.py4.4 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.