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?
Hi, thanks for your code! But when I run
generate_result.py, the functionGroupMerging_old()missed. I found a similar function calledGroupMergingintest_util.py, I use it instead. But in functionBlockMergin(), 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 isnan. Does it mean no instance detected?