This file contains 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
# following http://kislayabhi.github.io/Installing_CUDA_with_Ubuntu/ | |
# Problem was the following: package installer always installed CUDA 8.0 | |
# Run-File install as in https://devtalk.nvidia.com/default/topic/920308/how-to-install-cuda-7-5-with-the-newest-nvidia-driver-361-28-/ resulted in "login loop" | |
# After setting up the OS in Ubuntu 14.04 there is initially only command line | |
# Download: A reasonably up-to-date NVIDIA driver: http://www.nvidia.com/download/driverResults.aspx/98373/en-us#axzz41eljfR2P | |
# Download: CUDA 7.5 Run-File: http://developer.download.nvidia.com/compute/cuda/7.5/Prod/local_installers/cuda_7.5.18_linux.run | |
# Download: cuDNN 5.1 | |
sudo apt-get install build-essential |
This file contains 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
#docker, start with port 9000 as in TF serving example on old commit https://gist.github.com/revilokeb/02894302701fcea7ef4e85a92514e246 | |
nvidia-docker run --rm -ti -p 9000 -v /myhosthome:/mydockerhome tf_serving_old_commit_cuda7.5_cudnn5:latest bash | |
#docker, upgrade six | |
sudo pip install --upgrade six | |
#docker, install grpcio | |
sudo pip install grpcio | |
#docker, download inception-v3 pre-trained model and export (https://tensorflow.github.io/serving/serving_inception.html) |
This file contains 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
# Create docker image with TF serving on GPU | |
# Ubuntu 14.04 LTS with nvidia-docker (https://github.com/NVIDIA/nvidia-docker) | |
# docker: docker bash | |
# host: bash on host machine | |
#host, pull nvidia-docker latest | |
nvidia-docker pull nvidia/cuda | |
#docker, start docker bash | |
nvidia-docker run --rm -ti -v /myhosthome:/mydockerhome nvidia/cuda:latest bash |
This file contains 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
# Create docker image with TF serving on GPU | |
# Ubuntu 14.04 LTS with nvidia-docker (https://github.com/NVIDIA/nvidia-docker) | |
# docker: docker bash | |
# host: bash on host machine | |
#host, pull nvidia-docker latest | |
nvidia-docker pull nvidia/cuda | |
#docker, start docker bash | |
nvidia-docker run --rm -ti -v /myhosthome:/mydockerhome nvidia/cuda:latest bash |
This file contains 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
name: "wrn_28_10_dropout" | |
layer { | |
name: "Data1" | |
type: "Data" | |
top: "Data1" | |
top: "Data2" | |
include { | |
phase: TRAIN | |
} | |
transform_param { |
This file contains 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
net: "MY_PATH/wrn_28_10_train_val.prototxt" | |
test_iter: 157 | |
test_interval: 390 | |
test_initialization: false | |
iter_size: 1 | |
#type: "RMSProp" | |
#rms_decay: 0.9 | |
#delta: 1.0 | |
type: "Nesterov" | |
display: 390 |
This file contains 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
name: "wrn_28_10" | |
layer { | |
name: "Data1" | |
type: "Data" | |
top: "Data1" | |
top: "Data2" | |
include { | |
phase: TRAIN | |
} | |
transform_param { |
This file contains 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
net: "/inception_resnet_v2_train_test_2ndtry.prototxt" | |
test_iter: 25000 | |
test_interval: 40000 | |
test_initialization: false | |
iter_size: 1 | |
type: "RMSProp" | |
rms_decay: 0.9 | |
delta: 1.0 | |
display: 500 | |
average_loss: 1000 |
This file contains 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
name: "Inception_Resnet2_Imagenet" | |
layer { | |
name: "data" | |
type: "Data" | |
top: "data" | |
top: "label" | |
include { | |
phase: TRAIN | |
} | |
transform_param { |
This file contains 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
{ | |
"variables": { | |
"aws_access_key": "", | |
"aws_secret_key": "" | |
}, | |
"builders": [{ | |
"type": "amazon-ebs", | |
"access_key": "{{user `aws_access_key`}}", | |
"secret_key": "{{user `aws_secret_key`}}", | |
"region": "eu-west-1", |
NewerOlder