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 | |
import pwd | |
from time import sleep | |
from importlib import import_module | |
from collections import defaultdict | |
import psutil | |
import docker | |
import pandas as pd |
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 | |
NVIDIA_DRIVER=/tmp/NVIDIA-Linux-x86_64-410.78.run | |
DRIVER_URL=http://us.download.nvidia.com/XFree86/Linux-x86_64/410.78/NVIDIA-Linux-x86_64-410.78.run | |
BLACKLIST_FILE=/etc/modprobe.d/blacklist-nvidia-nouveau.conf | |
if [ ! -f $BLACKLIST_FILE ]; then | |
echo "Disabling nouveau driver and then rebooting..." | |
bash -c "echo blacklist nouveau > /etc/modprobe.d/blacklist-nvidia-nouveau.conf" | |
bash -c "echo options nouveau modeset=0 >> /etc/modprobe.d/blacklist-nvidia-nouveau.conf" |
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/python3 | |
import argparse | |
import os | |
import io | |
import numpy as np | |
from string import ascii_lowercase | |
from random import sample | |
from PIL import Image | |
import moviepy.editor as mpy |
Loading
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
from __future__ import print_function | |
import os | |
import sys | |
PSCN_DIR = '/var/workplace/PySparseConvNet/' | |
sys.path.insert(0, PSCN_DIR) | |
from glob import glob | |
import math |