技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
edge-connect【数据与研究】Route EdgeConnect requests for image inpainting setup, data preparation, training, checkpoint-backed testing, and evaluation.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
EdgeConnect is a generative image inpainting repository built around adversarial edge learning. The practical workflow is:
Use this skill whenever the request names EdgeConnect or refers to the repo's train.py, test.py, config.yml.example, EdgeModel_gen.pth, InpaintingModel_gen.pth, samples/, results/, flist files, masked images, edge maps, or PSNR/SSIM/MAE/FID evaluation on EdgeConnect outputs.
references/repo-provenance.md if you need to know whether this skill matches the current checkout.references/installation.md for the legacy-compatible environment and the recommended smoke check.references/troubleshooting.md for cross-cutting environment, YAML, and checkpoint issues.sub-skills/data-preparation/ — image, mask, and edge layouts; flists; config path validation.sub-skills/training/ — stage selection, checkpoint resume, losses, sampling, and internal validation.sub-skills/testing/ — checkpoint-backed inference, command construction, and checkpoint layout checks.sub-skills/evaluation/ — PSNR/SSIM/MAE/FID scoring and input validation after outputs exist.data-preparation when the user is asking how to lay out images, masks, or edge maps, or how to build and validate file lists.training when the user wants to start, resume, or explain a training run, stage, loss, or checkpoint bundle.testing when the user wants to run test.py, validate checkpoint contents, or construct an inference command.evaluation when the user already has generated outputs and wants pixel metrics or FID input checks.scipy.misc.imread, scipy.misc.imresize, and yaml.load(...) working.references/installation.md.src.config.Config; use a compatible PyYAML version or patch the loader call.train.py --help or test.py --help as side-effect-free smoke checks; use scripts/check_env.py instead.Run the bundled environment checker from a neutral working directory:
python scripts/check_env.py --repo-root <EdgeConnect checkout> --cuda
If you only need CPU importability, omit --cuda. The checker imports the repo modules, instantiates the example config, and performs an optional tiny CUDA allocation when requested.
MODE selects train, test, or eval.MODEL selects edge, inpaint, edge-inpaint, or joint behavior.MASK=6 is the test-only one-to-one mask mode.EDGE=2 means external edge maps are required.config.yml, confirm the stage and GPU list, then launch the right model family.references/installation.md before creating an environment or changing dependency versions.references/troubleshooting.md when import or runtime behavior looks inconsistent with the expected legacy stack.