Skip to content

Instantly share code, notes, and snippets.

View sugartom's full-sized avatar
🌴
On vacation

Yitao Hu sugartom

🌴
On vacation
View GitHub Profile
@sugartom
sugartom / build.py
Created July 2, 2018 18:13 — forked from igor-panteleev/build.py
devicehive-video-analysis DarkFlow modifications
# darkflow/net/build.py
def saveckpt(self):
self.saver.save(self.sess, './{}_model.ckpt'.format(self.meta['name']))
from darkflow.net.build import TFNet
import cv2
import tensorflow as tf
import os
import sys
from tensorflow.python.saved_model import builder as saved_model_builder
from tensorflow.python.saved_model import signature_constants
from tensorflow.python.saved_model import signature_def_utils
from tensorflow.python.saved_model import tag_constants
#!/bin/bash
################################################################################
### OpenCV2 Installation Script ###
################################################################################
# Source code at https://github.com/arthurbeggs/scripts #
################################################################################
# #
# Feel free to copy and modify this file. Giving me credit for it is your #
# choice, but please keep references to other people's work, which I don't #