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

Error: input error: type not recognized at U2 #397

Closed
baditaflorin opened this issue Oct 17, 2023 · 1 comment
Closed

Error: input error: type not recognized at U2 #397

baditaflorin opened this issue Oct 17, 2023 · 1 comment
Assignees

Comments

@baditaflorin
Copy link


const compareHumans = async (imageURL1, imageURL2) => {
  const config = {
    backend: 'tensorflow',
    modelBasePath: 'https://cdn.jsdelivr.net/npm/@vladmandic/human/models/',
    debug: true,
    async: true,
    profile: false,
    face: {
      enabled: true,
      detector: {
        rotation: true,
        maxDetected: 10,
        return: true
      },
      description: {
        enabled: true
      },
      emotion: {
        enabled: true
      }
    }
  };

  const net = new human(config);
19:01:50.450 Human: version: 3.1.2
19:01:50.450 Human: tfjs version: 4.11.0
19:01:50.450 Human: environment: {
  browser: false,
  node: true,
  platform: 'darwin arm64',
  agent: 'NodeJS v20.7.0',
  backends: [],
  tfjs: { version: '4.11.0' },
  offscreen: false,
  tensorflow: {},
  wasm: {},
  webgl: {},
  webgpu: {},
  cpu: { flags: [] }
}
19:01:50.879 Human: available backends: [ 'cpu', 'tensorflow' ]
19:01:50.879 Human: setting backend: [ 'tensorflow' ]
19:01:50.880 Human: registered kernels: [ 'floormod' ]
19:01:51.791 Human: load: {
  model: 'blazeface',
  url: 'https://cdn.jsdelivr.net/npm/@vladmandic/human/models/blazeface.json',
  bytes: 0
}
19:01:52.062 Human: load: {
  model: 'emotion',
  url: 'https://cdn.jsdelivr.net/npm/@vladmandic/human/models/emotion.json',
  bytes: 0
}
19:01:54.032 Human: load: {
  model: 'handlandmark-lite',
  url: 'https://cdn.jsdelivr.net/npm/@vladmandic/human/models/handlandmark-lite.json',
  bytes: 0
}
19:01:54.135 Human: load: {
  model: 'facemesh',
  url: 'https://cdn.jsdelivr.net/npm/@vladmandic/human/models/facemesh.json',
  bytes: 0
}
19:01:54.700 Human: load: {
  model: 'movenet-lightning',
  url: 'https://cdn.jsdelivr.net/npm/@vladmandic/human/models/movenet-lightning.json',
  bytes: 0
}
19:01:54.917 Human: load: {
  model: 'iris',
  url: 'https://cdn.jsdelivr.net/npm/@vladmandic/human/models/iris.json',
  bytes: 0
}
19:01:55.119 Human: load: {
  model: 'handtrack',
  url: 'https://cdn.jsdelivr.net/npm/@vladmandic/human/models/handtrack.json',
  bytes: 0
}
19:01:56.381 Human: load: {
  model: 'faceres',
  url: 'https://cdn.jsdelivr.net/npm/@vladmandic/human/models/faceres.json',
  bytes: 0
}
19:01:56.381 Human: tf engine state: 238848732 bytes 3016 tensors
Unhandled Rejection at: Promise {
  <rejected> Error: input error: type not recognized
      at U2 (/Users/florin/Documents/GITHUB_PROJECTS/scrape_hub/src/node/node_modules/@vladmandic/human/dist/human.node.js:99:9561)
      at /Users/florin/Documents/GITHUB_PROJECTS/scrape_hub/src/node/node_modules/@vladmandic/human/dist/human.node.js:840:7220
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
} reason: Error: input error: type not recognized
    at U2 (/Users/florin/Documents/GITHUB_PROJECTS/scrape_hub/src/node/node_modules/@vladmandic/human/dist/human.node.js:99:9561)
    at /Users/florin/Documents/GITHUB_PROJECTS/scrape_hub/src/node/node_modules/@vladmandic/human/dist/human.node.js:840:7220
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

@vladmandic
Copy link
Owner

when opening an issue spend 5min actually describing it, not just dump partial code (this is not complete code) and log.
in general, Error: input error: type not recognized happens when you try to process input which is not one of supported input types.

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

No branches or pull requests

2 participants