Skip to content

tmyok/kaggle-vesuvius-challenge-ink-detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vesuvius Challenge - Ink Detection

This repository contains the code used to achieve the 34th place in the Vesuvius Challenge - Ink Detection competition, hosted on Kaggle. You can visit the competition page here.

Data Acquisition

This section provides information about how to download the necessary datasets from Kaggle.

Vesuvius Challenge Ink Detection Dataset

This dataset is essential for the main task. It can be downloaded from the following Kaggle competition page:

For Inference

The trained weights for the inference model can be downloaded from:

For Training

The datasets for training can be downloaded from:

Usage

Preparation

  1. Clone this repository:
git clone --recursive https://github.com/tmyok/kaggle-vesuvius-challenge-ink-detection.git
  1. Download the datasets into the input directory. Refer to Data Acquisition for more information.

  2. If necessary, run a Docker container with the following command:

sh docker_container.sh

Training

Ensure that your hardware has at least a total of 40 GB of GPU RAM and then run the following command:

python3 train.py model={unet3d, residualunetse3d, mit_b2} fold={0,1,2,3,4}

If your hardware has less GPU RAM, adjust the resize_ratio in the configuration file (located at ./working/configs/model/{UNet3D, ResidualUNetSE3D, mit_b2}.yaml).

The trained weights will be exported to ./output/{UNet3D, ResidualUNetSE3D, mit_b2}.

Validation

To perform validation, run the following command:

python3 validation.py fold={0,1,2,3,4}

The results will be exported to ./output/validation.

Inference

To perform inference, run the following command:

python3 inference.py --image_path ../input/vesuvius-challenge-ink-detection/test/a/surface_volume/ --mask_path ../input/vesuvius-challenge-ink-detection//test/a/mask.png

The results will be exported to ./output/inference.

About

34th place solution in "Vesuvius Challenge - Ink Detection"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published