serve icon indicating copy to clipboard operation
serve copied to clipboard

Model Archiver instructions incomplete & incorrect in README

Open fbbradheintz opened this issue 6 years ago • 0 comments

In /README.md, in the "Serve a Model" section, there is a command line for creating a model archive for the downloaded DenseNet-161 model:

torch-model-archiver --model-name densenet161 --model-file serve/examples/densenet_161/model.py --serialized-file densenet161-8d451a50.pth --extra-files serve/examples/index_to_name.json

This fails with the message:

torch-model-archiver: error: the following arguments are required: --handler

Also, the paths are incorrect - it should be examples/image_classifier/densenet_161 for both of the specified paths.

fbbradheintz avatar Jan 28 '20 23:01 fbbradheintz