This file contains hidden or 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 python3 | |
from collections import Counter | |
from os.path import join | |
import re | |
import os | |
import pykakasi | |
# --- Routines |
This file contains hidden or 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
# Compiling TensorFlow 1.12 with CUDA 10 on conda environment on Arch Linux. | |
# | |
# Desired versions: | |
# - TensorFlow 1.12 | |
# - Python 3.6 | |
# | |
# Tested on Arch Linux with: | |
# - cuda 10.0.130-2 | |
# - cudnn 7.3.0-1 | |
# - nccl 2.3.4.4-2 |
This file contains hidden or 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 python3 | |
"""Run multiple jobs, potentially in parallel to leverage multiple GPUs on host.""" | |
import hashlib | |
from os import environ | |
from os.path import expanduser, exists | |
import subprocess | |
import shlex | |
import time |
This file contains hidden or 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 os | |
import sys | |
from chainer.training import extension | |
from chainer.training.extensions import log_report as log_report_module | |
from chainer.training.extensions import util | |
import tensorflow as tf | |
This file contains hidden or 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:9.0-cudnn7-devel-ubuntu16.04 | |
#------------------------------------------------------------------------------- | |
### Enable UTF8 in docker instance | |
#------------------------------------------------------------------------------- | |
RUN apt-get update -y && \ | |
apt-get install -y locales && \ | |
rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/* | |
RUN locale-gen en_US.UTF-8 | |
ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8' |
This file contains hidden or 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 python2 | |
import os | |
import numpy as np | |
import h5py | |
import threading | |
import Queue | |
from PIL import Image | |
from tqdm import tqdm | |
from joblib import Parallel, delayed |
This file contains hidden or 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 pickle | |
import pandas | |
import json | |
from collections import Counter | |
import os | |
from os.path import join | |
import shutil | |
games = pickle.load(open('../../data/game_face_170701/games.pickle', 'rb'), encoding='latin1') | |
tags = pickle.load(open('../../data/game_face_170701/tags.pickle', 'rb'), encoding='latin1') |
This file contains hidden or 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 python3 | |
import argparse | |
import os | |
import sys | |
from os.path import basename | |
import cv2 | |
import lmdb | |
import base64 | |
import glob |
This file contains hidden or 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 os | |
import re | |
from joblib import Parallel, delayed | |
def go_lines(lines): | |
flow = [] | |
names = [] | |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder