-
Notifications
You must be signed in to change notification settings - Fork 14
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
Fetch from tensorflow js fails #1
Comments
As correctly noted from the article comments this is caused by the fetch request from tfjs which only supports network fetch requests and not local requests
I will look into what can be done to fix this |
Hey @daniel-sudz this is a great. If you are able to fix this, let me know, and with your permission, I'd add the you use case as well as your solution in the post itself. I haven't played much with tfjs tbh, and am just exploring the use cases just like you. :) I'll let the issue open, until you decide to close it. |
Hi, is there an update on this ? I ran into the same error |
@Hasherz96 I think TFJS now supports local requests in React Native. I will be updating the article/repo soon. |
any updates on this? |
@amandeepmittal have you been able to sucessfully request local files through the fetch function with the latest version of TFJS? |
Does anyone have any idea why it's working on an iOS simulator, but it crashes on an Android mobile device (not emulator)? |
Hey @amandeepmittal, I have made some changes and opened a pull request that fixes the problem on android but I was not able to test it on ios (not having an ios device) maybe you can test it on ios and let me know if there is anything that needs to be fixed 😄 |
Hey @sarthakpranesh thanks for the PR. Let me test on iOS and get back to you. |
After selecting an image the fetch request from tfjs fails
Network request failed
- node_modules\@tensorflow\tfjs-react-native\dist\platform_react_native.js:80:49 in onerror
- node_modules\event-target-shim\lib\event-target.js:172:43 in dispatchEvent
- ... 8 more stack frames from framework internals
The text was updated successfully, but these errors were encountered: