79270848

Date: 2024-12-11 07:42:01
Score: 0.5
Natty:
Report link

You can use tools/deploy/export_model.py to directly convert into onnx format. https://github.com/nhannt69/detectron2/blob/main/tools/deploy/export_model.py

Command: python tools/deploy/export_model.py --config-file [cfg file].yaml --sample-image [image].jpg --output weight --export-method tracing --format onnx MODEL.WEIGHTS [weight].pth MODEL.DEVICE cpu

Good luck.

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: 5063 Nguyễn Trọng Nhân