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:
-
Reduce batch size:
processing:
batch_size: 16 # Reduce from 32 -
Reduce tile size:
processing:
tile_size: 640 # Reduce from 800 -
Restart your terminal session or use a smaller tile size to free up memory.
GPU not detected
Check CUDA with CLI:
wildetect info
Solutions:
-
Reinstall PyTorch with CUDA:
uv pip install torch torchvision --index-url https://download.pytorch.org/whl/cu118 -
Set device explicitly:
model:
device: "cuda:0"
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 escaped backslashes in config files:
# Good
path: "D:/data/images"
path: "D:\\data\\images"
MLflow Issues
Can't connect to MLflow server
Solutions:
-
Start MLflow server:
scripts\launch_mlflow.bat -
Check environment variable:
echo %MLFLOW_TRACKING_URI%
# Should be: http://localhost:5000 -
Set in
.env:MLFLOW_TRACKING_URI=http://localhost:5000
Model not found in registry
Solutions:
-
List available models:
mlflow models list -
Check model name and alias:
model:
mlflow_model_name: "detector" # Check this is correct
mlflow_model_alias: "production" # or version number
Data Loading Issues
Images not found
Solutions:
- Use absolute paths
- Check file extensions match
- Verify directory structure
Annotation format errors
Solutions:
-
Use the
wildataimport command with--verboseto see validation errors. -
Check bbox coordinates
-
Verify image IDs match
Performance Issues
Detection is slow
Solutions:
- Use GPU if available
- Increase batch size
- Use multithreaded pipeline:
processing:
pipeline_type: "multithreaded"
num_data_workers: 4
High memory usage
Solutions:
-
Enable streaming mode (WilData):
processing_mode: "streaming" -
Process in smaller batches
-
Clear cache between batches
DVC Issues
DVC push fails
Solutions:
-
Check remote configuration:
dvc remote list -
Verify credentials:
dvc remote modify myremote access_key_id YOUR_KEY -
Test connection:
dvc remote list
dvc status
Label Studio Integration
Can't connect to Label Studio
Solutions:
-
Start Label Studio:
scripts\launch_labelstudio.bat -
Check API key in
.env:LABEL_STUDIO_API_KEY=your_key
LABEL_STUDIO_URL=http://localhost:8080
FiftyOne Issues
FiftyOne app won't launch
Solutions:
-
Check FiftyOne installation:
uv pip install fiftyone -
Clear FiftyOne database:
fiftyone app config database_dir -
Use different port:
fiftyone app launch --port 5152
Common Error Messages
"No module named 'wildetect'"
Solution: Install in development mode:
cd wildetect
uv pip install -e .
"Permission denied"
Solution: Run as administrator or fix permissions:
icacls "D:\data" /grant %USERNAME%:F /t
"Port already in use"
Solution: Kill process using port:
# Find process
netstat -ano | findstr :5000
# Kill process (replace PID)
taskkill /PID <PID> /F
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:
logging:
log_level: "DEBUG"
verbose: true
Enable debug logging in your .env or configuration file:
Still having issues? Open an issue on GitHub with:
- Error message
- System info (
wildetect info) - Steps to reproduce
- Relevant configuration files