fast_validate_ids.py
Experimental
Parallel ID validator using ThreadPoolExecutor. Processes 5,000+ root IDs in under 2 minutes by parallelizing supervoxel lookups, then batching root lookups in a single API call. Uses the accurate supervoxel tracking method (not get_latest_roots).
Usage
python tracer_tools/scripts/fast_validate_ids.py --input ids.txt
python tracer_tools/scripts/fast_validate_ids.py --input ids.txt --output results.txt --workers 20
Known Issues
- No retry logic for transient API failures; a single thread error loses that ID
- Progress reporting is coarse (every 500 IDs)
- High worker count may trigger CAVE API rate limits on some networks