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", |
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
#!/bin/bash | |
PATH_TO_PACKER/packer build -var 'aws_access_key=MY_AWS_KEY' -var 'aws_secret_key=MY_AWS_SECRET_KEY' PATH_TO_PACKER_JSON/dede.json 2>&1 | sudo tee PATH_TO_OUTPUT/output.txt | |
ami_name=`tail -2 PATH_TO_OUTPUT/output.txt | head -2 | awk 'match($0, /ami-.*/) { print substr($0, RSTART, RLENGTH) }'` | |
aws ec2 modify-image-attribute --image-id $ami_name --launch-permission "{\"Add\":[{\"Group\":\"all\"}]}" |
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", |
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
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: "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: "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_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
# 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 |
OlderNewer