Skip to content

TFJS : Error: All values in axis param must be in range [-4, 4) but got axis -272777233,-1074807361 #7202

@ygf8

Description

@ygf8

TensorFlow.js version:
"@tensorflow/tfjs": "^4.1.0"

Capture d’écran 2022-12-28 à 23 04 47

I get this error message during prediction but the problem comes from the way the model was loaded. Indeed, when I load my model with tf.loadGraphModel and my model (.json + .bin) is on local or public server I have no problem.
when the model is loaded (without error message) from an external filesystem I get this problem. I'm sure that the .json has been loaded correctly and that it refers to the .bin weights.
Where I have a doubt is on the encoding or format of the .bin that are returned through the filesystem.

However when I consult the responses to the requests, it seems that the .bin is complete:

(locally with predictions that work)
Capture d’écran 2022-12-28 à 23 14 02
(locally with predictions KO)
Capture d’écran 2022-12-28 à 23 13 22

Please, Is there anything I missed?

(the filesystem extracts the data "application/octet-stream" and I return the buffer (data.Body) as it seems to be done when the model is served locally)

thank you in advance for your help

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions