Troubleshooting Guide
Common issues and solutions for the WildDetect monorepo.
Installation Issues
uv command not found
Solution:
# Windows (PowerShell)
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
# Linux/macOS
curl -LsSf https://astral.sh/uv/install.sh | sh
ImportError after installation
Solution:
# Ensure virtual environment is activated
.venv\Scripts\activate # Windows
source .venv/bin/activate # Linux/macOS
# Reinstall in development mode
cd wildetect
uv pip install -e .
GPU and CUDA Issues
CUDA out of memory
Solutions: 1. Reduce batch size:
-
Reduce tile size:
-
Clear GPU cache:
GPU not detected
Check CUDA:
import torch
print(f"CUDA available: {torch.cuda.is_available()}")
print(f"CUDA version: {torch.version.cuda}")
print(f"GPU: {torch.cuda.get_device_name(0)}")
Solutions: 1. Reinstall PyTorch with CUDA:
- Set device explicitly:
Windows-Specific Issues
ProcessPool not supported
Issue: ProcessPoolExecutor doesn't work on Windows
Solution: Package automatically uses ThreadPoolExecutor on Windows
Path issues
Use forward slashes or raw strings:
# Good
path = "D:/data/images"
path = r"D:\data\images"
# Bad
path = "D:\data\images" # Backslashes can cause issues
MLflow Issues
Can't connect to MLflow server
Solutions: 1. Start MLflow server:
-
Check environment variable:
-
Set in
.env:
Model not found in registry
Solutions: 1. List available models:
- Check model name and alias:
Data Loading Issues
Images not found
Solutions: 1. Use absolute paths 2. Check file extensions match 3. Verify directory structure
Annotation format errors
Solutions: 1. Validate COCO format:
- Check bbox coordinates
- Verify image IDs match
Performance Issues
Detection is slow
Solutions: 1. Use GPU if available 2. Increase batch size 3. Use multithreaded pipeline:
High memory usage
Solutions: 1. Enable streaming mode (WilData):
- Process in smaller batches
- Clear cache between batches
DVC Issues
DVC push fails
Solutions: 1. Check remote configuration:
-
Verify credentials:
-
Test connection:
Label Studio Integration
Can't connect to Label Studio
Solutions: 1. Start Label Studio:
- Check API key in
.env:
FiftyOne Issues
FiftyOne app won't launch
Solutions: 1. Check FiftyOne installation:
-
Clear FiftyOne database:
-
Use different port:
Common Error Messages
"No module named 'wildetect'"
Solution: Install in development mode:
"Permission denied"
Solution: Run as administrator or fix permissions:
"Port already in use"
Solution: Kill process using port:
Getting Help
- Check logs: Look in
logs/directory - Enable verbose mode: Add
--verboseflag - GitHub Issues: Report bugs
- Discussions: Ask questions in GitHub Discussions
Debug Mode
Enable debug logging:
Or in Python:
Still having issues? Open an issue on GitHub with:
- Error message
- System info (wildetect info)
- Steps to reproduce
- Relevant configuration files