You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please do not disclose security vulnerabilities as issues. See our security policy for responsible disclosures.
Describe the bug
Explain the behavior you would expect and the actual behavior.
To reproduce
On an AXIS M3067-P, I attempted to load RT-DETRv2 converted to tflite, using the app build from object_detection. I immediately hit the could not allocate tensors error from calling the larodLoadModel function. The model is unfortunately too big to upload, but I will post a snapshot of netron.
python3 tools/export_onnx.py -c <path to repo>/rtdetrv2_pytorch/configs/rtdetrv2/rtdetrv2_r18vd_120e_coco.yml -r <path to downloaded model>/rtdetrv2_r18vd_120e_coco_rerun_48.1.pth --check
4.5. Note that I had to comment out the dynamic_axes=dynamic_axes step in the export_onnx file otherwise the next step would fail
5. Run onnx2tf to export the model to onnx:
onnx2tf -i <path to model>/model.onnx
This generates a folder of saved_model.
Modify the Dockerfile in object_detection to import that model instead of downloading it from google. No need to modify labels file import; the model uses COCO labels
Build the app using ARCH=armv7hf and CHIP=cpu
Upload to the camera, start the app and see the failure
Screenshots
Environment
Axis device model: M3067-P
Axis device firmware version: 11-something
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
Explain the behavior you would expect and the actual behavior.
To reproduce
On an AXIS M3067-P, I attempted to load RT-DETRv2 converted to tflite, using the app build from
object_detection
. I immediately hit thecould not allocate tensors
error from calling thelarodLoadModel
function. The model is unfortunately too big to upload, but I will post a snapshot of netron.Steps to reproduce the behavior:
4.5. Note that I had to comment out the
dynamic_axes=dynamic_axes
step in theexport_onnx
file otherwise the next step would fail5. Run onnx2tf to export the model to onnx:
saved_model
.object_detection
to import that model instead of downloading it from google. No need to modify labels file import; the model uses COCO labelsARCH=armv7hf
andCHIP=cpu
Screenshots
Environment
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: