Skip to content

感谢您的工作,有一个问题。 #4

@Tong0417

Description

@Tong0417

作者您好,这是一项非常好的工作,非常感谢您的分享!在看见您的论文的第一时间,我就选择了复现了您这项工作,但存在一些问题,在Train and test for the second stage中test on trainSet and get the uncertainty-filterd pseudo-label时的前the testing case: patient010_frame13数据没有任何问题,往后就会出现Traceback (most recent call last):
File "/home/zlj/workspace/wha/DMSPS-master/code/test/test_2d_forall_fast_txtver_forTrainSetUncertaintyOnly_Mean.py", line 304, in
Inference(FLAGS, test_save_path)
File "/home/zlj/workspace/wha/DMSPS-master/code/test/test_2d_forall_fast_txtver_forTrainSetUncertaintyOnly_Mean.py", line 268, in Inference
metric_singleEval = test_single_volume_2d_forTrainUncertainty(image_path, net, test_save_path, FLAGS, uncertainty_path_save)
File "/home/zlj/workspace/wha/DMSPS-master/code/test/test_2d_forall_fast_txtver_forTrainSetUncertaintyOnly_Mean.py", line 177, in test_single_volume_2d_forTrainUncertainty
organ_max = get_the_first_k_largest_components(pred_uncertainty_unanotated == lab_ind, 1)# input binary map
File "/home/zlj/workspace/wha/DMSPS-master/code/test/uttils.py", line 54, in get_the_first_k_largest_components
output = output + np.asarray(labeled_array == max_i_label, np.uint8)
ValueError: operands could not be broadcast together with shapes (256,208) (2,) 这样的错误,想知道作者有没有出现过类似的问题,为什么会出现这样的问题,该如何解决,方便之余能否解惑一二,期待您的回复。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions