BubblyYi/Coronary-Artery-Tracking-via-3D-CNN-Classification

search_one_direction function

Closed this issue · 3 comments

Hi,

I have ran vessels_tree_infer.py and found something wrong with the search_one_direction in build_vessel_tree.py.
Condition of the while loop keep unchanged so that's an infinite loop and cannot run a result. How to solve the problem? Thank you.

image

In line 194, since 'start' is unchanged, so 'result' is also unchanged. Following variables are also unchanged (prob_mean). I suppose that 'move_direction' and 'next_point' will change, but the move function just always give the same output. Thus, 'find_node_initial' is always None. The while loop thus infinite.

In line 194, since 'start' is unchanged, so 'result' is also unchanged. Following variables are also unchanged (prob_mean). I suppose that 'move_direction' and 'next_point' will change, but the move function just always give the same output. Thus, 'find_node_initial' is always None. The while loop thus infinite.

Yes, this problem does exist, you need to update the start variable.

image

Hi DanniLi36 and seekincs
Thank you for pointing out this problem. I have updated the code to fix this problem. Please update to the latest version and try again.

move_direction, start = move(start=start, shell_arr=shell_arr, indexs=indexs,