Code Monkey home page Code Monkey logo

u-risc's Introduction

EM cytomembrane segmentation with neural network ensemble and morphological processing

Environment

Hardware

  • 4 NVIDIA 3090Ti GPUs (24GB memory each)
  • 32 CPUs

Packages

pip install -r requirements.txt

Data

Processed data and pretrained ResNet (50 and 152) can be downloaded from the links below. Put it in top-level folder.

Baidu Disk password: 8eqb

Model

Simple Track

DFF, backbone ResNet-50

Complex Track

CASENet, backbone ResNet-152

Training

Simple Track

CUDA_VISIBLE_DEVICES=0,1,2,3 python train.py --dataset simple --model DFF --backbone resnet50 --batch-size 8 --lr 0.001 --epochs 200 --crop-size 960 --kernel-size 5 --edge-weight 0.4

Simple Track (Visualization)

CUDA_VISIBLE_DEVICES=0,1,2,3 python train_vis.py --dataset simple --model DFF --backbone resnet50 --batch-size 8 --lr 0.001 --epochs 200 --crop-size 960 --kernel-size 5 --edge-weight 0.4

Complex Track

CUDA_VISIBLE_DEVICES=0,1,2,3 python train.py --dataset complex --model CASENet --backbone resnet152 --batch-size 4 --lr 0.001 --epochs 100 --crop-size 1280 --kernel-size 9 --edge-weight 0.4

Complex Track (Visualization)

CUDA_VISIBLE_DEVICES=0,1,2,3 python train_vis.py --dataset complex --model CASENet --backbone resnet152 --batch-size 4 --lr 0.001 --epochs 100 --crop-size 1280 --kernel-size 9 --edge-weight 0.4

Validaing and Morphological Processing

Simple Track

CUDA_VISIBLE_DEVICES=0 python val.py --dataset simple --model DFF --backbone resnet50

Complex Track

CUDA_VISIBLE_DEVICES=0 python val.py --dataset complex --model CASENet --backbone resnet152

Morphological Processing

python val_mor.py

Testing and Ensembling

Simple Track

CUDA_VISIBLE_DEVICES=0 python test.py --dataset simple --model DFF --backbone resnet50

Complex Track

CUDA_VISIBLE_DEVICES=0 python test.py --dataset complex --model CASENet --backbone resnet152

u-risc's People

Contributors

theia-4869 avatar

Stargazers

Xinran Dong 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.