Skip to content

GroupMerging_old function #45

@ZhuangTingT

Description

@ZhuangTingT

Hi, thanks for your code! But when I run generate_result.py, the functionGroupMerging_old() missed. I found a similar function called GroupMerging in test_util.py, I use it instead. But in function BlockMergin(), a bug happens as follow:

File "/SGPN/utils/test_utils.py", line 182, in BlockMerging()
if volume[xx,yy,zz]!=-1 and volume_seg[xx,yy,zz]==groupseg[grouplabel[i]]:
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

May you help me solve it? thanks a lot!!

By the way, when i run valid.py, the first number of each line is nan. Does it mean no instance detected?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions