Skip to content

athnomedical/NSDD-SSL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 

Repository files navigation

Pre-trained Models from NSDD

This repository provides checkpoints for ResNet-18 and ResNet-50 models, pre-trained on dermatological images from the National Skin Disease Database of Japan (NSDD).

Usage

To load the checkpoint for ResNet-18, use the following code snippet:

import torch
import torchvision

model = torchvision.models.resnet18()
unused_key = ('fc.weight', 'fc.bias')
state_dict = {k: v for k, v in torch.load('path_to_checkpoint.pth').items() if k not in unused_key}
model.load_state_dict(state_dict, strict=False)

For ResNet-50, replace torchvision.models.resnet18() with torchvision.models.resnet50()

Checkpoints

Model Pre-training Method Image Data Used for Pre-training Download
ResNet-18 Self-supervised method (SimCLR) NSDD-unlabeled checkpoint
ResNet-18 Self-supervised method (BYOL) NSDD-unlabeled checkpoint
ResNet-18 Self-supervised method (DINO) NSDD-unlabeled checkpoint
ResNet-18 Self-supervised method (SimCLR) + fine-tuning NSDD-unlabeled + NSDD-labeled checkpoint
ResNet-18 Self-supervised method (BYOL) + fine-tuning NSDD-unlabeled + NSDD-labeled checkpoint
ResNet-18 Self-supervised method (DINO) + fine-tuning NSDD-unlabeled + NSDD-labeled checkpoint
ResNet-50 Self-supervised method (SimCLR) NSDD-unlabeled checkpoint
ResNet-50 Self-supervised method (BYOL) NSDD-unlabeled checkpoint
ResNet-50 Self-supervised method (DINO) NSDD-unlabeled checkpoint
ResNet-50 Self-supervised method (SimCLR) + fine-tuning NSDD-unlabeled + NSDD-labeled checkpoint
ResNet-50 Self-supervised method (BYOL) + fine-tuning NSDD-unlabeled + NSDD-labeled checkpoint
ResNet-50 Self-supervised method (DINO) + fine-tuning NSDD-unlabeled + NSDD-labeled checkpoint

License

These checkpoints are freely available for academic use only. For commercial use and more detailed licensing information, please contact shido1985 [AT] derma [DOT] med [DOT] tohoku [DOT] ac [DOT] jp.

Disclaimer

THESE CHECKPOINTS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THESE CHECKPOINTS OR THE USE OR OTHER DEALINGS IN THESE CHECKPOINTS.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors