← Open Source
Tencent

MedicalNet

Many studies have shown that the performance on deep learning is significantly affected by volume of training data. The MedicalNet project provides a series of 3D-ResNet pre-trained models and relative code.

ModelsDomain-specific modelsPython
Open on GitHub
Momentum
+0stars in 24 hours0.0%
2.27k
Stars
464
Forks
+1
This week
1
Contributors
Created 2019-07-17 · Updated 2026-10-15 · #8788 today
Top developers
cshwhale

Tencent/MedicalNet is ranked 8,788 with 2,272 stars.

Same-category comparison

Tencent/MedicalNet is ranked 8,788 among these 8 peers; aixcoder-plugin/aiXcoder-7B is ranked 8,790.

Same-category comparison
NameRankMetrics
buaacyw/MeshAnything8,741
Language:
Python
Stars:
2,306
Forks:
108
Description:
[ICLR 2025] From anything to mesh like human artists. Official impl. of "MeshAnything: Artist-Created Mesh Generation with Autoregressive Transformers".
facebookresearch/frankmocap8,757
Language:
Python
Stars:
2,294
Forks:
389
Description:
A Strong and Easy-to-use Single View 3D Hand+Body Pose Estimator.
opendatalab/DocLayout-YOLO8,761
Language:
Python
Stars:
2,292
Forks:
178
Description:
DocLayout-YOLO: Enhancing Document Layout Analysis through Diverse Synthetic Data and Global-to-Local Adaptive Perception.
facebookresearch/InferSent8,778
Language:
Jupyter Notebook
Stars:
2,281
Forks:
464
Description:
InferSent sentence embeddings.
aixcoder-plugin/aiXcoder-7B8,790
Language:
Python
Stars:
2,271
Forks:
357
Description:
official repository of aiXcoder-7B Code Large Language Model.
stepfun-ai/Step1X-Edit8,795
Language:
Python
Stars:
2,268
Forks:
106
Description:
A SOTA open-source image editing model, which aims to provide comparable performance against the closed-source models like GPT-4o and Gemini 2 Flash.
Alpha-VLLM/Lumina-T2X8,816
Language:
Python
Stars:
2,248
Forks:
98
Description:
Lumina-T2X is a unified framework for Text to Any Modality Generation.
microsoft/LLaVA-Med8,830
Language:
Python
Stars:
2,235
Forks:
300
Description:
Large Language-and-Vision Assistant for Biomedicine, built towards multimodal GPT-4 level capabilities.
Key parameters and specifications
Key parameters and specifications
ParameterValue
LanguagePython
CategoryModels
SubcategoryDomain-specific models
KeywordsMedical
Stars2,272
Forks464
Contributors1
Created date2019-07-17
Updated date2026-10-15
Stars in 1 day0
Stars in 7 days1
Rank8,788
Previous rank5,285
Rank change-3,503
7-day stars rank9,427
Previous 7-day stars rank9,475
7-day stars rank change48
Total stars rank5,715
Previous total stars rank5,709
Total stars rank change-6
CountryChina
README summary

MedicalNet This repository contains a Pytorch implementation of Med3D: Transfer Learning for 3D Medical Image Analysis. Many studies have shown that the performance on deep learning is significantly affected by volume of training data. The MedicalNet project aggregated the dataset with diverse modalities, target organs, and pathologies to to build relatively large datasets. Based on this dataset, a series of 3D-ResNet pre-trained models and corresponding transfer-learning training code are provided. License MedicalNet is released under the MIT

License (refer to the LICENSE file for detailso). Citing MedicalNet If you use this code or pre-trained models, please cite the following: Update(2019/07/30) We uploaded 4 pre-trained models based on more datasets (23 datasets). We transferred the above pre-trained models to the multi-class segmentation task (left lung, right lung and background) on Visceral dataset. The results are as follows: Network Pretrain LungSeg(Dice) 3D-ResNet10 Train from scratch 69. txt Demo Structure of

