Powered by AppSignal & Oban Pro
Would you like to see your link here? Contact us

Covert VGG16 model ONNX to dets

notebooks/vgg16_onnx_to_dets.livemd

Covert VGG16 model ONNX to dets

Mix.install([
  {:axon_onnx, github: "elixir-nx/axon_onnx"}
])

Section

{model, params} = AxonOnnx.import("/data/vgg16.onnx")

:dets.open_file("vgg16", type: :bag, file: '/data/vgg16.dets')
:dets.insert("vgg16", {1, {model, params}})
:dets.sync("vgg16")
:dets.stop()