I am just trying to load my own model from files in the assets folder. I am following the simple example below, but am getting the error :“Request to model2/model.json failed with status code 404. Please verify this URL points to the model JSON of the model to load.”
The simple PlayCanvas project is here:
The error seems like it should be simple to solve, but I haven’t had any luck. Any help would be greatly appreciated!
I faced a similar issue with loading a
tf.js model in before, see this thread. You can’t access PlayCanvas assets simply by doing
model2/model.json, instead you need to access them like so. In my case, I found it easier to upload it to Github and then use the raw link to the model from there, which had the added bonus of reducing size of the PlayCanvas project as well.
If you would like to see how I have integrated neural nets into my projects, you can DM me and we can work something out.
Hope this helps, and good luck with your ML project, it’s great to see more integration of PlayCanvas with ML frameworks!