From ccf20f456a21be15fd78414231c7ff02923830be Mon Sep 17 00:00:00 2001 From: aptalca <541623+aptalca@users.noreply.github.com> Date: Thu, 27 Mar 2025 12:33:03 -0400 Subject: [PATCH] update YOLO_NAS notebook (#17414) Google Colab updated to python 3.11 super-gradients v3.7.1 is not compatible with py3.11 and install fails super-gradients committed a fix to master branch but did not cut a relase since (acquired by Nvidia in the meantime) This commit installs super-gradients from master branch --- notebooks/YOLO_NAS_Pretrained_Export.ipynb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/notebooks/YOLO_NAS_Pretrained_Export.ipynb b/notebooks/YOLO_NAS_Pretrained_Export.ipynb index e4e2222da..4fee19183 100644 --- a/notebooks/YOLO_NAS_Pretrained_Export.ipynb +++ b/notebooks/YOLO_NAS_Pretrained_Export.ipynb @@ -8,14 +8,14 @@ }, "outputs": [], "source": [ - "! pip install -q super_gradients==3.7.1" + "! pip install -q git+https://github.com/Deci-AI/super-gradients.git" ] }, { "cell_type": "code", "source": [ - "! sed -i 's/sghub.deci.ai/sg-hub-nv.s3.amazonaws.com/' /usr/local/lib/python3.10/dist-packages/super_gradients/training/pretrained_models.py\n", - "! sed -i 's/sghub.deci.ai/sg-hub-nv.s3.amazonaws.com/' /usr/local/lib/python3.10/dist-packages/super_gradients/training/utils/checkpoint_utils.py" + "! sed -i 's/sghub.deci.ai/sg-hub-nv.s3.amazonaws.com/' /usr/local/lib/python3.11/dist-packages/super_gradients/training/pretrained_models.py\n", + "! sed -i 's/sghub.deci.ai/sg-hub-nv.s3.amazonaws.com/' /usr/local/lib/python3.11/dist-packages/super_gradients/training/utils/checkpoint_utils.py" ], "metadata": { "id": "NiRCt917KKcL" @@ -84,4 +84,4 @@ }, "nbformat": 4, "nbformat_minor": 0 -} \ No newline at end of file +}