Skip to content

Instantly share code, notes, and snippets.

View northeastsquare's full-sized avatar
🎯
Focusing

bytemaster northeastsquare

🎯
Focusing
View GitHub Profile
@hnykda
hnykda / keras_prediction.py
Last active August 21, 2020 01:33
Predicting sequences of vectors (regression) in Keras using RNN - LSTM (danielhnyk.cz)
import pandas as pd
from random import random
flow = (list(range(1,10,1)) + list(range(10,1,-1)))*100
pdata = pd.DataFrame({"a":flow, "b":flow})
pdata.b = pdata.b.shift(9)
data = pdata.iloc[10:] * random() # some noise
import numpy as np
@northeastsquare
northeastsquare / CNN_convert_bin_and_print_featuremap.py
Last active June 30, 2021 06:04
nnie 均值、scale, 打印各层特征。使用image_list;使用cfg文件,与nnie生成wk文件的cfg一样,不需要修改。https://github.com/hanson-young/nniefacelib, https://zhuanlan.zhihu.com/p/107548509
#from __future__ import print_function
import sys
sys.path.insert(0, 'D:\\hisi\\30\\HiSVP_PC_V1.1.3.0\\tools\\nnie\\windows\\ruyi_env_setup-2.0.38\\python35\\Lib\\site-packages\\caffe\\python')
import caffe
import pickle
from datetime import datetime
import numpy as np
import struct
import sys, getopt
import cv2, os, re