data directories Network structure parameter settings After successfully completing basic installation, you'll be ready to run the demo. Download data & pre-trained models (Google Drive or Tencent Weiyun) 3. 3D-ResNet-50) Experiments Computational Cost Network Paramerers (M) Running time (s) 3D-ResNet10 14. 45 Performance Network Pretrain LungSeg(Dice) NoduleCls(accuracy) 3D-ResNet10 Train from scratch 71. , 3D-MobileNet, 3D-ShuffleNet) [ ] 2D medical pre-trained models [x] Pre-trained MedicalNet models based on more medical dataset Acknowledgement We thank

3D-ResNets-PyTorch and MRBrainS18 which we build MedicalNet refer to this releasing code and the dataset. Contribution If you want to contribute to MedicalNet, be sure to review the contribution guidelines

Frequently asked questions

How many stars and forks are recorded?

Tencent/MedicalNet has 2,272 stars and 464 forks.

What is the repository rank?

Tencent/MedicalNet is ranked 8,788.

What language and category are recorded?

Tencent/MedicalNet has 2,272 stars, uses Python and belongs to Models.

Which repository is closest in rank?

Tencent/MedicalNet is compared with aixcoder-plugin/aiXcoder-7B, ranked 8,790 with 2,271 stars.

README

MedicalNet

This repository contains a Pytorch implementation of Med3D: Transfer Learning for 3D Medical Image Analysis. Many studies have shown that the performance on deep learning is significantly affected by volume of training data. The MedicalNet project aggregated the dataset with diverse modalities, target organs, and pathologies to to build relatively large datasets. Based on this dataset, a series of 3D-ResNet pre-trained models and corresponding transfer-learning training code are provided.

License

MedicalNet is released under the MIT License (refer to the LICENSE file for detailso).

Citing MedicalNet

If you use this code or pre-trained models, please cite the following:

    @article{chen2019med3d,
        title={Med3D: Transfer Learning for 3D Medical Image Analysis},
        author={Chen, Sihong and Ma, Kai and Zheng, Yefeng},
        journal={arXiv preprint arXiv:1904.00625},
        year={2019}
    }

Update(2019/07/30)

We uploaded 4 pre-trained models based on more datasets (23 datasets).

Model name             : parameters settings
resnet_10_23dataset.pth: --model resnet --model_depth 10 --resnet_shortcut B
resnet_18_23dataset.pth: --model resnet --model_depth 18 --resnet_shortcut A
resnet_34_23dataset.pth: --model resnet --model_depth 34 --resnet_shortcut A
resnet_50_23dataset.pth: --model resnet --model_depth 50 --resnet_shortcut B

We transferred the above pre-trained models to the multi-class segmentation task (left lung, right lung and background) on Visceral dataset. The results are as follows:

Network

Pretrain

LungSeg(Dice)

3D-ResNet10

Train from scratch

69.31%

MedicalNet

96.56%

3D-ResNet18

Train from scratch

70.89%

MedicalNet

94.68%

3D-ResNet34

Train from scratch

75.25%

MedicalNet

94.14%

3D-ResNet50

Train from scratch

52.94%

MedicalNet

89.25%

Contents

  1. Requirements
  2. Installation
  3. Demo
  4. Experiments
  5. TODO
  6. Acknowledgement

Requirements

  • Python 3.7.0
  • PyTorch-0.4.1
  • CUDA Version 9.0
  • CUDNN 7.0.5

Installation

  • Install Python 3.7.0
  • pip install -r requirements.txt

Demo

  • Structure of data directories
MedicalNet is used to transfer the pre-trained model to other datasets (here the MRBrainS18 dataset is used as an example).
MedicalNet/
    |--datasets/:Data preprocessing module
    |   |--brains18.py:MRBrainS18 data preprocessing script
    |	|--models/:Model construction module
    |   |--resnet.py:3D-ResNet network build script
    |--utils/:tools
    |   |--logger.py:Logging script
    |--toy_data/:For CI test
    |--data/:Data storage module
    |   |--MRBrainS18/:MRBrainS18 dataset
    |	|   |--images/:source image named with patient ID
    |	|   |--labels/:mask named with patient ID
    |   |--train.txt: training data lists
    |   |--val.txt: validation data lists
    |--pretrain/:Pre-trained models storage module
    |--model.py: Network processing script
    |--setting.py: Parameter setting script
    |--train.py: MRBrainS18 training demo script
    |--test.py: MRBrainS18 testing demo script
    |--requirement.txt: Dependent library list
    |--README.md
  • Network structure parameter settings
