Skip to content

Instantly share code, notes, and snippets.

View innerlee's full-sized avatar
🌵
LOW LEVEL VISION GUY

lizz innerlee

🌵
LOW LEVEL VISION GUY
View GitHub Profile
# 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
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]
cat labels.csv | cut -c1-16 | sort | uniq | wc -l
#!/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
@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)
find DIR_NAME -type f | wc -l
sudo mkdir -p /media/ramdisk
sudo mount -t tmpfs -o size=2048M tmpfs /media/ramdisk
sudo addgroup imagenet --gid 1111
sudo adduser yxge --uid 1107
sudo adduser yxge imagenet
cat sth > /dev/null