Skip to content

Instantly share code, notes, and snippets.

View tiancaohz's full-sized avatar
🎯
Focusing

Tian Cao tiancaohz

🎯
Focusing
View GitHub Profile
@tiancaohz
tiancaohz / README.md
Created September 17, 2019 20:17 — forked from alexcpn/README.md
Different types of image pre-processing for neural networks

#Server docker run --net=host --runtime=nvidia -it --rm -p 8900:8500 -p 8901:8501 -v /home/alex/coding/IPython_neuralnet/models:/models -e MODEL_NAME=retinanet tensorflow/serving:latest-gpu --rest_api_port=0 --enable_batching=true --model_config_file=/models/model_configs/retinanet.json

#Client

docker run -it --runtime=nvidia --net=host -v /home/alex/coding/IPython_neuralnet:/coding --rm alexcpn/tfserving-keras-retinanet-dev-gpu To run TF Client unset http_proxy unset https_proxy root@drone-OMEN:/coding/tfserving_client#python retinanet_client.py -num_tests=1 -server=127.0.0.1:8500 -batch_size=1 -img_path='../examples/google1.jpg'