This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""This file extracts faster-rcnn features and bounding box coordinates""" | |
import pdb | |
import argparse | |
import numpy as np | |
import tensorflow as tf | |
import PIL.Image as PILI | |
def session(sess, feat_conv, feat_avg, boxes, classes, scores, image_tensor, image): | |
feat_conv_out, feat_avg_out, boxes_out, classes_out, scores_out = sess.run([ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import absolute_import, division, print_function | |
import pdb | |
import tempfile | |
import argparse | |
import numpy as np | |
import PIL.Image as PILI | |
import caffe |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Mimic a browser when a user only types in the domain name in the address bar | |
without the scheme, e.g., https://, by sending requests to https://<domain>, | |
https://www.<domain>, http://<domain>, and http://www.<domain> to figure out | |
which one leads to the landing page. | |
Usage: | |
$> go build . | |
$> echo facebook.com | domain2URL |