Downloads · 30 days
0
aaristov/bacterial-morphology-resnet34
bacterial-morphology-resnet34 is a image classification model from aaristov. Use it when you need a label for an image. It is set up for pytorch. The card lists the license as mit.
Multi-label classifier of bacterial droplet morphology from the paper Extending digital biology: bacterial survival and morphological heterogeneity under antibiotic stress (Maikranz et al.). Source data & weights: htt…
Downloads · 30 days
0
Access
Public
Updated Aug 2, 2026
Repo size
85.3 MB
Likes
0
Public
Click a slice to open those files.
Other85.3 MB · 100%
From the Hugging Face model README
Multi-label classifier of bacterial droplet morphology from the paper Extending digital biology: bacterial survival and morphological heterogeneity under antibiotic stress (Maikranz et al.). Source data & weights: https://doi.org/10.5281/zenodo.17193389 · Code: https://github.com/BaroudLab/Bacterial-Morphology
resnet34, final layer nn.Linear(512, 5)bacteria_trained_model_resnet34 (plain state_dict)positive, planktonic, clumped, rods, filamentsGrayscale(3) -> Resize(224) -> ToTensor -> Normalize(mean=[0.485,0.456,0.406], std=[0.229,0.224,0.225])import torch, torchvision
m = torchvision.models.resnet34()
m.fc = torch.nn.Linear(512, 5)
m.load_state_dict(torch.load("bacteria_trained_model_resnet34", map_location="cpu"))
m.eval()