Detección de objetos en tiempo real usando YOLOv12 con el dataset ONCE.
- ONCE Dataset: https://once-for-auto-driving.github.io/
- Paper: ONCE: One Million Scenarios for Autonomous Driving
- YOLOv12: GitHub - sunsmarterjie/yolov12
- Instalar FlashAttention (opcional, para mejor rendimiento en GPU)
wget https://github.com/Dao-AILab/flash-attention/releases/download/v2.7.3/flash_attn-2.7.3+cu11torch2.2cxx11abiFALSE-cp311-cp311-linux_x86_64.whl
pip install flash_attn-2.7.3+cu11torch2.2cxx11abiFALSE-cp311-cp311-linux_x86_64.whl- Instalar dependencias
pip install -r requirements.txt
pip install -e .- Clonar YOLOv12 (si no está incluido)
git clone https://github.com/sunsmarterjie/yolov12.gitpython test.pypython trainer.py --data_path [PATH-DE-LOS-DATOS]python inference.py --data_path [PATH-DE-LOS-DATOS]bentoml serve service.py:YoloService --port 3000 &
bentoml serve service.py:ImageServerService --port 3001 &
bentoml serve service.py:SpeedPredictionService --port 3002 &
streamlit run app.py -- --data_path [PATH-DE-LOS-DATOS]cd processing
bentoml serve service.py:svc --port 3000
streamlit run app_final.py