executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
perceptual-similarityRoutes LPIPS image-similarity, BAPPS evaluation, and BAPPS training workflows for the PerceptualSimilarity package.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this skill for the lpips package when the task is about perceptual image similarity, BAPPS scoring, or training the learned metric.
Choose this skill when the request mentions any of the following:
If the task is about generic classification, detection, or segmentation rather than perceptual similarity, route elsewhere.
Install the public package dependencies first:
python -m pip install lpips torch torchvision numpy scipy scikit-image opencv-python matplotlib tqdm
Optional add-ons:
dominate is only needed for the stock repo train.py HTML visualizer path.ipython is only useful for interactive debugging.Run the bundled environment check after installation:
python skills/disco/perceptual-similarity/scripts/check_lpips_env.py
Or do the smallest direct import check:
python -I -c "import lpips; from lpips.lpips import LPIPS; print('lpips ok')"
sub-skills/metric-usage/ — compare image pairs, compare directories, inspect LPIPS maps, and use LPIPS as a loss.sub-skills/bapps-evaluation/ — score 2AFC and JND BAPPS splits with LPIPS, baseline, L2, or SSIM-style metrics.sub-skills/bapps-training/ — train or fine-tune LPIPS on BAPPS-style 2AFC data.assets/examples/ contains copied sample images and tiny directory examples for smoke tests.scripts/make_tiny_bapps_fixture.py creates a tiny BAPPS-style fixture from the bundled examples.scripts/check_lpips_env.py verifies the install, package metadata, and optional backend state.references/repo-provenance.md before deciding whether this skill matches the current checkout.references/troubleshooting.md for install/import, optional dependency, backend, and legacy SSIM issues.lpips.dssim path is broken on current scikit-image releases.train.py.python skills/disco/perceptual-similarity/sub-skills/metric-usage/scripts/compare_images.py --helppython skills/disco/perceptual-similarity/sub-skills/metric-usage/scripts/optimize_lpips.py --helppython skills/disco/perceptual-similarity/sub-skills/bapps-evaluation/scripts/score_bapps.py --helppython skills/disco/perceptual-similarity/sub-skills/bapps-training/scripts/train_bapps.py --helpIf the repository commit, working tree state, or package version no longer match references/repo-provenance.md, refresh the skill before relying on it.