Skip to content

Instantly share code, notes, and snippets.

View yoonjechoi's full-sized avatar

Yoonje Choi yoonjechoi

  • South Korea
View GitHub Profile
@yoonjechoi
yoonjechoi / Dockerfile
Created May 2, 2020 15:52
cuda + opencv + pytorch in ubuntu18.04
# ==================================================================
# module list
# ------------------------------------------------------------------
# darknet latest (git)
# torch latest (git)
# python 3.8 (apt)
# pytorch latest (pip)
# onnx latest (pip)
# theano latest (git)
# tensorflow latest (pip)
@yoonjechoi
yoonjechoi / grpc_asyncio.py
Created May 5, 2019 06:14 — forked from mmellison/grpc_asyncio.py
gRPC Servicer with Asyncio (Python 3.6+)
import asyncio
from concurrent import futures
import functools
import inspect
import threading
from grpc import _server
def _loop_mgr(loop: asyncio.AbstractEventLoop):
var dataset = [];
for(var i = 0; i < 25; i++) {
    var p = [Math.floor(Math.random() * w), Math.floor(Math.random() * h) ];
    dataset.push(p);
}

var getX = function(d) { return d[0]; };
var getY = function(d) { return d[1]; }; 

var h = 400, w = 1000, padding = 20;