Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

263
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!