Giter VIP home page Giter VIP logo

cldetection2023's Introduction

The Solution Repository for MICCAI CLDetection2023 of Team SUTD-VLG

PDF Our technical report is available at https://arxiv.org/pdf/2309.17143.pdf

Performance

The online results on the public leaderboards could be viewed at board1 and board2. (Algorithm Name: SUTD-VLG, User Name: fivethousand).

Online Result

Our method achieves 1st place ranking on three metrics and 3rd place on the remaining one.

A step-by-step Tutorial

1. Conda Env Preparation

To build a compatible conda env, you only need to run the following lines one by one:

conda create -n LMD python=3.10
conda activate LMD
pip install -r requirements.txt
pip install -U openmim
cd mmpose_package/mmpose
pip install -e .
mim install mmengine
mim install "mmcv>=2.0.0"
pip install --upgrade numpy

To validate the effectiveness of the built conda env, you could run step1_test_mmpose.py. It will report the version of the installed mmpose package.

2. Download the Cldetection2023 dataset

As we do not have the right to forward the CLdetection dataset, interested researhers should follow this website to request it. After being approved, you will have access to 2 files: train_stack.mha and train-gt.json. Then you could download them and place them under the ./data. After that , you will have the following data structure under ./data:

.
├── train-gt.json
└── train_stack.mha

3. Convert to coco-style dataset

To make the dataset structure compatible with the MMPose package, you should convert the original dataset into a coco-style one with the provided script step2_prepare_coco_dataset.py.

python step2_prepare_coco_dataset.py --mha_file_path ./data/train_stack.mha --train_gt_path ./data/train-gt.json --image_save_dir ./data/preprocessed

It will generate the preprocessed dataset, together with the train.json, valid.json, test.json. Then, the ./data directory will have the following file structure:

.
├── preprocessed
├── test.json
├── train-gt.json
├── train.json
├── train_stack.mha
└── valid.json

4. Train

Specify the config and the working directory, and run:

python step3_train_and_evaluation.py --config 'configs/CLdetection2023/srpose_s2.py' --work-dir './MMPose-checkpoints/CLdetection/srpose_s2'

Note that both the checkpoints and logs will be saved in the --work-dir.

5. Test

Test with the pretrained weights:

python step4_test_and_visualize.py --config 'configs/CLdetection2023/srpose_s2.py' --checkpoint './MMPose-checkpoints/CLdetection/srpose_s2/demo.pth'

Others

1. single image inference

please refer to inference_single_image.py

python inference_single_image.py --config 'configs/CLdetection2023/srpose_s2.py' --checkpoint './MMPose-checkpoints/CLdetection/srpose_s2/demo.pth' --mode "val"

2. Pretrained weights

A model pre-trained on the combined train and val datasets is available at https://drive.google.com/file/d/10HrNDBBpuECTcgNgcWNUt7kM6m4ZMXM4/view?usp=sharing

Note that we ensembled 7 models for our final submission in the MICCAI CLdetection2023 challenge. You can try our submitted docker at https://cl-detection2023.grand-challenge.org/evaluation/challenge/leaderboard/ after applying for it. (You need to register an account on that platform and request access to the algorithm).

Citation

If you find this repo useful, please consider giving us a star and citing our paper.

@misc{wu2023revisiting,
      title={Revisiting Cephalometric Landmark Detection from the view of Human Pose Estimation with Lightweight Super-Resolution Head}, 
      author={Qian Wu and Si Yong Yeo and Yufei Chen and Jun Liu},
      year={2023},
      eprint={2309.17143},
      archivePrefix={arXiv},
      primaryClass={cs.CV}
}

Acknowledgement

We would like to thank the MICCAI CLDetection2023 organizers for providing well-established baselines and their altruistic service for the contest. We appreciate all the contributors of the MMPose Package. We thank the authors of SRPose for making their code public.

cldetection2023's People

Contributors

5k5000 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

cldetection2023's Issues

model weights

Hello, where can I get the trained model weights?

Dataset

Could you please grant me the Dataset of the CL-Detection 2023 Challenge?

Can it run on cuda 11.6 or lower torch version?

I tried to complie this code, but I am a non-root user on my college's server, so I can't upgrade the cuda version. Since when I tried to install "mmcv>=2.0" encountered the problem:

RuntimeError:
The detected CUDA version (11.6) mismatches the version that was used to compile
PyTorch (12.1). Please make sure to use the same CUDA versions.

So I wonder if I can run this code on cuda 11.6 or lower torch version?

look forward to your reply!

Thanks!

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.