Skip to content

Instantly share code, notes, and snippets.

View PkuRainBow's full-sized avatar
🎯
Focusing

Researcher.YuanYuhui PkuRainBow

🎯
Focusing
View GitHub Profile
import json
from collections import Counter
with open("canva.benchmark.json", "r") as f:
data = json.load(f)
print("""
<html>
<head>
<style>
##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
## Created by: RainbowSecret
## Modified from: https://github.com/AlexHex7/Non-local_pytorch
## Microsoft Research
## [email protected]
## Copyright (c) 2018
##
## This source code is licensed under the MIT-style license found in the
## LICENSE file in the root directory of this source tree
##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
import numpy as np
import os, sys, getopt
# Main path to your caffe installation
caffe_root = '/path/to/your/caffe/'
# Model prototxt file
model_prototxt = caffe_root + 'models/bvlc_googlenet/deploy.prototxt'
# Model caffemodel file