Skip to content
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

Tensorflow TypeError: Cannot read properties of undefined (reading 'backend') #8418

Closed
SoftRobotmobileerp opened this issue Oct 17, 2024 · 6 comments

Comments

@SoftRobotmobileerp
Copy link

Please make sure that this is a build/installation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template

System information

  • OS Platform and Distribution (Windows Server 2022 Standard):
  • Mobile device (Android) if the issue happens on mobile device:
  • TensorFlow.js installed from npm:
  • TensorFlow.js Version: 2.17.0

Describe the problem

0|face-app-node-api | (node:8508) Warning: Label 'Face Detection Process Time' already exists for console.time()
0|face-app-node-api | TypeError: Cannot read properties of undefined (reading 'backend')
0|face-app-node-api | at Engine.moveData (C:\face-app-node-api\node_modules\tfjs-image-recognition-base\node_modules@tensorflow\tfjs-core\dist\engine.js:349:31)
0|face-app-node-api | at DataStorage.get (C:\face-app-node-api\node_modules\tfjs-image-recognition-base\node_modules@tensorflow\tfjs-core\dist\backends\backend.js:31:28)
0|face-app-node-api | at Object.kernelFunc (C:\face-app-node-api\node_modules\tfjs-image-recognition-base\node_modules@tensorflow\tfjs-core\dist\backends\cpu\utils\kernel_utils.js:32:41)
0|face-app-node-api | at kernelFunc (C:\face-app-node-api\node_modules\tfjs-image-recognition-base\node_modules@tensorflow\tfjs-core\dist\engine.js:499:30)
0|face-app-node-api | at C:\face-app-node-api\node_modules\tfjs-image-recognition-base\node_modules@tensorflow\tfjs-core\dist\engine.js:553:27
0|face-app-node-api | at Engine.scopedRun (C:\face-app-node-api\node_modules\tfjs-image-recognition-base\node_modules@tensorflow\tfjs-core\dist\engine.js:398:23)
0|face-app-node-api | at Engine.runKernelFunc (C:\face-app-node-api\node_modules\tfjs-image-recognition-base\node_modules@tensorflow\tfjs-core\dist\engine.js:551:14)
0|face-app-node-api | at div_ (C:\face-app-node-api\node_modules\tfjs-image-recognition-base\node_modules@tensorflow\tfjs-core\dist\ops\div.js:66:28)
0|face-app-node-api | at Object.div (C:\face-app-node-api\node_modules\tfjs-image-recognition-base\node_modules@tensorflow\tfjs-core\dist\ops\operation.js:46:29)
0|face-app-node-api | at tensor_1.Tensor.div (C:\face-app-node-api\node_modules\tfjs-image-recognition-base\node_modules@tensorflow\tfjs-core\dist\public\chained_ops\div.js:22:18)

Any other info / logs
This occurs when we try to access face vectors after capturing photo from android mobile phone

@shmishra99
Copy link
Contributor

Hi @SoftRobotmobileerp ,

Could you please check the following issue to see if it relates to your issue?
To investigate further, kindly share the following:

  1. Your package.json file.
  2. A small, reproducible code snippet.

Thank You!!

@SoftRobotmobileerp
Copy link
Author

package.json

@shmishra99
Copy link
Contributor

@SoftRobotmobileerp Could you please share a small, reproducible code snippet as well?

Copy link

This issue has been marked stale because it has no recent activity since 7 days. It will be closed if no further activity occurs. Thank you.

@github-actions github-actions bot added the stale label Oct 25, 2024
Copy link

github-actions bot commented Nov 1, 2024

This issue was closed due to lack of activity after being marked stale for past 7 days.

@github-actions github-actions bot closed this as completed Nov 1, 2024
Copy link

Are you satisfied with the resolution of your issue?
Yes
No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants