Downloads · 30 days
2
2% of all-time downloads
ubuti/resnet18_tumor_classifier_04
resnet18_tumor_classifier_04 is a machine learning model from ubuti. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
2
2% of all-time downloads
All-time downloads
85
Public
Repo size
179 MB
Likes
0
Public
Click a slice to open those files.
.pth89.6 MB · 67%
From the Hugging Face model README
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:
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'))