计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
model-inference【效率与协作】Set up iGAN pretrained DCGAN artifacts, choose model zoo entries, build sample-generation commands, and use dcgan_theano.Model API facts safely.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is about loading or selecting iGAN pretrained
DCGAN models, planning model artifact downloads, building the standalone sample
command, or understanding the dcgan_theano.Model inference API without opening
the source checkout.
*.dcgan_theano model file should live before running iGAN.dcgan_theano.Model construction, generation, transforms, and output
shapes.cnn, opt, or cnn_opt
solvers belong in image-projection.dcgan_theano../models/<model_name>.dcgan_theano.<model_name>_dcgan_theano_samples.png.196 images in batches of 49, then
arranges them as a 14 x 14 grid.Use one of these canonical pretrained names unless you intentionally add a new compatible config and model artifact:
| Model name | Channels | Notes |
|---|---|---|
outdoor_64 | 3 | 64x64 landscape model. |
church_64 | 3 | 64x64 LSUN church model. |
handbag_64 | 3 | 64x64 handbag model. |
shoes_64 | 3 | 64x64 shoe-photo model. |
hed_shoes_64 | 1 | 64x64 shoe-sketch/HED model; often paired with UI shadow mode. |
For architecture and transform details, read references/api-reference.md. For model setup and sample workflows, read references/model-workflows.md.
THEANO_FLAGS; otherwise keep the command as a reproducible handoff.scripts/igan_artifact_urls.py prints the model artifact URL, expected target
path, optional preview-sample URLs, and a missing/present status check. It does
not download or modify files.scripts/build_model_command.py prints a reproducible command and environment
plan equivalent to the standalone sample script. It can also report whether
the planned model file is currently present.Example dry plan for a missing artifact:
python sub-skills/model-inference/scripts/igan_artifact_urls.py outdoor_64 --check-existing
Example dry sample command with explicit paths:
python sub-skills/model-inference/scripts/build_model_command.py \
--model_name shoes_64 \
--model_file models/shoes_64.dcgan_theano \
--output_image outputs/shoes_grid.png \
--check-model
A healthy dry-run handoff includes:
model_name matches a known model-zoo/config entry or the user explicitly
allowed a custom name.model_type is dcgan_theano unless the task is about extending the backend..dcgan_theano and follows the default convention
unless a custom file is supplied.THEANO_FLAGS for GPU use or clearly states that flags
were intentionally omitted.--check-model reports present before actual generation, or reports
missing with the artifact planner command needed to obtain the URL.The original sample workflow is a valuable native verification candidate, but it is not a safe default check. It imports Theano, compiles a generator, loads a pickle-like model file, uses CUDA/cuDNN in the documented setup, imports OpenCV, and writes an image. Treat successful dry command generation as static planning, not proof that the legacy model can run on the current machine.
<model_name>.dcgan_theano target.hed_shoes_64: verify that downstream workflows
expect a one-channel model and route UI shadow behavior to the UI sub-skill.When asked to produce a model-inference handoff, return the chosen model name, model type, planned model file, artifact URL and target, command/env plan, expected output image, whether the file exists, whether native execution was actually attempted, and unresolved runtime blockers. Do not claim a download, GPU compile, or sample image was produced unless that command was explicitly run and verified.