Giter VIP home page Giter VIP logo

vein_segmentation's Introduction

Usage

  1. Clone the repository.
git clone https://github.com/LeryLee/vein_segmentation
  1. Download the datasets used in our paper from here. The datasets used in our paper are newly collected. Please cite our paper if you use it for your research.
  • Organize the file structure as below.
|__ vein_segmentation
    |__ code
    |__ data
        |__ LVD2021
  1. Run pretrain.py and self_train.py to train and test the code.

Acknowledgement

mmsegmentation

PointRend

CE-Net

vein_segmentation's People

Contributors

lerylee avatar

Stargazers

Finn Kuusisto avatar  avatar

Watchers

 avatar

Forkers

uw-madison-dsi

vein_segmentation's Issues

NameError: name 'w_step' is not defined

Here is the complete error:

Traceback (most recent call last):
File "/public/home/mzhliu/vein_segmentation/./self_train.py", line 428, in
main(xargs)
File "/public/home/mzhliu/vein_segmentation/./self_train.py", line 398, in main
solver_save_path, train_epoch_best_metric, valid_epoch_best_metric = Self_Train(args,
^^^^^^^^^^^^^^^^
File "/public/home/mzhliu/vein_segmentation/./self_train.py", line 196, in Self_Train
trainset = my_infer.infer_labels(args, trainset, testset, solver, outer_epoch)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/public/home/mzhliu/vein_segmentation/utils/infer.py", line 246, in infer_labels
pred_results, b_map_results, logit_results = infer_point(args, trainset, solver, threshold, oute r_epoch, mode='train')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^
File "/public/home/mzhliu/vein_segmentation/utils/infer.py", line 209, in infer_point
point_logits = point_refiner(None, mask_coarse_logits, mask_features_list, features_scales, feat ures, solver, point_indices_uncertain)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/public/home/mzhliu/vein_segmentation/utils/infer.py", line 92, in point_refiner
point_coords[:, 0] = w_step / 2.0 + (point_indices % W).to(torch.float) * w_step
^^^^^^
NameError: name 'w_step' is not defined

NameError: name 'point_coords' is not defined. Did you mean: 'point_logits'?

Traceback (most recent call last):
File "/public/home/mzhliu/vein_segmentation/./self_train.py", line 428, in
main(xargs)
File "/public/home/mzhliu/vein_segmentation/./self_train.py", line 398, in main
solver_save_path, train_epoch_best_metric, valid_epoch_best_metric = Self_Train(args,
^^^^^^^^^^^^^^^^
File "/public/home/mzhliu/vein_segmentation/./self_train.py", line 196, in Self_Train
trainset = my_infer.infer_labels(args, trainset, testset, solver, outer_epoch)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/public/home/mzhliu/vein_segmentation/utils/infer.py", line 248, in infer_labels
pred_results, b_map_results, logit_results = infer_point(args, trainset, solver, threshold, outer_epoch, mode='train')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/public/home/mzhliu/vein_segmentation/utils/infer.py", line 211, in infer_point
point_logits = point_refiner(None, mask_coarse_logits, mask_features_list, features_scales, features, solver, point_indices_uncertain)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/public/home/mzhliu/vein_segmentation/utils/infer.py", line 94, in point_refiner
point_coords[:, 0] = w_step / 2.0 + (point_indices % W).to(torch.float) * w_step
^^^^^^^^^^^^
NameError: name 'point_coords' is not defined. Did you mean: 'point_logits'?

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.