Coder Social home page Coder Social logo

Comments (6)

hungtrieu07 avatar hungtrieu07 commented on May 31, 2024

Can you try curl http://127.0.0.1:8080/ping ? It will return Status equals Healthy if your service run smoothly, else return Unhealthy

from serve.

hungtrieu07 avatar hungtrieu07 commented on May 31, 2024

This is my config.properties file, you can refer to it:

inference_address=http://0.0.0.0:8080
management_address=http://0.0.0.0:8081
metrics_address=http://0.0.0.0:8082
load_models=all
install_py_dep_per_model=true
model_store=model-store
models={\
  "FaceDetection": {\
    "1.0": {\
        "defaultVersion": true,\
        "marName": "FaceDetection.mar",\
        "minWorkers": 1,\
        "maxWorkers": 1,\
        "batchSize": 256,\
        "maxBatchDelay": 100,\
        "responseTimeout": 120\
    }\
  },\
  "FaceExpression": {\
    "1.0": {\
        "defaultVersion": true,\
        "marName": "FaceExpression.mar",\
        "minWorkers": 1,\
        "maxWorkers": 4,\
        "batchSize": 256,\
        "maxBatchDelay": 100,\
        "responseTimeout": 120\
    }\
  },\
  "FaceRecognition": {\
    "1.0": {\
        "defaultVersion": true,\
        "marName": "FaceRecognition.mar",\
        "minWorkers": 1,\
        "maxWorkers": 4,\
        "batchSize": 256,\
        "maxBatchDelay": 100,\
        "responseTimeout": 120\
    }\
  },\
    "HumanPose": {\
    "1.0": {\
        "defaultVersion": true,\
        "marName": "HumanPose.mar",\
        "minWorkers": 1,\
        "maxWorkers": 4,\
        "batchSize": 256,\
        "maxBatchDelay": 100,\
        "responseTimeout": 120\
    }\
  },\
  "ActionRecognition": {\
    "1.0": {\
        "defaultVersion": true,\
        "marName": "ActionRecognition.mar",\
        "minWorkers": 1,\
        "maxWorkers": 4,\
        "batchSize": 256,\
        "maxBatchDelay": 100,\
        "responseTimeout": 120\
    }\
  }\
}

from serve.

namannandan avatar namannandan commented on May 31, 2024

@danial880 Once you've started torchserve and loaded the model could you please try the following API to check that the model has been successfully loaded and the workers have started successfully:
curl http://127.0.0.1:8081/models/facex

Also, when you run curl -X POST http://127.0.0.1:8080/predictions/facex -T 0294.png what happens?
Does curl hang or show any error?

from serve.

danial880 avatar danial880 commented on May 31, 2024

Status

Screenshot from 2024-03-21 11-39-05

Model Info

Screenshot from 2024-03-21 11-42-11

Upon posting image: curl command get executed with no error
Screenshot from 2024-03-21 11-50-25

from serve.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.