We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I tried to do the example from scratch, but on the line:
this.model = await tf.loadModel('/assets/model.json');
I'm getting this error:
SyntaxError: Unexpected token < in JSON at position 0
In my assets folder I just copy/pasted the same assets that this repo:
assets ├── group1-shard1of1 ├── group2-shard1of1 ├── group3-shard1of2 ├── group3-shard2of2 ├── group4-shard1of1 └── model.json
And the file that contains the line:
is in the same level than assets.
Any idea about why is happening this? I would like to load the model 😄
Thanks!
The text was updated successfully, but these errors were encountered:
Sorry, my mistake. Was because instead of on the same folder, in my example the assets needs to be inside /public.
The error message was a little bit confusing 😄
Sorry, something went wrong.
No branches or pull requests
I tried to do the example from scratch, but on the line:
this.model = await tf.loadModel('/assets/model.json');
I'm getting this error:
SyntaxError: Unexpected token < in JSON at position 0
In my assets folder I just copy/pasted the same assets that this repo:
assets
├── group1-shard1of1
├── group2-shard1of1
├── group3-shard1of2
├── group3-shard2of2
├── group4-shard1of1
└── model.json
And the file that contains the line:
this.model = await tf.loadModel('/assets/model.json');
is in the same level than assets.
Any idea about why is happening this? I would like to load the model 😄
Thanks!
The text was updated successfully, but these errors were encountered: