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
# check the reading speed | |
sudo hdparm -tT /dev/sda2 | |
# check write speed | |
mkdir ~/tmp | |
dd if=/dev/zero of=~/tmp/output oflag=direct bs=1k count=100k; rm -f ~/tmp/output |
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 subprocess | |
import os | |
import numpy as np | |
import time | |
# number of procs | |
file = 'download.py' | |
sleep_time = 5 | |
proc_N = 8 | |
# gpu_id = np.array([0,1,2,3,0,1,2,3,0,1,2,3]) |
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
################################################################################### | |
## Download (EPIC) | |
################################################################################### | |
import os | |
import math | |
import argparse | |
# params | |
save_dir = '/home/fanyix/code/lfb/data/epic/downloads' |
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
-- script to create a annotation file for Torch7 for ImageNet VID | |
package.path = package.path .. ';../?.lua' | |
require 'torch' | |
require 'paths' | |
local myutils = require 'myutils' | |
-- re-organize data | |
local anno = {} |
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 _init_paths | |
import os | |
import re | |
import numpy as np | |
import math | |
import time | |
from PIL import Image | |
from scipy import misc | |
from skimage.draw import line_aa |