Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GroupMerging_old function #45

Open
ZhuangTingT opened this issue Dec 12, 2023 · 2 comments
Open

GroupMerging_old function #45

ZhuangTingT opened this issue Dec 12, 2023 · 2 comments

Comments

@ZhuangTingT
Copy link

ZhuangTingT commented Dec 12, 2023

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?

@jianuo1128
Copy link

@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?
e99c38c1f60ba31cb5da185b630d971

@jianuo1128
Copy link

jianuo1128 commented Jul 24, 2024

The two file mingroupsize.txt and pergroup_thres.txt obtained after the valid are as follows
image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants