Thanks for the respones.
These are the steps I used.
Step 1
mkdir torchserve-examples
cd torchserve-examples
git clone https://github.com/pytorch/serve.git
Step 2
wget https://download.pytorch.org/models/densenet161-8d451a50.pth
Step 3
*torch-model-archiver --model-name densenet161 *
*–version 1.0 --model-file serve/examples/image_classifier/densenet_161/model.py *
*–serialized-file densenet161-8d451a50.pth *
*–extra-files serve/examples/image_classifier/index_to_name.json *
–handler image_classifier
Step 4
mkdir model_store
mv densenet161.mar model_store/
torchserve --start --model-store model_store --models densenet161=densenet161.mar
Step 1 to 3 executed well. Just the last command in step 4 gives me issues.
This is first time I’m using AWS for a project like this. I really don’t know what I’m wrong.
What should I do please.