GroupMerging_old function
ZhuangTingT opened this issue · 2 comments
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?
@ZhuangTingT @laughtervv
Hello, I also encountered the same problem, but I did not get an error after using GroupMerging in the test_util.py, I made the prediction correctly, and the output segpred.obj was relatively correct. But when I use the h5 file made by s3dis for valid, the nan in the picture below appears, I don't know if it's the same problem as you said at the end, have you solved it now?