Closed jonnytest1 closed 5 years ago
This should be fixed, can you try hard reloading?
still seems to be a problem (I did ctrl f5 and cleared site data still got the error )
I also noticed in testing that it also displays this in the console (-.- why would i ever switch off error messages im an idiot )
Access to fetch at 'https://tfhub.dev/google/imagenet/mobilenet_v1_100_224/classification/1/group1-shard4of5?tfjs-format=file' from origin 'null' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
Ah right, apologies. 1.2.5 is about to be released which will fix this.
oh thx Ill wait for 1.2.5 then by the way : did u skip 1.2.4 ?
To get help from the community, we encourage using Stack Overflow and the
tensorflow.js
tag.TensorFlow.js version
most recent
Browser version
Describe the problem or feature request
this example https://github.com/tensorflow/tfjs-models/tree/master/knn-classifier#via-script-tag caused 'Failed to fetch' on mobilenet.load()
=> TypeError: Failed to fetch
additional information: network log yields only successful/redirect requests
the shards only send their OPTIONS request though
Code to reproduce the bug / link to feature request
mobilenet.load().catch(console.error)