Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

270
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda