You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Downloadingmodel_index.json|████████████████████████████████████████|100%|587Bytes/587Bytesundefined:1
SyntaxError: UnexpectedendofJSONinputatJSON.parse(<anonymous>)
at getModelJSON (file:///F:/Programming/node_modules/@aislamov/diffusers.js/dist/index-node.esm.js:109:15)
at async DiffusionPipeline.fromPretrained (file:///F:/Programming/node_modules/@aislamov/diffusers.js/dist/index-node.esm.js:1178:19)
Node.js v18.15.0
I think here is similar error to that first one - model_index.json.tmp should be renamed to model_index.json, so then the Unexpected end of JSON input won't occur anymore.
Last error i got is:
F:\Programming\node_modules\onnxruntime-node\dist\backend.js:24__classPrivateFieldGet(this,_OnnxruntimeSessionHandler_inferenceSession,"f").loadModel(pathOrBuffer,options);^
Error: FailedtofindkernelforBiasSplitGelu(1)(nodeBiasSplitGelu_0).KernelnotfoundatnewOnnxruntimeSessionHandler(F:\Programming\node_modules\onnxruntime-node\dist\backend.js:24:92)
at F:\Programming\node_modules\onnxruntime-node\dist\backend.js:64:29atprocess.processTicksAndRejections(node:internal/process/task_queues:77:11)Node.jsv18.15.0
The text was updated successfully, but these errors were encountered:
Thanks for the feedback, i will fix the rename issue in the next release. As you use node.js with CPU, you need to add --rev cpu to command line when running node example. That way it will download a special model version without GPU-specific optimizations
CUDA/DML providers for node.js are not yet released by ONNX team (my PR for that was already merged microsoft/onnxruntime#16050 )
When firstly executed
node index.mjs
with the sample code for node.js, provided error occurs:When I run that secondly, another error occurs:
I think here is similar error to that first one -
model_index.json.tmp
should be renamed tomodel_index.json
, so then the Unexpected end of JSON input won't occur anymore.Last error i got is:
The text was updated successfully, but these errors were encountered: