Observed since 20 Oct, 20:19 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Cloud-native computer vision model training toolkit for Aegis AI
Cloud-native computer vision model training toolkit for Aegis AI
Aegis Vision is a streamlined toolkit for training computer vision models in cloud environments (Kaggle, Colab, etc.) with built-in support for:
# Basic installation
pip install aegis-vision
# With Kaggle support
pip install aegis-vision[kaggle]
# Development installation
pip install aegis-vision[dev]
# All features
pip install aegis-vision[all]
The package uses opencv-python-headless by default, which works in both GUI and headless environments:
# Standard installation (works in all environments)
pip install aegis-vision
No special configuration needed - the package automatically works in Docker containers, CI/CD systems, and GUI environments.
For Nvidia DGX Spark or other systems with latest NVIDIA GPUs (Blackwell architecture), installation is the same:
# Standard installation with automatic environment checking
pip install aegis-vision
# Login and start (agent will auto-check and fix environment)
aegis-agent login
aegis-agent start
The agent automatically:
See QUICKSTART_DGX.txt for detailed guide.
The Aegis Vision training agent includes comprehensive GPU detection that supports modern NVIDIA architectures:
| Architecture | Compute Capability | GPU Examples | Status |
|---|---|---|---|
| Volta | 7.0 | V100, Titan V | ✓ Supported |
| Turing | 7.5 | RTX 2080, RTX 2090, Titan RTX | ✓ Supported |
| Ampere | 8.0-8.6 | A100, RTX 3090, RTX 3080 | ✓ Supported |
| Ada | 8.9 | RTX 4090, RTX 4080, L40S | ✓ Supported |
| Hopper | 9.0-9.1 | H100, H200 | ✓ Supported |
| Blackwell | 9.2 | B100, B200 | ✓ Supported |
The agent uses a dual-detection approach for maximum reliability:
PyTorch Detection (Primary)
torch.cuda.is_available() and device propertiesnvidia-smi Fallback (Secondary)
nvidia-smi command for GPU discoverynvcc# Show detailed GPU information
aegis-agent info
# Example output with H100:
# 🎮 GPU Information:
# Detection Method: PyTorch
# CUDA Version: 12.1
# Driver Version: 550.120
# GPU 0:
# Name: NVIDIA H100 80GB
# Memory: 80.0 GB
# Compute Capability: 9.0
The agent automatically configures optimal CUDA architectures for training:
TORCH_CUDA_ARCH_LIST=7.0 7.5 8.0 8.6 8.9 9.0 9.1 9.2+PTX
This includes:
Custom architectures can be set via environment variable:
# Force specific GPU architecture
export TORCH_CUDA_ARCH_LIST="9.0 9.2+PTX"
aegis-agent start
If GPU is not detected despite having NVIDIA GPUs installed:
# 1. Verify NVIDIA driver is installed
nvidia-smi
# 2. Check CUDA version
nvcc --version
# 3. View detailed system info
aegis-agent info
# 4. Check CUDA compatibility
aegis-agent check-env
If detection shows "CPU Only" but GPU is available:
nvidia-smi fallback methodfrom aegis_vision import YOLOTrainer
# Initialize trainer
trainer = YOLOTrainer(
model_variant="yolov11l",
dataset_path="/kaggle/input/my-dataset",
epochs=100,
batch_size=16,
)
# Configure Wandb tracking (optional)
trainer.setup_wandb(
project="my-project",
entity="my-team",
api_key="your-api-key"
)
# Train
results = trainer.train()
# Export to multiple formats
trainer.export(formats=["onnx", "coreml", "openvino"])
from aegis_vision import COCOConverter
# Convert dataset
converter = COCOConverter(
annotations_file="annotations.json",
images_dir="images/",
output_dir="yolo_dataset/"
)
stats = converter.convert()
print(f"Converted {stats['total_annotations']} annotations")
# Train a model
aegis-train \
--model yolov11l \
--data /path/to/dataset \
--epochs 100 \
--batch 16 \
--wandb-project my-project
# Convert COCO to YOLO
aegis-train convert-coco \
--annotations annotations.json \
--images images/ \
--output yolo_dataset/
config = {
# Model settings
"model_variant": "yolov11l",
"training_mode": "fine_tune", # or "from_scratch"
# Training hyperparameters
"epochs": 100,
"batch_size": 16,
"img_size": 640,
"learning_rate": 0.01,
"momentum": 0.937,
"weight_decay": 0.0005,
# Augmentation
"augmentation": {
"hsv_h": 0.015,
"hsv_s": 0.7,
"hsv_v": 0.4,
"degrees": 0.0,
"translate": 0.1,
"scale": 0.5,
"shear": 0.0,
"perspective": 0.0,
"flipud": 0.0,
"fliplr": 0.5,
"mosaic": 1.0,
"mixup": 0.0,
},
# Early stopping
"early_stopping": {
"enabled": True,
"patience": 50,
"min_delta": 0.0001
},
# Wandb
"wandb_enabled": True,
"wandb_project": "my-project",
"wandb_entity": "my-team",
# Export
"output_formats": ["onnx", "coreml", "openvino"],
}
trainer = YOLOTrainer(**config)
# In a Kaggle kernel
from aegis_vision import YOLOTrainer
trainer = YOLOTrainer(
model_variant="yolov11l",
dataset_path="/kaggle/input/my-dataset",
epochs=100,
wandb_api_key="/kaggle/input/secrets/wandb_api_key.txt"
)
results = trainer.train()
trainer.save_to_kaggle_output()
from aegis_vision import YOLOTrainer, COCOConverter
# 1. Convert your COCO dataset
converter = COCOConverter(
annotations_file="my_annotations.json",
images_dir="my_images/",
output_dir="yolo_dataset/",
labels_filter=["person", "car", "dog"] # Optional filtering
)
converter.convert()
# 2. Train
trainer = YOLOTrainer(
model_variant="yolov11m",
dataset_path="yolo_dataset/",
epochs=50,
)
results = trainer.train()
Main class for training YOLO models.
Methods:
train() - Start trainingsetup_wandb() - Configure Wandb trackingexport() - Export trained modelvalidate() - Run validationget_metrics() - Retrieve training metricsConvert COCO format datasets to YOLO format.
Methods:
convert() - Perform conversionvalidate() - Check dataset integrityget_statistics() - Dataset statistics# Clone repository
git clone https://github.com/your-org/aegis-vision.git
cd aegis-vision
# Install in development mode
pip install -e ".[dev]"
# Run tests
pytest
# Format code
black src/
# Lint
ruff src/
Test the agent without using the UI:
# Submit a basic training task
python test_submit_task.py
# Submit with CoreML export
python test_submit_task.py --coreml --epochs 5
# Submit with custom configuration
python test_submit_task.py --model yolo11n --epochs 10 --batch-size 16
See TEST_TASK_SUBMISSION.md for complete documentation.
Set up debugging:
# Debug configurations are pre-configured in .vscode/launch.json
# Just open the project in VS Code/Cursor
Start debugging:
src/aegis_vision/agent.py or trainer.pytest_submit_task.py)Common debugging scenarios:
trainer.py:_export_coreml()agent.py:execute_task()training_script.py:main()See DEBUG_GUIDE.md for comprehensive debugging documentation.
The most powerful debugging approach:
# Terminal 1: Start agent in debug mode (VS Code/Cursor)
# Press F5 → "Debug Aegis Agent"
# Set breakpoints in agent.py or trainer.py
# Terminal 2: Submit test task
python test_submit_task.py --coreml
# Debugger will pause at breakpoints
# Inspect variables, step through code, fix issues
This enables rapid iteration without manual UI interaction.
Contributions are welcome! Please:
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)This project is licensed under the MIT License - see the LICENSE file for details.
@software{aegis_vision,
title = {Aegis Vision: Cloud-native Computer Vision Training Toolkit},
author = {Aegis AI Team},
year = {2025},
url = {https://github.com/your-org/aegis-vision}
}
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.2.55 | 30 Dec 2025 | 21 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 20:19 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:b65d1aa3ca5ea6dc545132ed6fe4d4e5a2359c4fe13c2200aefcf2bf225a5077