http://www.cs.duke.edu/courses/fall17/compsci590.2/schedule.shtml
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
# surf | |
using Plots | |
g = 0.01:0.01:1 | |
xgrid = repmat(g', 100, 1) | |
ygrid = repmat(g, 1, 100) | |
z = -log.(xgrid .* ygrid) | |
zgrid = zeros(100, 100) | |
for i = 1:100, j = 1:100 |
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
using HDF5 | |
using JLD | |
using LIBLINEAR | |
println("> svm on open image") | |
# read features (2048,165659) | |
features = h5read("data/grand5_feature.h5", "global_pool")[1, 1, :, :] | |
ids = readdlm("data/redis_val_list_with_id.txt")[:, 1] |
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
cat labels.csv | cut -c1-16 | sort | uniq | wc -l |
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/python | |
# -*- coding: utf-8 -*- | |
# activation value | |
import sys | |
sys.path.append('/home/lizz/parrots/parrots/python') | |
from pyparrots import dnn | |
import numpy as np | |
from numpy import linalg as alg |
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
@everywhere image_folder = "/home/gv6/openimages/train_images/" | |
@everywhere tmp_folder = "/media/ramdisk" | |
@everywhere save_folder = "/home/lizz/openimage" | |
@everywhere missing_folder = joinpath(save_folder, "missing") | |
@everywhere long, short, longest, shortest = [1024, 512, 8192, 128] | |
@everywhere function process(line) |
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
find DIR_NAME -type f | wc -l |
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
sudo mkdir -p /media/ramdisk | |
sudo mount -t tmpfs -o size=2048M tmpfs /media/ramdisk |
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
sudo addgroup imagenet --gid 1111 | |
sudo adduser yxge --uid 1107 | |
sudo adduser yxge imagenet |
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
cat sth > /dev/null |