voxel51/fiftyone-skills/fiftyone-find-duplicates
Claude Code and agent skill by voxel51/fiftyone-skills
- community
Checking that the SKILL.md file is still in the repository.
Finds duplicate or near-duplicate images in FiftyOne datasets using brain similarity computation. Use when deduplicating datasets, finding similar images, or removing redundant samples.
Install
npx vskill@latest install voxel51/fiftyone-skills/fiftyone-find-duplicatesSKILL.md
The same SKILL.md was published earlier as voxel51/fiftyone-skills/fiftyone-find-duplicates.
Find Duplicates in FiftyOne Datasets
Key Directives
ALWAYS follow these rules:
1. Set context first
2. Launch FiftyOne App
Brain operators are delegated and require the app:
Wait 5-10 seconds for initialization.
3. Discover operators dynamically
4. Compute embeddings before finding duplicates
5. Close app when done
Complete Workflow
Step 1: Setup
Step 2: Verify Brain Plugin
Step 3: Discover Brain Operators
Step 4: Compute Similarity
Resolve the operator schema with your chosen model and backend to check required parameters; the schema can change based on these selections.
Step 5: Find Near Duplicates
Threshold guidelines (distance-based, lower = more similar):
0.1= Very similar (near-exact duplicates)0.3= Near duplicates (recommended default)0.5= Similar images0.7= Loosely similar
This operator creates two saved views automatically:
near duplicates: all samples that are near duplicatesrepresentatives of near duplicates: one representative from each group
Step 6: View Duplicates in App
After finding duplicates, use set_view to display them in the FiftyOne App:
If set_view reports that an App execution context is unavailable, tell the user to select “near duplicates” from the saved-view dropdown in the FiftyOne App.
Option A: Load saved view (if available)
Option B: Clear filter to show all samples
Use the saved views created by the operator to review duplicates; do not assume a near_dup_id field exists.
Step 7: Delete Duplicates
Option A: Use deduplicate operator (keeps one representative per group)
Option B: Manual deletion from App UI
- Open the
near duplicatessaved view from the App's saved-view dropdown - Review samples in the App at http://localhost:5151/
- Select samples to delete
- Use the delete action in the App
Step 8: Clean Up
Available Tools
Session View Tools
| Tool | Description | |
|---|---|---|
set_view(exists=[...]) | Filter samples where field(s) have non-None values | |
set_view(filters={...}) | Filter samples by exact field values | |
set_view(tags=[...]) | Filter samples by tags | |
set_view(sample_ids=[...]) | Select specific sample IDs | |
set_view(view_name="...") | Load a saved view by name | |
clear_view() | Clear filters, show all samples |
Brain Operators for Duplicates
Use list_operators() to discover and get_operator_schema() to see parameters:
| Operator | Description | |
|---|---|---|
@voxel51/brain/compute_similarity | Compute embeddings and similarity index | |
@voxel51/brain/find_near_duplicates | Find near-duplicate samples | |
@voxel51/brain/deduplicate_near_duplicates | Delete duplicates, keep representatives | |
@voxel51/brain/find_exact_duplicates | Find exact duplicate media files | |
@voxel51/brain/deduplicate_exact_duplicates | Delete exact duplicates | |
@voxel51/brain/compute_uniqueness | Compute uniqueness scores |
Common Use Cases
Use Case 1: Remove Exact Duplicates
For accidentally duplicated files (identical bytes):
Use Case 2: Find and Review Near Duplicates
For visually similar but not identical images:
Use Case 3: Sort by Similarity
Find images similar to a specific sample:
Troubleshooting
Error: "No executor available"
- Cause: Delegated operators require the App executor for UI triggers
- Solution: Direct user to App UI to view results and complete deletion manually
- Affected operators:
find_near_duplicates,deduplicate_near_duplicates
Error: "Brain key not found"
- Cause: Embeddings not computed
- Solution: Run
compute_similarityfirst with abrain_key
Error: "Operator not found"
- Cause: Brain plugin not installed
- Solution: Install with
download_plugin()andenable_plugin()
Error: "Missing dependency" (e.g., torch, tensorflow)
- The MCP server detects missing dependencies automatically
- Response includes
missing_packageandinstall_command - Example response:
``json { "error_type": "missing_dependency", "missing_package": "torch", "install_command": "pip install torch" } ``
- Offer to run the install command for the user
- After installation, restart MCP server and retry
Similarity computation is slow
- Use faster model:
mobilenet-v2-imagenet-torch - Use GPU if available
- Process large datasets in batches
Best Practices
- Discover dynamically - Use
list_operators()andget_operator_schema()to get current operator names and parameters - Start with default threshold (0.3) and adjust as needed
- Review before deleting - Direct user to App to inspect duplicates
- Store embeddings - Reuse for multiple operations via
brain_key - Handle executor errors gracefully - Guide user to App UI when needed
Performance Notes
Embedding computation time:
- 1,000 images: ~1-2 minutes
- 10,000 images: ~10-15 minutes
- 100,000 images: ~1-2 hours
Memory requirements:
- ~2KB per image for embeddings
- ~4-8KB per image for similarity index
Resources
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/fiftyone-find-duplicates/SKILL.md
Popularity
- Repository stars
- 36
- Repository forks
- 7
- 7-day trend score
- 18
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 16 Mar 2026, 8 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/voxel51/fiftyone-skills/fiftyone-find-duplicates)