This file contains 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
import json | |
from collections import Counter | |
with open("canva.benchmark.json", "r") as f: | |
data = json.load(f) | |
print(""" | |
<html> | |
<head> | |
<style> |
This file contains 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
##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
## 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 | |
##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
This file contains 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
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 |