注意:本文内容适用于 Tmux 2.3 及以上的版本,不计划兼容低版本。
启动新会话:
tmux [new -s 会话名 -n 窗口名]
恢复会话:
| 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 |
| #################### 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) |