Skip to content

Instantly share code, notes, and snippets.

View jaekookang's full-sized avatar
🎯
Focusing

jkang jaekookang

🎯
Focusing
View GitHub Profile
@jaekookang
jaekookang / img_label.tsv
Created April 9, 2021 20:10
category_64_2021-04-09
ID Category Filename
1 animal-bird 01_animal-bird_001
1 animal-bird 01_animal-bird_002
1 animal-bird 01_animal-bird_003
1 animal-bird 01_animal-bird_004
1 animal-bird 01_animal-bird_005
1 animal-bird 01_animal-bird_006
1 animal-bird 01_animal-bird_007
1 animal-bird 01_animal-bird_008
1 animal-bird 01_animal-bird_009
@jaekookang
jaekookang / img_embed.tsv
Created April 9, 2021 20:09
category_64_2021-04-09
We can't make this file beautiful and searchable because it's too large.
-0.088882506 2.0596 3.3861 -0.7869 2.7224 -0.8638 -0.7967 -0.9920 -0.6891 -0.9934 -0.8643 -0.9994 1.0727 0.0127 -0.8460 0.2660 0.4316 -0.9315 -0.6875 -0.9910 3.6819 -0.8293 -0.9868 -0.8229 -0.9853 -0.9986 -0.6509 -0.9788 0.4508 0.5219 1.3267 2.6420 -0.7752 -0.9983 0.0495 -0.8876 -0.9868 2.4113 -0.9708 -0.9748 -0.9851 -0.8598 -0.7812 3.7836 -0.9779 -0.9549 -0.8439 -0.8863 2.7823 -0.9819 0.2169 1.9952 -0.6950 -0.9827 -0.7963 3.5115 -0.4981 -0.9859 -0.8472 -0.9584 -0.9856 -0.4454 -0.7919 -0.9401 -0.8857 -0.8576 -0.9899 -0.5644 -0.9851 -0.3805 -0.7719 2.5589 -0.9976 -0.0352 -0.9196 0.1779 -0.9829 -0.7433 -0.8449 0.6540 3.8518 -0.9060 -0.8891 0.8977 -0.9443 2.5892 -0.6211 -0.8583 -0.7250 -0.8250 -0.7872 -0.9918 -0.4257 1.4100 -0.4880 -0.7884 -0.9065 -0.4520 -0.3659 -0.9741
-0.30765247 2.0874 3.6313 -0.8590 2.7533 -0.8973 -0.8302 -0.9968 -0.7708 -0.9977 -0.9158 -0.9998 0.3432 0.0950 -0.9134 0.3778 0.5169 -0.9653 -0.7091 -0.9946 4.2105 -0.8622 -0.9957 -0.8938 -0.9950 -0.9995 -0.6499 -0.9890 0.5180 0.3468 1.2588 2.90
@jaekookang
jaekookang / img_raw_4543.tsv
Created February 24, 2021 13:42
2021-02-24 image raw 4543 tokens 3072 dimensions
We can't make this file beautiful and searchable because it's too large.
-0.95368487 -0.68 -0.64 -0.95 -0.70 -0.64 -0.95 -0.70 -0.64 -0.97 -0.71 -0.65 -0.99 -0.74 -0.68 -1.01 -0.75 -0.70 -0.99 -0.74 -0.68 -0.99 -0.74 -0.68 -0.99 -0.74 -0.68 -1.01 -0.75 -0.70 -0.99 -0.74 -0.68 -1.02 -0.76 -0.71 -1.01 -0.76 -0.71 -0.98 -0.74 -0.68 -1.01 -0.76 -0.71 -1.01 -0.76 -0.72 -1.02 -0.78 -0.78 -1.04 -0.80 -0.80 -1.09 -0.87 -0.87 -1.12 -0.90 -0.90 -1.08 -0.86 -0.86 -0.97 -0.75 -0.75 -0.75 -0.57 -0.55 -0.42 -0.27 -0.25 -0.08 0.04 0.08 0.27 0.37 0.43 -0.23 -0.10 -0.07 -1.12 -0.93 -0.91 -1.05 -0.86 -0.84 -1.06 -0.87 -0.86 -1.04 -0.86 -0.86 -1.04 -0.87 -0.89 -0.94 -0.68 -0.63 -0.95 -0.70 -0.64 -0.95 -0.70 -0.64 -0.98 -0.72 -0.67 -0.98 -0.72 -0.67 -0.99 -0.74 -0.68 -0.99 -0.74 -0.68 -0.98 -0.72 -0.67 -0.99 -0.74 -0.68 -0.99 -0.74 -0.68 -1.01 -0.75 -0.70 -1.02 -0.76 -0.71 -1.04 -0.79 -0.74 -1.05 -0.80 -0.75 -1.08 -0.83 -0.79 -1.06 -0.82 -0.78 -0.89 -0.67 -0.67 -0.57 -0.41 -0.38 -0.15 -0.02 0.01 0.34 0.43 0.47 0.80 0.85 0.91 1.18 1.19 1.25 1.39 1.40 1.45 1.55 1.55 1.59 1.59 1.59 1.63 1.63 1.63 1.67 0
@jaekookang
jaekookang / img_lab_mobilenetv2.tsv
Last active February 24, 2021 14:02
2021-02-24 MobilleNet v2 based image embedding
ID Category Filename
1900001 book #ID__1900001#NAME__bookplaza_001
1900001 book #ID__1900001#NAME__bookplaza_003
1900001 book #ID__1900001#NAME__bookplaza_004
1900001 book #ID__1900001#NAME__bookplaza_005
1900001 book #ID__1900001#NAME__bookplaza_006
1900001 book #ID__1900001#NAME__bookplaza_007
1900001 book #ID__1900001#NAME__bookplaza_008
1900001 book #ID__1900001#NAME__bookplaza_009
1900001 book #ID__1900001#NAME__bookplaza_010
@jaekookang
jaekookang / img_lab_4543.tsv
Last active February 24, 2021 13:49
2021-02-24 RGB-based image embedding (quick test)
ID Category Filename
1900001 book #ID__1900001#NAME__bookplaza_001
1900001 book #ID__1900001#NAME__bookplaza_003
1900001 book #ID__1900001#NAME__bookplaza_004
1900001 book #ID__1900001#NAME__bookplaza_005
1900001 book #ID__1900001#NAME__bookplaza_006
1900001 book #ID__1900001#NAME__bookplaza_007
1900001 book #ID__1900001#NAME__bookplaza_008
1900001 book #ID__1900001#NAME__bookplaza_009
1900001 book #ID__1900001#NAME__bookplaza_010
@jaekookang
jaekookang / Sync gh-pages + master branches
Created December 7, 2020 17:24 — forked from mandiwise/Sync gh-pages + master branches
Keep gh-pages up to date with a master branch
// Reference: http://lea.verou.me/2011/10/easily-keep-gh-pages-in-sync-with-master/
$ git add .
$ git status // to see what changes are going to be commited
$ git commit -m 'Some descriptive commit message'
$ git push origin master
$ git checkout gh-pages // go to the gh-pages branch
$ git rebase master // bring gh-pages up to date with master
$ git push origin gh-pages // commit the changes
@jaekookang
jaekookang / python_hparam_dotted_dict.py
Last active November 30, 2020 18:20
Python Import Hyper-parameters as a Dotted Dictionary
'''
Make dotted dictionary from hyper-parameter file (.yaml)
This `HParams` class lets you import your hyper-parameter file in .yaml
into Python as a dotted dicionary. There are different approaches to implement
dotted dictionary, but there are not many methods that I was not satisfied with.
For example, `DotMap` module doesn't seem to be stable and becomes errorful silently.
This was the main motivation for developing my own version of dotted dictionary.
Purpose:
@jaekookang
jaekookang / monitor.py
Last active November 30, 2020 01:46
TensorFlow2.x Keras Custom Train Logger Callback
'''
This code snippet was developed based on
- https://github.com/keras-team/keras/issues/2850#issuecomment-222494059
How to use:
```
logger = NBatchLogger(n_display, n_epoch, log_dir)
model.fit(data_generator,
epochs=n_epoch,
callbacks=[logger],
@jaekookang
jaekookang / download_cmu_arctic.sh
Created April 17, 2020 18:30 — forked from r9y9/download_cmu_arctic.sh
CMU ARCTIC download script
#!/bin/bash
# This is a yet another download script for the cmu arctic speech corpus.
# The corpus will be downloaded in $HOME/data/cmu_arctic/
location=$HOME/data/cmu_arctic/
if [ ! -e $location ]
then
echo "Create " $location
@jaekookang
jaekookang / audioprobe_mex.cpp
Created December 5, 2019 19:16
Compile MEX function (Matlab) with RtAudio on macOS
/*
Compiling MEX function including RtAudio for audio mauipulation (Toy example)
Tested on:
- macOS Catalina 10.15
- Matlab R2019b (XCode clang++)
- RtAudio v5.1.0
To use this .cpp file to compile mex function, you need to download RtAudio first
(See https://www.music.mcgill.ca/~gary/rtaudio/).