diff --git a/flake.nix b/flake.nix index 4279eb1..c0e29e8 100644 --- a/flake.nix +++ b/flake.nix @@ -28,6 +28,10 @@ GST_DEV_PATH = pkgs.gst_all_1.gstreamer.dev; GLIB_DEV_PATH = pkgs.glib.dev; GLIB_PATH = pkgs.glib.out; + + HAILORT_LOGGER_PATH = "./logs"; + HAILORT_CONSOLE_LOGGER_LEVEL = "info"; + HAILO_MONITOR = 1; }; } ); diff --git a/logs/hailort.log b/logs/hailort.log new file mode 100644 index 0000000..e69de29 diff --git a/src/main.zig b/src/main.zig index d860013..24c3079 100644 --- a/src/main.zig +++ b/src/main.zig @@ -7,8 +7,7 @@ const hlo = @cImport({ const Allocator = std.mem.Allocator; const assert = std.debug.assert; -// const hef_file = "yolov5s.hef"; -const hef_file = "./libhailort/examples/hefs/shortcut_net"; +const hef_file = "yolov7.hef"; const max_edge_layers = 32; @@ -36,6 +35,10 @@ pub fn main() void { var input_vstream_size : usize = max_edge_layers; var output_vstream_size : usize = max_edge_layers; + @memset(device_params, 0); + @memset(&input_vstream_params, 0); + @memset(&output_vstream_params, 0); + status = hlo.hailo_create_vdevice(null, &vdevice); assert(status == hlo.HAILO_SUCCESS); diff --git a/yolov7.hef b/yolov7.hef new file mode 100644 index 0000000..6af99a3 Binary files /dev/null and b/yolov7.hef differ