YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

Tumor Classifier for MRI Images

This model is trained to distinguish 4-ary cases of MRI brain images in relation to tumors.

The cases are:

  • healthy
  • glioma
  • meningioma
  • pituitary

The inital model resnet18 was loaded from pytorch.

Usage

import torch from torchvision import models

model = models.resnet18(pretrained=False) model.fc = nn.Linear(model.fc.in_features, 4)

pytorch state_dict = torch.load('ResNet_mri__62026.pth', map_location=torch.device('cpu'), weights_only=True) model.load_state_dict(state_dict)

huggingface model_path = hf_hub_download( repo_id="ubuti/MRI_tumor_classification_model", filename="ResNet_mri__62026.pth" ) state_dict = torch.load(model_path, map_location=torch.device('cpu'))


license: gpl-3.0

Downloads last month
3
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support