Unanswered
Hello!
I'Ve Been Trying To Use Clearml For The First Time, But I Cannot Seem To Run The First Serving Model.
First, I Run The Following In Powershell:
>>> Clearml-Serving Create --Name "June Test"
Log:
Clearml-Serving - Cli For Launching Clearml Serving
Hi @<1523701070390366208:profile|CostlyOstrich36>
Sorry for the delayed response.
No errors in the serving containers.
I did follow the link you've shared before posting. I ran the following:curl.exe -X POST "
None " -H "accept: application/json" -H "Content-Type: application/json" -d '{"x0": 1, "x1": 2}'
(note that I'm using port 8082, since 8080 is already taken by ClearML Server on this VM).
and got the following response:
{"detail":[{"type":"json_invalid","loc":["body",1],"msg":"JSON decode error","input":{},"ctx":{"error":"Expecting property name enclosed in double quotes"}}]}
So I fixed it by changing:-d '{"x0": 1, "x1": 2}'
to:'{\"x0\": 1, \"x1\": 2}'
And I'm back to the original issue I had (in the image), with the log:
{"detail":"Error [<class 'ValueError'>] processing request: Expected 2D array, got scalar array instead:\narray={'x0': 1, 'x1': 2}.\nReshape your data either using array.reshape(-1, 1) if you
r data has a single feature or array.reshape(1, -1) if it contains a single sample."}
Am I the only one encountering it? 😞
43 Views
0
Answers
2 months ago
2 months ago