This file contains hidden or 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 numpy as np | |
import keras | |
import time | |
from keras.layers import TimeDistributed, GlobalAveragePooling2D, Dense, LSTM, Input | |
from keras.models import Model | |
def inference_model(): | |
model = keras.applications.MobileNetV2(include_top=True, weights=None) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
#include <onnxruntime_cxx_api.h> | |
#include <iostream> | |
#include <random> | |
#include <map> | |
#include<opencv2/core.hpp> | |
#include<opencv2/highgui.hpp> | |
#include<opencv2/imgproc.hpp> |
This file contains hidden or 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
func runModel(multiArr: MLMultiArray, img_w: Float, img_h:Float) { | |
let inputShape: [NSNumber] = [1 as NSNumber, | |
256 as NSNumber, | |
64 as NSNumber, | |
64 as NSNumber] | |
let input111 = try! MLMultiArray(shape: [1, 256, 64, 64], dataType: .float64) | |
// input111.withUnsafeMutableBytes { ptr, strides in | |
let data = NSMutableData(data: Data(count: 16777216)) |
This file contains hidden or 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
// | |
// ContentView.swift | |
// sound_clf_poc | |
// | |
// Created by tempdeltavalue on 30.06.2023. | |
// | |
import SwiftUI | |
import SoundAnalysis |