Skip to content

Instantly share code, notes, and snippets.

View PkuRainBow's full-sized avatar
🎯
Focusing

Researcher.YuanYuhui PkuRainBow

🎯
Focusing
View GitHub Profile
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
##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
## Created by: RainbowSecret
## Modified from: https://github.com/AlexHex7/Non-local_pytorch
## Microsoft Research
## yuyua@microsoft.com
## 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 json
from collections import Counter
with open("canva.benchmark.json", "r") as f:
data = json.load(f)
print("""
<html>
<head>
<style>