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

158
Vistas
tfjs-tflite demo on codepen does not seem to process the image

I am trying to get a tfjs-tflite demo from here

to get it to work on codepen here

I think here is where the problem is:

  eles(".trigger").forEach((ele) => {
    ele.addEventListener("click", (event) => {
      const trigger = event.target! as HTMLElement;
      trigger.classList.add("processing");
      trigger.innerHTML = "Processing...";

      setTimeout(() => {
        handleClickTrigger(trigger, tfliteModel);
        trigger.classList.add("hide");
      });
    });
  });

The goal is to cartoonise the image on the top row and generate its corresponding cartoon via GAN on the second row.You can see here an official example of what the result should look like: https://storage.googleapis.com/tfweb/demos/cartoonizer/index.html

For some reason, it does not seem to produce a result :(

Any clue as to why this is would be greatly appreciated (I am a JS newbie).

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

If you simply copy-paste over the index.html and other source files to the codepen, it won't work as there are other dependencies the source codes rely on (for example, tfjs-core).

Please follow the README.md in the demo repo: https://github.com/tensorflow/tfjs/tree/master/tfjs-tflite/demo to properly reproduce it on your local machine. The demo recommends using Yarn [tutorial here].

about 4 years ago · Juan Pablo Isaza Denunciar
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