Skip to content

Commit

Permalink
Update Resnet model used in K8S tutorial
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 420172569
  • Loading branch information
Wei Wei authored and tensorflow-copybara committed Jan 7, 2022
1 parent d3f9b27 commit 6e76f6a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tensorflow_serving/g3doc/serving_kubernetes.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,12 @@ networks. For our example, we will download a TensorFlow SavedModel of ResNet
for the ImageNet dataset.

```shell
mkdir /tmp/resnet
curl -s http://download.tensorflow.org/models/official/20181001_resnet/savedmodels/resnet_v2_fp32_savedmodel_NHWC_jpg.tar.gz | \
tar --strip-components=2 -C /tmp/resnet -xvz
# Download Resnet model from TF Hub
wget https://tfhub.dev/tensorflow/resnet_50/classification/1?tf-hub-format=compressed -o resnet.tar.gz

# Extract SavedModel into a versioned subfolder ‘123’
mkdir -p /tmp/resnet/123
tar xvfz resnet.tar.gz -C /tmp/resnet/123/
```

We can verify we have the SavedModel:
Expand Down Expand Up @@ -154,7 +157,7 @@ outputs {
model_spec {
name: "resnet"
version {
value: 1538687457
value: 123
}
signature_name: "serving_default"
}
Expand Down

0 comments on commit 6e76f6a

Please sign in to comment.