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
cnnFind duplicate images with CNN encodings, pretrained backbones, or custom PyTorch models in imagededup.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when the user wants CNN-based encodings, cosine-similarity duplicate search, pretrained backbones, or custom PyTorch models.
CNN.MobilenetV3, ViT, or EfficientNet wrapper.CustomModel around a user-defined PyTorch module.CNNCustomModelMobilenetV3, ViT, or EfficientNetmin_similarity_threshold(batch, features).CNN() when the user wants the default MobileNetV3-based workflow.CustomModel when the user wants to plug in a different PyTorch model.encode_image for one file or numpy array.encode_images for a directory.find_duplicates when the user needs the full duplicate map.find_duplicates_to_remove when the user wants a heuristic removal list.CNN uses CUDA automatically when available and otherwise uses CPU.MobilenetV3.ViT and EfficientNet are also bundled.scores=True returns cosine similarities.min_similarity_threshold is a float in [-1.0, 1.0].num_enc_workers only parallelizes encoding on Linux.find_duplicates can accept either image_dir or encoding_map.A custom model should:
The bundled pretrained wrappers already provide matching transforms and names.
CNN() should report cuda as its device.Read references/troubleshooting.md for model-config validation, threshold errors, worker-count warnings, CUDA selection, and weight-download issues.
Run scripts/cnn_smoke.py to exercise a synthetic CNN workflow with either a lightweight custom model or the pretrained default path.
A good CNN-oriented answer should usually include: