Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View birddevelper's full-sized avatar
💭
INGU

Bird birddevelper

💭
INGU
View GitHub Profile
@birddevelper
birddevelper / kerasModelInCpp.cpp
Created June 1, 2021 14:36
use Keras Model in C plus plus
#include <iostream>
#include <fdeep/fdeep.hpp>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include <filesystem>
#include <exception>
using namespace stdext;
namespace fs = std::filesystem;
@birddevelper
birddevelper / CatDogCNN.py
Last active June 1, 2021 14:06
Cat-Dog CNN Model that will be transferred to c++
import cv2
import glob
from sklearn.neighbors import KNeighborsClassifier
import numpy as np
from sklearn.preprocessing import LabelEncoder
from tensorflow.keras.utils import to_categorical
from joblib import dump, load
from sklearn.model_selection import train_test_split
import tensorflow as tf
from tensorflow.keras import models
@birddevelper
birddevelper / FaceNetInAction.py
Last active January 24, 2022 10:27
FaceNet usage sample code. (How FaceNet Works and How to Work With FaceNet)
import tensorflow as tf
import glob
from mtcnn import MTCNN
from tensorflow.keras.models import load_model
import cv2
import numpy as np
from scipy.spatial.distance import cosine
detector = MTCNN()