-
Notifications
You must be signed in to change notification settings - Fork 903
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
model topology missing handpose regression #1479
Comments
I have narrowed this down to the model.json array structure being structured differently on .save() with latest alpha releases. I have to step back to version [email protected] to get the model load() function to work but of course this is not compatible with the latest ml5.hand.pose |
JSON structure for version 0.4.3
|
model.JSON for later versions
|
So you can see config is structured differently. |
Although to note: the newer JSON structure works fine with classification and can be saved and loaded without issue. Its only regression i am seeing this error |
This is definitely specific to I can now run the regression training, saving and loading with |
Looks like the 0.4.3 version stores the array of layers as the The specific error message "modelTopology field is missing from file model.json" is odd though. It makes me wonder if we are passing it to TFJS incorrectly. Like passing a portion of the object rather than the whole object. Or passing |
So I have tried to see if editing the array structure from how the |
It is also unrelated to handpose.js as this error persists even on a simple mouse position regression example. |
Dear ml5 community,
I'm submitting a new issue. Please see the details below.
→ Step 1:
I am using HandPose.js and ML5 neural net function to train a regression model. This works well and predict outputs as expected. However, I am now saving the model and trying to preload it so it can be run without the need to train every time. The Save function works and provides me with 3 files. Yet when i load these files I get a 'modelTopology field is missing from file model.json' console error. When i check the model.json file the topology is there. Is it a case that the naming structure for handpose is not [sequential]? or perhaps a ML5 version issue? I am using
https://unpkg.com/[email protected]/dist/ml5.js
→ Step 2: Screenshots
→ Step 3: Share an example of the issue 🦄
Other relevant information, if applicable
→ Describe your setup 🦄
The text was updated successfully, but these errors were encountered: