{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Football AI Models - Complete Example\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# Install requirements\n", "!pip install inference-gpu supervision" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from inference import get_model\n", "import supervision as sv\n", "import os\n\n", "ROBOFLOW_API_KEY = 'YOUR_API_KEY'\n\n", "# Initialize models\n", "player_model = get_model(\n", " model_id='football-players-detection-3zvbc/11',\n", " api_key=ROBOFLOW_API_KEY\n", ")\n\n", "field_model = get_model(\n", " model_id='football-field-detection-f07vi/14',\n", " api_key=ROBOFLOW_API_KEY\n", ")" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" } }, "nbformat": 4, "nbformat_minor": 4 }