Coder Social home page Coder Social logo

Poll failed for model directory 'diabetes_model': Invalid model name: Could not determine backend for model 'diabetes_model' with no backend in model configuration. Expected model name of the form 'model.<backend_name>' about server HOT 3 CLOSED

Manishthakur2503 avatar Manishthakur2503 commented on July 26, 2024
Poll failed for model directory 'diabetes_model': Invalid model name: Could not determine backend for model 'diabetes_model' with no backend in model configuration. Expected model name of the form 'model.'

from server.

Comments (3)

Manishthakur2503 avatar Manishthakur2503 commented on July 26, 2024

I tried to print basic information about the model using : print(onnx.helper.printable_graph(onnx_model.graph)) and got this :graph model-onnx (
%float_input[FLOAT, ?x8]
) {
%label, %probabilities = LinearClassifierclasslabels_ints = [0, 1], coefficients = [-1.15231204032898, -3.61196088790894, 0.323476761579514, -0.234493508934975, -0.0497973449528217, -2.38965225219727, -1.12923967838287, -0.840260863304138, 1.15231204032898, 3.61196088790894, -0.323476761579514, 0.234493508934975, 0.0497973449528217, 2.38965225219727, 1.12923967838287, 0.840260863304138], intercepts = [4.81376791000366, -4.81376791000366], multi_class = 0, post_transform = 'LOGISTIC'
%output_label = Castto = 7
%output_probability = ZipMapclasslabels_int64s = [0, 1]
return %output_label, %output_probability
}.

So is there anything I am missing in the config file?

from server.

indrajit96 avatar indrajit96 commented on July 26, 2024

Hello @Manishthakur2503 thanks for reaching out, this looks like a model repository error.
Is your model repository accessible inside the container?
Is the structure of your model repository?

/
/
config.pbtxt
/
model.onnx

Before you do
docker run --rm --name tritonserver -p 8000:8000 -p 8001:8001 -p 8002:8002 -v /mnt/host/c/Projects/ML/NvidiaTriton/model_repository:/models nvcr.io/nvidia/tritonserver:23.01-py3 tritonserver --model-repository=/models

Can you check if /models is as expected in the container?

Look at this tutorial https://github.com/triton-inference-server/server/blob/main/docs/getting_started/quickstart.md
This too load a onnx model the way you are trying to.

Thanks,
Indrajit

from server.

Manishthakur2503 avatar Manishthakur2503 commented on July 26, 2024

Hi @indrajit96

Thanks for your response.

I checked the model repository structure, and it was correct. However, the issue was with the input dimensions in the config file, which was causing the error. I have fixed it now, and everything is working fine.

Thanks,
Manish Thakur

from server.

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.