I’m trying to follow this article:
I have installed the relevant modules from npm, but I can’t figure out this part:
import '@tensorflow/tfjs-backend-core';
import '@tensorflow/tfjs-backend-webgl';
import * as bodySegmentation from '@tensorflow-models/body-segmentation';
// Uncomment the line below if you want to use TensorFlow.js runtime.
// import '@tensorflow/tfjs-converter';
// Uncomment the line below if you want to use MediaPipe runtime.
// import '@mediapipe/selfie_segmentation';
I don’t have @tensorflow/tfjs-backend-core and I can’t find any reference to in on npm, or anywhere else. Where do I get it from?
Thanks for the bug report! This should say @tensorflow/tfjs-core
instead of @tensorflow/tfjs-backend-core
. I’ll update it.
please I’m trying to follow this article too, but i have a problem with body-segmentation installation ! i juste can’t, so in my app i can’t found bodysegmentation , i tried also to install it in local but i still have a problem, i don’t know if there is any possible solutions , my error :
Failed to compile.
Module not found: Error: Can't resolve '@tensorflow/body-segmentation' in 'C:\Users\chaimae.seghir\Desktop\try2\mon-app\src'
ERROR in ./src/App.js 7:0-66
Module not found: Error: Can't resolve '@tensorflow/body-segmentation' in 'C:\Users\chaimae.seghir\Desktop\try2\mon-app\src'
and when i try to install it :
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@tensorflow%2fbody-segmentation - Not found
npm ERR! 404
npm ERR! 404 '@tensorflow/body-segmentation@*' is not in this registry.
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\chaimae.seghir\AppData\Local\npm-cache\_logs\2023-04-13