Skip to content

Odd class label "Group" in .eseg file #12

@delizo00

Description

@delizo00

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

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