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
FROM nvidia/cuda:8.0-cudnn6-devel | |
RUN apt-get update -y && \ | |
apt-get install -y --no-install-recommends \ | |
python3-dev \ | |
python3-pip \ | |
python3-wheel \ | |
python3-setuptools \ | |
git \ | |
curl \ |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import argparse | |
import chainer | |
import chainer.functions as F | |
import chainer.links as L | |
import numpy as np |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 weakref | |
import matplotlib.pyplot as plt | |
import numpy | |
from sklearn.datasets import fetch_mldata | |
class Variable(object): | |
def __init__(self, data): | |
self.data = data |
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
#!/bin/bash | |
# Install VTK First | |
if [ ! -d VTK-6.3.0 ]; then | |
brew uninstall vtk | |
brew unisntall pcl | |
brew install cmake | |
brew install pkg-config | |
brew install boost | |
brew install cminpack |
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 chainer | |
import chainer.functions as F | |
import numpy as np | |
import cupy as cp | |
import time | |
from chainer import cuda | |
import sys | |
if sys.argv[1] == 'cpu': |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# git clone https://github.com/hszhao/PSPNet.git | |
# This is the patched version: | |
git clone https://github.com/mitmul/PSPNet.git | |
cd PSPNet && mkdir build && cd build | |
# cudnnenv install v4 | |
# cudnnenv activate v4 | |
conda install -y cmake | |
conda install -y lmdb |
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
stop_epoch: 1000 | |
# max_workspace_size: 256 | |
dataset: | |
train: | |
module: dataset.cityscapes.cityscapes | |
name: TransformedCityscapes | |
args: | |
img_dir: data/cityscapes/leftImg8bit | |
label_dir: data/cityscapes/gtFine |