Skip to content

Instantly share code, notes, and snippets.

View kezunlin's full-sized avatar

kezunlin kezunlin

View GitHub Profile
@kezunlin
kezunlin / darknet_yolov3.py
Last active December 12, 2018 01:26
yolov3 inference for linux and window
"""
yolo.py for yolov3
support platforms:
- windows
- linux
"""
from ctypes import *
import random
import os
@kezunlin
kezunlin / cuda-demo
Last active November 22, 2018 02:25
cuda demo 1-dim vector add, 2-dim matrix multiply
#include <stdlib.h>
#include <iostream>
#include <cuda_runtime.h>
using namespace std;
/*
https://blog.csdn.net/fb_help/article/details/79330815
@kezunlin
kezunlin / Tensorflow MNIST CNN
Created November 2, 2018 09:04
Tensorflow MNIST CNN
#!/usr/bin/python3
# http://www.tensorfly.cn/tfdoc/tutorials/mnist_beginners.html
# http://www.tensorfly.cn/tfdoc/tutorials/mnist_pros.html
"""
import numpy as np
a = [1,0,0,0,0]
b = [0,1,0,0,0]
c = [0,0,1,0,0]
#!/usr/bin/python3
# http://www.tensorfly.cn/tfdoc/tutorials/mnist_beginners.html
# http://www.tensorfly.cn/tfdoc/tutorials/mnist_pros.html
"""
import numpy as np
a = [1,0,0,0,0]
b = [0,1,0,0,0]
c = [0,0,1,0,0]
@kezunlin
kezunlin / opencv mat for loop
Last active November 2, 2018 09:03
opencv mat for loop
#include <stdio.h>
#include <iostream>
#pragma warning( disable: 4819 )
#pragma warning( disable: 4244 )
#pragma warning( disable: 4267 )
#include "opencv2/core.hpp"
#include "opencv2/imgproc.hpp"
#include "opencv2/features2d.hpp"