This is the sequence of steps to follow to create a root gh-pages branch. It is based on a question at [SO]
cd /path/to/repo-name
git symbolic-ref HEAD refs/heads/gh-pages
rm .git/index
git clean -fdx
echo "My GitHub Page" > index.html
| from scipy.io.wavfile import read, write | |
| import io | |
| ## This may look a bit intricate/useless, considering the fact that scipy's read() and write() function already return a | |
| ## numpy ndarray, but the BytesIO "hack" may be useful in case you get the wav not through a file, but trough some websocket or | |
| ## HTTP Post request. This should obviously work with any other sound format, as long as you have the proper decoding function | |
| with open("input_wav.wav", "rb") as wavfile: | |
| input_wav = wavfile.read() |
| { | |
| "embeddings": [ | |
| { | |
| "tensorName": "category_64_2021-04-09", | |
| "tensorShape": [ | |
| 12799, | |
| 100 | |
| ], | |
| "tensorPath": "https://gist.githubusercontent.com/jaekookang/0ea1946dbaf08931ca247446a11b28b4/raw/372923af67fdc4c5a83f4989ede636ca9bee77df/img_embed.tsv", | |
| "metadataPath": "https://gist.githubusercontent.com/jaekookang/de5e5ff57fb71788d2e4d33ff31acf42/raw/d6b57aa84aa77e571759c3726d38941894bedcbf/img_label.tsv" |
| 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 |
| -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 |
| -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 |
| 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 |
| 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 |
| // 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 |
| ''' | |
| 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: |