Marcus/run_marcus.py

26 lines
882 B
Python

#!/usr/bin/env python3
"""
run_marcus.py — Marcus AI Brain (terminal mode)
Usage: python3 run_marcus.py
"""
import os
import sys
import warnings
# Silence known-harmless third-party deprecation warnings before ANY heavy
# import fires them. Keeps the terminal dashboard readable.
# - TypedStorage : fires from torch during yolov8m.pt checkpoint load
# - torch.ampwhile : fires in ultralytics when FP16 is enabled on Jetson torch 2.1
warnings.filterwarnings("ignore", message=".*TypedStorage is deprecated.*")
warnings.filterwarnings("ignore", message=".*torch\\.cuda\\.amp.*")
os.environ.setdefault("PYTHONWARNINGS", "ignore::UserWarning:torch._utils")
PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__))
if PROJECT_ROOT not in sys.path:
sys.path.insert(0, PROJECT_ROOT)
from Brain.marcus_brain import run_terminal
if __name__ == "__main__":
run_terminal()