我的.tflite模型在react-native expo应用程序中的不兼容问题

k2arahey  于 6个月前  发布在  React
关注(0)|答案(1)|浏览(59)

我使用react-native与expo和npm,我有一个问题,使用我的model. tflite。
我尝试了很多次安装react-native库,例如react-native-fast-tflite或tensorflow/tfjs,但所有这些都在安装过程中给我带来了问题,因为expo相机版本不兼容。我试图更改expo相机的版本,但似乎没有工作。我也尝试了强制安装,但它也不工作。你认为有解决方案吗?

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/expo-camera
npm ERR!   expo-camera@"^13.6.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer expo-camera@"^7.0.0" from @tensorflow/[email protected]
npm ERR! node_modules/@tensorflow/tfjs-react-native
npm ERR!   @tensorflow/tfjs-react-native@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

字符串

zazmityj

zazmityj1#

我试过了--传统的同行关系,现在它对我很好。

相关问题