This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WasmEdge | |
=============================================================================================================================== | |
use wasmedge_sdk::*; | |
use anyhow::{Result, Error, anyhow}; | |
use wasmedge_sdk::WasmValue; | |
use crate::SmartEngine; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::any::Any; | |
use std::sync::{Arc, Mutex}; | |
use std::fmt::{self, Debug}; | |
use fluvio_protocol::{Encoder, Decoder}; | |
use wasmedge_sdk::{ImportObject, ImportObjectBuilder, Func}; | |
use wasmedge_sdk::{Module,Store,Instance,CallingFrame,WasmValue,error::HostFuncError}; | |
use wasmedge_sys::{Memory}; | |
use tracing::{debug}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 | |
import time | |
import math | |
import numpy as np | |
import tensorflow as tf | |
class SsdAnchorsCalculatorOptions: | |
def __init__(self, input_size_width, input_size_height, min_scale, max_scale | |
, num_layers, feature_map_width, feature_map_height | |
, strides, aspect_ratios, anchor_offset_x=0.5, anchor_offset_y=0.5 |