Giter Site home page Giter Site logo

3dteethseg22_igip's Introduction

3DTeethSeg22_IGIP

Getting started

Training

First, install the python requirements by:

pip install -r requirements.txt

Next, some operators should be compiled in code/pointnet2. Run the following command to compile:

cd code/pointnet2/src
pip install -e .

You should train all the models in code/models. The training and testing config is written in code/config/config.yml. After adjusting the configuration files, just run the python scripts in code/models directly to start training.

# Training steps
# Change any args you want
export CUDA_VISIBLE_DEVICES=0 && python code/models/teeth_gingival_seg.py
export CUDA_VISIBLE_DEVICES=0 && python code/models/centroids_prediction.py
export CUDA_VISIBLE_DEVICES=0 && python code/models/patch_segmentation.py
export CUDA_VISIBLE_DEVICES=0 && python code/models/teeth_classification.py

You should better keep the default learning rate (lr) and epoch nums (n-epochs), they work good for us.

Testing

There's no testing code in this repository. BUT, you can do inferences by code/process.py, this script is based on the challenge's process.py.

GPU and memory consumption

Here we show the GPU memory and host memory consumption when setting the specific batch size for reference. The data is obtained on a machine with one NVIDIA RTX 3090. The batch size can be adjusted according to your device.

Stage Batch size GPU memory Host memory
teeth_gingival_separation 16 ~20GB ~4GB
centroids_prediction 16 ~16GB ~4GB
patch_segmentaiton 16 ~21GB ~5GB
teeth_classification 64 ~16GB ~5GB

Suggested environment

The following environment is tested ok.

  • Linux arch 5.15.74-1-lts
  • GCC 9.3.0
  • Python 3.8
  • PyTorch 1.10.0
  • CUDA 11.7

Support

I do some code clean up based on my original codes, and I didn't re-train all the models. They should work fine, but there's no guarantee. If you have any problems, please e-mail me at [email protected].

3dteethseg22_igip's People

Contributors

znshje avatar

Stargazers

Binlei Li avatar leonlee avatar Ma Benteng avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar Matthew Wareing avatar windfill avatar  avatar Lex Hsu avatar Umut E. S. avatar zhengli avatar  avatar Dan Presil avatar Colton Skees avatar  avatar  avatar  avatar

Watchers

Umut E. S. avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.