Skip to content

Instantly share code, notes, and snippets.

View daa233's full-sized avatar
🎯
Focusing

Du Ang daa233

🎯
Focusing
  • OUC -> Megvii
  • Beijing, China
View GitHub Profile
@daa233
daa233 / map_clsloc.txt
Created September 29, 2018 11:15 — forked from aaronpolhamus/map_clsloc.txt
Image net classes + labels
n02119789 1 kit_fox
n02100735 2 English_setter
n02110185 3 Siberian_husky
n02096294 4 Australian_terrier
n02102040 5 English_springer
n02066245 6 grey_whale
n02509815 7 lesser_panda
n02124075 8 Egyptian_cat
n02417914 9 ibex
n02123394 10 Persian_cat
@daa233
daa233 / tf_ms_ssim.py
Created September 20, 2018 08:29 — forked from charliememory/tf_ms_ssim.py
tensorflow implement of Multiscale SSIM
#################### MS_SSIM Loss #####################
## ref code: https://stackoverflow.com/questions/39051451/ssim-ms-ssim-for-tensorflow
def _tf_fspecial_gauss(size, sigma):
"""Function to mimic the 'fspecial' gaussian MATLAB function
"""
x_data, y_data = np.mgrid[-size//2 + 1:size//2 + 1, -size//2 + 1:size//2 + 1]
x_data = np.expand_dims(x_data, axis=-1)
x_data = np.expand_dims(x_data, axis=-1)
@daa233
daa233 / tmux-cheatsheet.markdown
Created August 31, 2018 03:09 — forked from ryerh/tmux-cheatsheet.markdown
Tmux 快捷键 & 速查表

注意:本文内容适用于 Tmux 2.3 及以上的版本,不计划兼容低版本。

Tmux 快捷键 & 速查表

启动新会话:

tmux [new -s 会话名 -n 窗口名]

恢复会话: