[Bug]: Google Colab script for exporting YOLO-NAS is incompatible with Python 3.12 #21796
Replies: 1 comment
-
|
The YOLO-NAS notebook has known compatibility issues with Python versions(1)(2). The community has identified that Python 3.11 is required for super-gradients to install properly(2). To resolve the Python 3.12 incompatibility, you can use this updated approach(2):
! pip install git+https://github.com/Deci-AI/super-gradients.git
! 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
! 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.pyIf you're using Python 3.12, make sure you aren't using an older instance - older instances were 3.11, newer ones are 3.12(2). You may need to blow away your instance and re-do it(2). Once you successfully generate the YOLO-NAS model, you can use it with Frigate's ONNX detector using this configuration(3): detectors:
onnx:
type: onnx
model:
model_type: yolonas
width: 320
height: 320
input_pixel_format: bgr
input_tensor: nchw
path: /config/yolo_nas_s.onnx
labelmap_path: /labelmap/coco-80.txtNote that the 📚 Sources:
Have another question? Just tag @inkeep. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Checklist
Describe the problem you are having
The build fails due to incomp with Python 3.12. I think the last version that'll work is 3.10
Steps to reproduce
...
Version
N/A
In which browser(s) are you experiencing the issue with?
No response
Frigate config file
N/Adocker-compose file or Docker CLI command
N/ARelevant Frigate log output
Relevant go2rtc log output
Operating system
Home Assistant OS
Install method
Home Assistant Add-on
Network connection
Wired
Camera make and model
N/A
Screenshots of the Frigate UI's System metrics pages
N/A
Any other information that may be helpful
No response
Beta Was this translation helpful? Give feedback.
All reactions