PartSegmentationToolbox icon indicating copy to clipboard operation
PartSegmentationToolbox copied to clipboard

Odd class label "Group" in .eseg file

Open delizo00 opened this issue 1 year ago • 0 comments

Dear Lisa: Many thanks for providing this code and a really clear documentation. It really makes life a lot simpler. I have started running the code and it all seems to work. The only problem I am having is that the code seems to generate a few "Group" labels in the .eseg file:

3 3 3 3 3 Group 3 3 3 3 Group 3 3 3 3 2 2 3 3 3 2 2 3 3 3 3 3 3 3 3 Group 3 3 This causes an error when I run the code to generate the seseg and the eseg files.

2250 Traceback (most recent call last): File "/Users/delizo00/PartSegmentationToolbox/python/create_sseg.py", line 139, in create_files(sys.argv[1]) File "/Users/delizo00/PartSegmentationToolbox/python/create_sseg.py", line 133, in create_files create_sseg_file(gemms, labels, export_name_seseg) File "/Users/delizo00/PartSegmentationToolbox/python/create_sseg.py", line 87, in create_sseg_file sseg[i][int(label) - 1] = weight ValueError: invalid literal for int() with base 10: 'Group'

Would you by any chance know what I might be doing wrong here? I look forward to hearing from you.

Best regards,

David

delizo00 avatar Mar 17 '23 17:03 delizo00