Skip to content

Instantly share code, notes, and snippets.

View tempdeltavalue's full-sized avatar
📺

tempdeltavalue

📺
View GitHub Profile
//
// ContentView.swift
// sound_clf_poc
//
// Created by tempdeltavalue on 30.06.2023.
//
import SwiftUI
import SoundAnalysis
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))
#include <onnxruntime_cxx_api.h>
#include <iostream>
#include <random>
#include <map>
#include<opencv2/core.hpp>
#include<opencv2/highgui.hpp>
#include<opencv2/imgproc.hpp>
@tempdeltavalue
tempdeltavalue / dummy_mandelbrot.ipynb
Last active October 12, 2022 21:58
dummy_mandelbrot.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tempdeltavalue
tempdeltavalue / gaussian_tf-jax.ipynb
Created January 31, 2022 14:59
gaussian_TF/JAX.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tempdeltavalue
tempdeltavalue / video_feature_inversion.ipynb
Created January 25, 2022 04:16
video_feature_inversion.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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)