Skip to content

jasminethurder/KPI2024

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KPI2024

image0

MICCAI肾小球

Third-party requirement

segmentation-models-pytorch==0.3.3
torch
wandb
tqdm

How to Train

train_ddp_dice.py

cd train

torchrun --nproc_per_node=4 --nnodes=1 train_ddp_dice.py --encoder-name timm-regnety_016 --batch-size 6 --save-path regnet016Upp.pth --gpu-id 0,1,2,3,4 --model-type UnetPlusPlus --world-size 4

Inference Task2, bash instruction

cd inference
bash task2_infer.sh /home/cvailab/nnUNet/Task2/val/normal/normal_M1_wsi.tiff  test.tiff

The output will be similar to the following, and the results will be written to a .txt file. Additionally, a 2048x2048 thumbnail of the WSI segmentation will be saved as a visualized result.

image3

image-20240930001845127

Inference Task1, bash instruction

#python task1_patch_infer.py source_folder  output_folder
python task1_patch_infer.py  data/Task1/val  predict_patch

visualization

image2

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors