hoops_ai.storage.label_storage
Classes
|
Class for encoding and decoding labels. |
- class hoops_ai.storage.label_storage.LabelStorage(path_for_storing, total_faces=0, total_edges=0)
Bases:
objectClass for encoding and decoding labels.
- EDGE_CADENTITY = 'edge_labels'
- EDGE_ENTITY = 'GRAPH_EDGE'
- GRAPH_CADENTITY = 'file_label'
- GRAPH_ENTITY = 'GRAPH_ENTITY'
- NODE_CADENTITY = 'face_labels'
- NODE_ENTITY = 'GRAPH_NODE'
- load_graph_edges_labels(mlTask)
Loads the label codes and descriptions for each CAD edge.
- load_graph_label(mlTask)
Loads the label code and description for the entire graph.
- load_graph_nodes_labels(mlTask)
Loads the label codes and descriptions for each CAD face.
- load_sparse_graph_edge_label(mlTask)
Loads sparse edge label data.
- save_graph_edge_label(mlTask, edgeLabels, edgeLabelDescriptions)
Saves the label codes and descriptions for each CAD edge.
- save_graph_label(mlTask, graphLabel, graphLabelDescription)
Saves the label code and description for the entire graph.
- save_graph_node_label(mlTask, faceLabels, faceLabelDescriptions)
Saves the label codes and descriptions for each CAD face.
- save_sparse_graph_edge_label(mlTask, edgeIndices, edgeLabels, defaultLabel=0, edgeLabelDescriptions=None)
Saves sparse edge label codes while assigning a default label to all other edges.
- save_sparse_graph_node_label(mlTask, faceIndices, faceLabels, defaultLabel=0, faceLabelDescriptions=None)
Saves sparse face label codes and descriptions while assigning a default label to all other faces.