dirtmaxim / super_pneumothorax

SIIM-ACR Pneumothorax Segmentation 16th place solution

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SIIM-ACR Pneumothorax Segmentation 16th place solution.

Requirements:

OpenCV
PyTorch
numpy
scipy
matplotlib
pandas
yaml
pywt
albumentations
segmentation_models_pytorch
scikit-image
NVIDIA Apex

Run:

1: Select path to current fold as SegTrainer argument in main.py
2: python main.py

Example of Inference:

from train_utils import *
trainer = SegTrainer("path_to_fold_config")
preds = tta_predictions(trainer.model, trainer.dataloader_test, device=trainer.device).copy()
df = postproc_n_convert(preds, trainer.dataloader_test.dataset.fold_keys)
df.to_csv("output.csv", index=False)

About

SIIM-ACR Pneumothorax Segmentation 16th place solution

License:Apache License 2.0


Languages

Language:Python 100.0%