Skip to content

Instantly share code, notes, and snippets.

View brianlan's full-sized avatar

Rambo Lan brianlan

  • Meituan
  • Shanghai
View GitHub Profile
@brianlan
brianlan / black_selection.sh
Created October 24, 2019 02:03 — forked from BasPH/black_selection.sh
Black on selection
#!/usr/bin/env bash
set -x
black=$1
input_file=$2
start_line=$3
end_line=$4
# Read selected lines and write to tmpfile
@brianlan
brianlan / imagenet1000_clsid_to_labels.txt
Created August 24, 2019 06:52 — forked from yrevar/imagenet1000_clsid_to_labels.txt
text: imagenet 1000 class id to human readable labels. (Sergey Zagoruyko, Torch Tutorials GitHub Repository; Retrieved from: https://github.com/torch/tutorials/blob/master/7_imagenet_classification/synset_words.txt)
{n01440764: 'tench, Tinca tinca',
n01443537: 'goldfish, Carassius auratus',
n01484850: 'great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias',
n01491361: 'tiger shark, Galeocerdo cuvieri',
n01494475: 'hammerhead, hammerhead shark',
n01496331: 'electric ray, crampfish, numbfish, torpedo',
n01498041: 'stingray',
n01514668: 'cock',
n01514859: 'hen',
n01518878: 'ostrich, Struthio camelus',
@brianlan
brianlan / imagenet1000_clsidx_to_labels.txt
Created August 24, 2019 06:52 — forked from yrevar/imagenet1000_clsidx_to_labels.txt
text: imagenet 1000 class idx to human readable labels (Fox, E., & Guestrin, C. (n.d.). Coursera Machine Learning Specialization.)
{0: 'tench, Tinca tinca',
1: 'goldfish, Carassius auratus',
2: 'great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias',
3: 'tiger shark, Galeocerdo cuvieri',
4: 'hammerhead, hammerhead shark',
5: 'electric ray, crampfish, numbfish, torpedo',
6: 'stingray',
7: 'cock',
8: 'hen',
9: 'ostrich, Struthio camelus',