8000 a bug in exporting annotations · Issue #66 · smartscenes/sstk · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
a bug in exporting annotations #66
Open
@Orion520

Description

@Orion520

Try to export example: nyuv2-bedroom_0114
When running the following code:
NODE_BASE_URL=http://localhost:8010`` ./export-annotated-ply.js --id bedroom_0114 --source nyuv2 --ann_type raw --label_mapping data/nyuv2-scannet-labels-mpr40.combined.tsv --outlabels labels.csv
The following
got options [Object: null prototype] { source: 'nyuv2', autoAlign: false, autoScale: false, computeNormals: true } Load custom segmentType: annSegments Segmentation element type not specified for segmentGroups assuming vertices setSegments: 45.175ms Segments.loadSegments: 56.171ms webpack://STK/./js/lib/geo/Segments.js?:1156 if (!segLabelDatum[segIndexInfo.type]) { ^ [TypeError: Cannot read properties of undefined (reading 'type')
The reason is: there is a bug in defining segIndexInfo.
var segIndexInfo = segmentedObject.userData.segIndexInfo || { type: 'segmentGroup', field: 'index' };

Solution:
Add definition in client/js/lib/geo/Segments.js.
Add definition in function : getColorLabel(segment_data, segIndexInfo)
var segIndexInfo = { type: 'segmentGroup', field: 'index' };

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0