Model name   : parameters settings
resnet_10.pth: --model resnet --model_depth 10 --resnet_shortcut B
resnet_18.pth: --model resnet --model_depth 18 --resnet_shortcut A
resnet_34.pth: --model resnet --model_depth 34 --resnet_shortcut A
resnet_50.pth: --model resnet --model_depth 50 --resnet_shortcut B
resnet_101.pth: --model resnet --model_depth 101 --resnet_shortcut B
resnet_152.pth: --model resnet --model_depth 152 --resnet_shortcut B
resnet_200.pth: --model resnet --model_depth 200 --resnet_shortcut B
  • After successfully completing basic installation, you'll be ready to run the demo.
  1. Clone the MedicalNet repository
git clone https://github.com/Tencent/MedicalNet
  1. Download data & pre-trained models (Google Drive or Tencent Weiyun)

    Unzip and move files

mv MedicalNet_pytorch_files.zip MedicalNet/.
cd MedicalNet
unzip MedicalNet_pytorch_files.zip
  1. Run the training code (e.g. 3D-ResNet-50)
python train.py --gpu_id 0 1    # multi-gpu training on gpu 0,1
or
python train.py --gpu_id 0    # single-gpu training on gpu 0
  1. Run the testing code (e.g. 3D-ResNet-50)
python test.py --gpu_id 0 --resume_path trails/models/resnet_50_epoch_110_batch_0.pth.tar --img_list data/val.txt

Experiments

  • Computational Cost
GPU:NVIDIA Tesla P40

Network

Paramerers (M)

Running time (s)

3D-ResNet10

14.36

0.18

3D-ResNet18

32.99

0.19

3D-ResNet34

63.31

0.22

3D-ResNet50

46.21

0.21

3D-ResNet101

85.31

0.29

3D-ResNet152

117.51

0.34

3D-ResNet200

126.74

0.45

  • Performance
Visualization of the segmentation results of our approach vs. the comparison ones after the same training epochs. 
It has demonstrated that the efficiency for training convergence and accuracy based on our MedicalNet pre-trained models.

Results of transfer MedicalNet pre-trained models to lung segmentation (LungSeg) and pulmonary nodule classification (NoduleCls) with Dice and accuracy evaluation metrics, respectively.

Network

Pretrain

LungSeg(Dice)

NoduleCls(accuracy)

3D-ResNet10

Train from scratch

71.30%

79.80%

MedicalNet

87.16%

86.87%

3D-ResNet18

Train from scratch

75.22%

80.80%

MedicalNet

87.26%

88.89%

3D-ResNet34

Train from scratch

76.82%

83.84%

MedicalNet

89.31%

89.90%

3D-ResNet50

Train from scratch

71.75%

84.85%

MedicalNet

93.31%

89.90%

3D-ResNet101

Train from scratch

72.10%

81.82%

MedicalNet

92.79%

90.91%

3D-ResNet152

Train from scratch

73.29%

73.74%

MedicalNet

92.33%

90.91%

3D-ResNet200

Train from scratch

71.29%

76.77%

MedicalNet

92.06%

90.91%

TODO

  • [x] 3D-ResNet series pre-trained models
  • [x] Transfer learning training code
  • [x] Training with multi-gpu
  • [ ] 3D efficient pre-trained models(e.g., 3D-MobileNet, 3D-ShuffleNet)
  • [ ] 2D medical pre-trained models
  • [x] Pre-trained MedicalNet models based on more medical dataset

Acknowledgement

We thank 3D-ResNets-PyTorch and MRBrainS18 which we build MedicalNet refer to this releasing code and the dataset.

Contribution

If you want to contribute to MedicalNet, be sure to review the contribution guidelines

Nearby in the ranking
Similar items