mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-05 04:57:42 +03:00
Update object_detectors.md
This commit is contained in:
parent
c7573ca36e
commit
760af9ba67
@ -990,6 +990,6 @@ bin/pip install onnx onnxruntime onnx-simplifier>=0.4.1
|
|||||||
wget -O yolov9-t.pt "https://github.com/WongKinYiu/yolov9/releases/download/v0.1/yolov9-t-converted.pt" # download the weights
|
wget -O yolov9-t.pt "https://github.com/WongKinYiu/yolov9/releases/download/v0.1/yolov9-t-converted.pt" # download the weights
|
||||||
|
|
||||||
# prepare and run export script
|
# prepare and run export script
|
||||||
sed -i "s/ckpt = torch.load(attempt_download(w), map_location='cpu')/ckpt = torch.load(attempt_download(w), map_location='cpu', weights_only=False)/g" <your_file>
|
sed -i "s/ckpt = torch.load(attempt_download(w), map_location='cpu')/ckpt = torch.load(attempt_download(w), map_location='cpu', weights_only=False)/g" ./models/experimental.py
|
||||||
python3 export.py --weights ./yolov9-t.pt --imgsz 320 --simplify --include onnx
|
python3 export.py --weights ./yolov9-t.pt --imgsz 320 --simplify --include onnx
|
||||||
```
|
```
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user