This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def trainGenerator(batch_size, | |
| train_path, | |
| image_folder, | |
| mask_folder, | |
| aug_dict, | |
| image_color_mode="grayscale", | |
| mask_color_mode="grayscale", | |
| image_save_prefix="image", | |
| mask_save_prefix="mask", | |
| flag_multi_class=False, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # to generate keystore | |
| keytool -genkey -v -keystore debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000 | |
| # to get debug key | |
| keytool -list -v -keystore debug.keystore -alias androiddebugkey -storepass android -keypass android |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # install packages | |
| sudo pacman -S android-tools android-udev | |
| # accept Android SDK licenses | |
| .~/Android/sdk/tools/bin/sdkmanager --licenses | |
| # references | |
| # https://wiki.archlinux.org/index.php/Android_Debug_Bridge |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # do check your nvidia driver version which is compatible with a cuda version | |
| # https://docs.nvidia.com/deploy/cuda-compatibility/index.html | |
| conda install -c anaconda cudatoolkit | |
| # and then instal your nvidia driver e.g. nvidia-driver-418 | |
| conda install -c conda-forge keras | |
| conda install -c anaconda tensorflow-gpu | |
| conda install scikit-image | |
| conda install -c conda-forge opencv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # extract android-studio compressed file to ~/bin/ | |
| # intall java jdk | |
| sudo apt install -y openjdk-8-jdk | |
| # add this to .zshrc or .bashrc | |
| # java config for android-studio | |
| export _JAVA_AWT_WM_NONREPARENTING=1 | |
| # create a symbolic link for calling from everywhere |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| service docker stop | |
| dockerd --max-concurrent-downloads 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # .zshrc file | |
| [[ $TMUX = "" ]] && export TERM="xterm-256color" | |
| # .tmux.conf file | |
| set -g default-terminal "screen-256color" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for ((i=1; i<=16; i++)); rclone moveto "cmu:Computer Engineering/Karn's Research Assistance/CCC Grading/dev/segmentation/data/eye_v3-baseline_v12_multiclass-softmax-cce-lw_1_0.01-hsv-loo_$i-lr_1e_2-bn/" "cmu:Computer Engineering/Karn's Research Assistance/CCC Grading/dev/segmentation/data/eye_v3-model_v12_multiclass-softmax-cce-lw_1_0.01-hsv-loo_$i-lr_1e_2-bn/"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Let NetworkManager manage all devices on this system | |
| network: | |
| version: 2 | |
| renderer: NetworkManager | |
| ethernets: | |
| # comment the below lines to enable DHCP | |
| wlp6s0: | |
| dhcp4: no | |
| dhcp6: no | |
| addresses: [10.10.186.203/24, ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://prod.liveshare.vsengsaas.visualstudio.com/join?1E9735368B4E59E99811D5423C8629F8D92D |