Skip to content

Instantly share code, notes, and snippets.

View ldcastell's full-sized avatar

Daniel Castellanos ldcastell

View GitHub Profile
@ldcastell
ldcastell / object_detection_client.py
Created July 18, 2018 17:27
Python TensorFlow Object Detection client
from __future__ import absolute_import
from __future__ import division
from __future__ import nested_scopes
from __future__ import print_function
import time
import argparse
from argparse import RawTextHelpFormatter
from grpc.beta import implementations
import tensorflow as tf
import numpy as np
tf.logging.set_verbosity(tf.logging.INFO)
class SsdMobilenetV2(object):
def __init__(self):
self.class_names = ["num_detections:0"]
self.sess = tf.Session()
#!/usr/bin/env bash
set -e
######################################################################
# This script installs required dependencies for Torch7
######################################################################
{
install_openblas() {
# Get and build OpenBlas (Torch is much better with a decent Blas)