Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

266
Visualizações
How to implement the EAST (Efficient and Accurate Scene Text Detector) in tfjs-node?

I am trying to implement the EAST Model for text detection in images for tfjs-node. I downloaded the original frozen model, converted it using tensorflowjs_converter and then loaded the model with following code:

import * as tf from '@tensorflow/tfjs-node'
import fs from 'fs'

const handler = tf.io.fileSystem('/path/to/model')
const model await tf.loadGraphModel(handler)
const imageBuffer = fs.readFileSync('/path/to/image')
const tensor = tf.node.decodeImage(imageBuffer, 3)
    .expandDims(0)
    .toFloat()
const output = await model.executeAsnyc(tensor)

For some reasong the execution of the model fails, I get the following error: Error: Error in concat4D: Shape of tensors[1] (1,45,80,512) does not match the shape of the rest (1,46,80,2048) along the non-concatenated axis 1.

What am I doing wrong? 😭

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda