Git Product home page Git Product logo

3dunet's Introduction

Code Structure

How to Run

Training

python train.py --lr 0.001 --gpu_id=[0,1,2,3] --batch_size 8 --train_image_dir 'datasets/ribfrac-train-images/' --train_label_dir 'datasets/ribfrac-train-labels/' --val_image_dir 'datasets/ribfrac-val-images/' --val_label_dir 'datasets/ribfrac-val-labels/' 
  • lr: learning rate (default: 0.001)
  • gpu_id: gpu id list used for training.
  • batch_size: batch size of trainset
  • train_image_dir: The folder where the training images are saved.
  • train_label_dir: The folder where the training labels are saved.
  • val_image_dir: The folder where the val images are saved.
  • val_label_dir: The folder where the val labels are saved.

For more parameter information, please check the config.py script.

Predict

python predict.py --gpu 0 --model_path ./result/best_model.pth --pred_dir ./predict --test_data_path ./datasets/ribfrac-test-images/
  • gpu: gpu id used for predict.
  • model_path: The model path used for predict.
  • pred_dir: The folder to store the predict result.
  • test_data_path: The folder where the test images are saved.

For more parameter information, please check the config.py script.

3dunet's People

Contributors

stilwl avatar

Watchers

 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.