This should work for Debian or Debian-deriviants (e.g., Ubuntu)
Install transmission-daemon
sudo apt-get install transmission-daemon
| export CUDA_HOME=$HOME/tools/cuda-9.0 # change to your path | |
| export CUDA_TOOLKIT_ROOT_DIR=$CUDA_HOME | |
| export LD_LIBRARY_PATH="$CUDA_HOME/extras/CUPTI/lib64:$LD_LIBRARY_PATH" | |
| export LIBRARY_PATH=$CUDA_HOME/lib64:$LIBRARY_PATH | |
| export LD_LIBRARY_PATH=$CUDA_HOME/lib64:$LD_LIBRARY_PATH | |
| export CFLAGS="-I$CUDA_HOME/include $CFLAGS" | |
| export PATH="$CUDA_HOME/bin:$PATH" |
| java -jar notedup_patched.jar |
| import torch | |
| import numpy as np | |
| import argparse | |
| from torchvision import models | |
| import matplotlib.pyplot as plt | |
| import cv2 | |
| import os | |
| resnet = models.resnet50(pretrained=True) |
| {0: 'tench, Tinca tinca', | |
| 1: 'goldfish, Carassius auratus', | |
| 2: 'great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias', | |
| 3: 'tiger shark, Galeocerdo cuvieri', | |
| 4: 'hammerhead, hammerhead shark', | |
| 5: 'electric ray, crampfish, numbfish, torpedo', | |
| 6: 'stingray', | |
| 7: 'cock', | |
| 8: 'hen', | |
| 9: 'ostrich, Struthio camelus', |
| % packages | |
| \usepackage{amsmath,amsfonts,amssymb,amsthm} | |
| \usepackage{hyperref} | |
| \usepackage{xspace} | |
| \usepackage{algorithm} | |
| \usepackage{algorithmic} | |
| \usepackage{color} | |
| \usepackage{graphicx} | |
| \usepackage{mathtools} | |
| \usepackage{footmisc} |
| import matplotlib.pyplot as plt | |
| from matplotlib.lines import Line2D | |
| import seaborn as sns | |
| import numpy as np | |
| fig = plt.figure() | |
| fig.set_size_inches(18, 3) | |
| ax = fig.subplots(1) | |
| label = ['Expert', 'Demo', 'Pre-train', 'POfD', 'Penalty', 'Penalty + Ann.', 'Ours'] | |
| flatui = ["#9b59b6", "#999900", "#3498db", "#95a5a6", "#009900", "#fc9272", "#e74c3c"] | |
| clrs = sns.color_palette(flatui) |
| #!/usr/bin/env python | |
| # -*- coding:UTF-8 -*- | |
| # File Name : dm_control_wrapper.py | |
| # Creation Date : 09-10-2018 | |
| # Created By : Jeasine Ma [jeasinema[at]gmail[dot]com] | |
| import glfw | |
| try: | |
| glfw.init() | |
| except: |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| import seaborn as sns | |
| def smooth(y, box_pts): | |
| box_pts = max(box_pts, 1) if len(y) > box_pts else 1 | |
| box = np.ones(box_pts)/box_pts | |
| y_smooth = np.convolve(y, box, mode='valid') | |
| return y_smooth |