Skip to content
ModelListedExternal
Browse files

Brainscan Tfjs

This repository contains the weights and topology of the BrainScan classification model converted to TensorFlow.js layers format for in-browser client-side execution.

KindOtherVersionGroup1 shard1of7Cgrade

Model source

Kind
Other
File size
2.88–40.5 MB
Version
vGroup1 shard1of7
Updated
Oct 22, 2026
Source
Hugging Face

Source description

BrainScan // DenseNet Brain Tumor Classification Model (TF.js format)

This repository contains the weights and topology of the BrainScan classification model converted to TensorFlow.js layers format for in-browser client-side execution.

Model Files

  • model.json: Patched TensorFlow.js Functional Model topology (Keras 3 compatible).
  • group1-shard*of7.bin: Binary weights shards.
  • model/brain_tumor_model.h5: The raw, pre-converted Keras H5 model.
  • model/BrainScan_Model_Training.ipynb: Jupyter notebook containing the DenseNet model definition and training history.

Classes

The model classifies T1/T2 brain MRI scans into four distinct categories:

  1. glioma
  2. meningioma
  3. notumor (Normal)
  4. pituitary

Usage in TensorFlow.js

const model = await tf.loadLayersModel('https://huggingface.co/grvsnh/brainscan-tfjs/resolve/main/model.json');
const prediction = model.predict(imageTensor);

Sources

1 source
Hugging FacePrimaryVersion c22eeb3151f5e3a8515b6c4d7ada285fd0716a74
huggingface.co/grvsnh/brainscan-tfjs/tree/c22eeb3151f5e3a8515b6c4d7ada285fd0716a74

Verified Oct 22

Download files

Model artifacts

8 artifacts

group1-shard1of7.bin

bin · 4.00 MB · SHA-256 1dff72663637…0ada · Hugging Face

Download file

group1-shard2of7.bin

bin · 4.00 MB · SHA-256 981f69e791b8…bee0 · Hugging Face

Download file

group1-shard3of7.bin

bin · 4.00 MB · SHA-256 9731b99d7907…578c · Hugging Face

Download file

group1-shard4of7.bin

bin · 4.00 MB · SHA-256 c2a7fad2fada…e257 · Hugging Face

Download file

group1-shard5of7.bin

bin · 4.00 MB · SHA-256 0c84d0a5d16e…11a8 · Hugging Face

Download file

group1-shard6of7.bin

bin · 4.00 MB · SHA-256 7be63c5b3713…3615 · Hugging Face

Download file

group1-shard7of7.bin

bin · 2.88 MB · SHA-256 50a8e0e21dc6…95f0 · Hugging Face

Download file

model/brain_tumor_model.h5

h5 · 40.5 MB · SHA-256 286ec79cafe0…9cfa · Hugging Face

Download file

Source excerpts

2 excerpts

--- license: mit tags: - medical - image-classification - tensorflowjs - keras - brain-tumor - edge-inference --- # BrainScan // DenseNet Brain Tumor Classification Model (TF.js format) This repository contains the weights and topology of the **BrainScan** classification model converted to TensorFlow.js layers format for in-browser client-side execution. ## Model Files * `model.json`: Patched TensorFlow.js Functional Model topology (Keras 3 compatible). * `group1-shard*of7.bin`: Binary weights shards. * `model/brain_tumor_model.h5`: The raw, pre-converted Keras H5 model. * `model/BrainScan_Model_Training.ipynb`: Jupyter notebook containing the DenseNet model definition and training history. ## Classes The model classifies T1/T2 brain MRI scans into four distinct categories: 1. `glioma` 2. `meningioma` 3. `notumor` (Normal) 4. `pituitary` ## Usage in TensorFlow.js ```javascript const model = await tf.loadLayersModel('https://huggingface.co/grvsnh/brainscan-tfjs/resolve/main/model.json'); const prediction = model.predict(imageTensor); ```

Source context: 0 downloads · 0 likes · Pipeline image-classification · Library keras · Repo grvsnh/brainscan-tfjs