Invalid argument --model_config_file_poll_wait_seconds

倖福魔咒の 提交于 2019-12-22 15:00:24

问题


I'm trying to start tensorflow-serving with the following two options like on the documentation

docker run -t --rm -p 8501:8501 \
    -v "$(pwd)/models/:/models/" tensorflow/serving \
    --model_config_file=/models/models.config \
    --model_config_file_poll_wait_seconds=60

The container does not start because it does not recognize the argument --model_config_file_poll_wait_seconds.

unknown argument: --model_config_file_poll_wait_seconds=60
usage: tensorflow_model_server

I'm on the latest docker image, 1.14.0 and the line is taken straight from the documentation

https://www.tensorflow.org/tfx/serving/serving_config

Does this argument even work?

Many thanks.


回答1:


It seems https://www.tensorflow.org/tfx/serving/serving_config is talking about code that has not been released as a new version yet, which is odd. I will ask about that.

That package is generated from this source: https://github.com/tensorflow/serving/blob/master/tensorflow_serving/g3doc/serving_config.md, it mentions the --model_config_file_poll_wait_seconds flag.

However, the same document for 1.14.0 has no mention of the flag: https://github.com/tensorflow/serving/blob/1.14.0/tensorflow_serving/g3doc/serving_config.md

Try using the nightly tensorflow serving image and see if it works.

docker run -t --rm -p 8501:8501 \
    -v "$(pwd)/models/:/models/" tensorflow/serving:nightly \
    --model_config_file=/models/models.config \
    --model_config_file_poll_wait_seconds=60


来源:https://stackoverflow.com/questions/57891282/invalid-argument-model-config-file-poll-wait-seconds

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!