Add notice to notebook about running on linux (#2163)

This commit is contained in:
Rikhil Chilka
2025-11-02 13:29:08 -05:00
committed by GitHub
parent 2cde701cff
commit e5c8859c57
4 changed files with 89 additions and 83 deletions

View File

@@ -10,7 +10,11 @@
"\n",
"### Before you start\n",
"\n",
"If you are not using Google Colab, it is recommended to create a separate [Python virtual environment](https://docs.python.org/3/library/venv.html) before you run this project. This ensures that packages installed for the conversion process do not conflict with other packages you may already have set up."
"If you are not using Google Colab, it is recommended to create a separate [Python virtual environment](https://docs.python.org/3/library/venv.html) before you run this project. This ensures that packages installed for the conversion process do not conflict with other packages you may already have set up.\n",
"\n",
"## ⚠️ Linux Only\n",
"This notebook can only by run on **Linux** because the `rknn-toolkit2` Python package only supports Linux builds.\n",
"If you dont have access to a Linux system, consider using a cloud service like [Google Colab](https://colab.research.google.com).\n"
],
"id": "65e9f457d12dcc6b"
},
@@ -194,7 +198,7 @@
" check_git_installed()\n",
"\n",
" if not version in valid_yolo_versions:\n",
" print(f\"YOLO version \\\"{version}\\\" is not a valid version! Valid versions are: {\", \".join(valid_yolo_versions)}\")\n",
" print(f\"YOLO version \\\"{version}\\\" is not a valid version! Valid versions are: {', '.join(valid_yolo_versions)}\")\n",
"\n",
" try:\n",
" if version.lower() == \"yolov5\":\n",