Skip to content

vlrdimir/example-load-model-tfjs-bun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

research-model-garbage

This repository contains TypeScript script examples that demonstrate how to load and run a pre-trained image classification model using TensorFlow.js in the Bun runtime environment.

Features

  • Loading TensorFlow.js model (GraphModel) from URL.
  • Explicit CPU backend setup using @tensorflow/tfjs-backend-cpu.
  • Reading and decoding local JPEG images into tensors.
  • Image preprocessing (resizing) to match model input.
  • Making predictions and displaying class with highest probability.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors