Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AutodeskAILab/BRepNet
/ functions
Functions
409 in github.com/AutodeskAILab/BRepNet
⨍
Functions
409
◇
Types & classes
24
↓ 19 callers
Method
get_hash
(self, ent)
pipeline/entity_mapper.py:149
↓ 18 callers
Method
find_index_in_feature_schema
(self, key, feature_schema)
tests/test_extract_brepnet_data_from_step.py:415
↓ 13 callers
Method
check_feature_stats
( self, npz_file, solid, expected_data )
tests/test_extract_brepnet_data_from_step.py:603
↓ 13 callers
Method
halfedge_index
Find the index of a halfedge
pipeline/entity_mapper.py:120
↓ 13 callers
Method
run_tests_on_simple_solid
(self, step_filename)
tests/test_extract_brepnet_data_from_step.py:365
↓ 11 callers
Method
working_dir
(self)
tests/test_base.py:11
↓ 8 callers
Method
create_dataset
(self)
tests/test_dataloader.py:18
↓ 8 callers
Method
face_index
Find the index of a face
pipeline/entity_mapper.py:99
↓ 8 callers
Method
format_color
(self, c)
visualization/jupyter_segmentation_viewer.py:98
↓ 5 callers
Method
_display_faces_with_colors
Display the solid with each face colored with the given color
visualization/jupyter_segmentation_viewer.py:249
↓ 5 callers
Method
equivalent_dataloaders_dir
(self)
tests/test_dataloaders_equivalent.py:19
↓ 5 callers
Method
location_in_batch
We need to record what the original batch and id was for each entity
dataloaders/brepnet_dataset_old.py:669
↓ 5 callers
Method
remove_folder
(self, dir)
tests/test_base.py:52
↓ 4 callers
Method
add_model_specific_args
(parser)
models/brepnet.py:463
↓ 4 callers
Function
create_occwl
(topo_ds_shape)
utils/create_occwl_from_occ.py:24
↓ 4 callers
Method
edge_index
Find the index of an edge
pipeline/entity_mapper.py:113
↓ 4 callers
Method
find_inverse_permutation
(self, perm)
dataloaders/brepnet_dataset.py:749
↓ 4 callers
Method
load_labels
Load the segmentation from the seg file
dataloaders/brepnet_dataset.py:737
↓ 4 callers
Method
standardize_features
(self, feature_tensor, stats)
dataloaders/brepnet_dataset.py:471
↓ 4 callers
Method
try_to_project_normal
Try to project the vector `ref` normal to vec
pipeline/extract_brepnet_data_from_step.py:600
↓ 3 callers
Method
__init__
Initialization of the main BRepNet network.
models/brepnet.py:360
↓ 3 callers
Function
_conv1d
Helper function to create a 1D convolutional layer with batchnorm and LeakyReLU activation Args: in_channels (int): Input channels
models/uvnet_encoders.py:5
↓ 3 callers
Function
_conv2d
Helper function to create a 2D convolutional layer with batchnorm and LeakyReLU activation Args: in_channels (int): Input channels
models/uvnet_encoders.py:28
↓ 3 callers
Function
append_to_stats
(arr, stats)
pipeline/build_dataset_file.py:34
↓ 3 callers
Method
brepnet_step
A train or validation step for the BRepNet network on one batch
models/brepnet.py:608
↓ 3 callers
Method
build_feature_tensor
Build feature tensor size = [ num_ents x num_features ]
dataloaders/brepnet_dataset_old.py:556
↓ 3 callers
Method
build_kernel_tensor
(self, npz_data, walks)
tests/test_dataloader.py:247
↓ 3 callers
Method
build_kernel_tensor_from_top
A BRepNet kernel is defined by a list of topological walks. These are used to create the index tensors Kf, Ke and Kc for
dataloaders/brepnet_dataset_old.py:162
↓ 3 callers
Method
build_kernel_tensor_from_topology
A BRepNet kernel is defined by a list of topological walks. These are used to create the index tensors Kf, Ke and Kc for
dataloaders/brepnet_dataset.py:532
↓ 3 callers
Function
check_stats_for_zero_standard_deviation
When adding new features, especially with Open Cascade, it is possible to call functions which always return the same value. Here we
pipeline/build_dataset_file.py:65
↓ 3 callers
Function
concatenate_tensor_arrays
(small, big, unsqueeze)
dataloaders/brepnet_dataset.py:776
↓ 3 callers
Method
convexity_feature
(self, convexity, feature)
pipeline/extract_brepnet_data_from_step.py:306
↓ 3 callers
Method
create_dummy_options
(self, dataset_file, dataset_dir, input_features)
tests/test_base.py:22
↓ 3 callers
Function
extract_brepnet_data_from_step
( step_path, output_path, mesh_dir=None, seg_dir=None, feature_
pipeline/extract_brepnet_data_from_step.py:913
↓ 3 callers
Method
extract_features
(self, features, feature_schema)
pipeline/extract_brepnet_data_from_json.py:44
↓ 3 callers
Function
file_stems
(file_list)
pipeline/build_dataset_file.py:84
↓ 3 callers
Method
find_face_mapping
(self, batch)
tests/test_dataloaders_equivalent.py:208
↓ 3 callers
Function
find_stem
(file)
pipeline/extract_brepnet_data_from_json.py:90
↓ 3 callers
Method
halfedge_exists
(self, halfedge)
pipeline/entity_mapper.py:129
↓ 3 callers
Method
load_feature_schema
(self)
tests/test_extract_brepnet_data_from_step.py:59
↓ 3 callers
Method
load_logits
Load logits file
visualization/jupyter_segmentation_viewer.py:119
↓ 3 callers
Method
process
Process the file and extract the derivative data
pipeline/extract_brepnet_data_from_step.py:55
↓ 3 callers
Method
run_tests_on_single_file
(self, step_file, npz_folder)
tests/test_extract_brepnet_data_from_step.py:67
↓ 3 callers
Method
simple_solid_dataset_file
(self)
tests/test_dataloader.py:33
↓ 3 callers
Method
simple_solid_test_data_dir
(self)
tests/test_dataloader.py:30
↓ 3 callers
Method
standardize_features_for_entity_type
Standardize feature data for faces, edges or coedges
dataloaders/brepnet_dataset_old.py:439
↓ 3 callers
Function
stats_to_json
(stats)
pipeline/build_dataset_file.py:23
↓ 2 callers
Function
_fc
(in_features, out_features, bias=False)
models/uvnet_encoders.py:55
↓ 2 callers
Method
_view_segmentation
(self, face_segmentation)
visualization/jupyter_segmentation_viewer.py:241
↓ 2 callers
Function
add_offset_to_face_index
( face_indices, num_small_faces, small_face_offset, big_face_offset
dataloaders/brepnet_dataset.py:785
↓ 2 callers
Function
brepnet_collate_fn
Collate the data from multiple bodies into a single set of tensors. Here I call the faces with a small number of coedges "small f
dataloaders/brepnet_dataset.py:821
↓ 2 callers
Method
build_coedges_of_edges_tensor
We want to build an index tensor Ce with Ce.size() = [ num_edges x 2] The ith row of Ce contains the indices of t
dataloaders/brepnet_dataset.py:630
↓ 2 callers
Method
build_coedges_of_faces_tensor
For faces with less than or equal to max_coedges_per_face we want to build a tensor Cf.size() = [ num_small_faces x max
dataloaders/brepnet_dataset.py:659
↓ 2 callers
Function
build_dataset_file
( npz_folder, dataset_file, validation_split, train_test_file=None,
pipeline/build_dataset_file.py:128
↓ 2 callers
Method
build_face_to_coedges_map
(self, coedges_to_faces)
tests/test_extract_brepnet_data_from_step.py:268
↓ 2 callers
Method
build_loops_data
(self, next)
tests/test_extract_brepnet_data_from_step.py:196
↓ 2 callers
Function
build_matrix_Psi
Build the matrix Psi. Please see equation (2) in the BRepNet paper. For each coedge in the model we know the indices of some
models/brepnet.py:16
↓ 2 callers
Method
build_multiplicity
(self, row)
tests/test_dataloaders_equivalent.py:151
↓ 2 callers
Method
check_coedge_is_in_correct_face
( self, coedge_index, old_face_index, Cf,
tests/test_dataloader.py:434
↓ 2 callers
Function
check_files_exist
(file_list, npz_folder)
pipeline/build_dataset_file.py:90
↓ 2 callers
Method
check_for_batch
( self, old_dataset_file, batch_index, new_dataset_file,
tests/test_dataloaders_equivalent.py:36
↓ 2 callers
Method
check_multiplicity_of_indices_in_row
(self, old, new)
tests/test_dataloaders_equivalent.py:142
↓ 2 callers
Method
collate_epoch_outputs
Collate information from all batches at the end of an epoch
models/brepnet.py:739
↓ 2 callers
Method
create_face_embeddings
This creates the embedding for each face.
models/brepnet.py:517
↓ 2 callers
Method
cross_check_datasets
(self, old_dataset_file, new_dataset_file)
tests/test_dataloaders_equivalent.py:291
↓ 2 callers
Function
do_eval
(args)
eval/evaluate_folder.py:120
↓ 2 callers
Function
do_training
(opts)
train/train.py:24
↓ 2 callers
Function
extract_brepnet_data
(file, seg_path, output_path, feature_schema)
pipeline/extract_brepnet_data_from_json.py:123
↓ 2 callers
Function
extract_brepnet_features
(file, output_path, feature_schema, mesh_dir, seg_dir)
pipeline/extract_brepnet_data_from_step.py:888
↓ 2 callers
Method
feature_list_file
(self)
tests/test_base.py:36
↓ 2 callers
Method
find_closest_ent_in_list
(self, ents, point)
tests/test_extract_brepnet_data_from_step.py:344
↓ 2 callers
Method
find_face_permutation
We will need to rearrange the array of faces so that faces with more than max_coedges_per_face coedges appear at the end
dataloaders/brepnet_dataset.py:610
↓ 2 callers
Method
find_inverse_permutation_slow
Find the inverse of a permutation for a numpy array the really slow way
tests/test_dataloader.py:224
↓ 2 callers
Function
find_max_feature_vectors_for_each_face
Each face in the B-Rep will have many coedges. In this function we perform an element-wise max pooling of the coedge features in matri
models/brepnet.py:89
↓ 2 callers
Function
get_argument_parser
()
eval/evaluate_folder.py:145
↓ 2 callers
Method
input_feature_list
(self)
tests/test_dataloaders_equivalent.py:22
↓ 2 callers
Method
kernel_file
(self)
tests/test_base.py:33
↓ 2 callers
Method
load_npz_and_labels
(self, file_stem)
tests/test_dataloader.py:75
↓ 2 callers
Method
load_segmentation
Load the seg file
visualization/jupyter_segmentation_viewer.py:108
↓ 2 callers
Method
mean
(self)
pipeline/running_stats.py:52
↓ 2 callers
Method
num_faces_in_batch
Find the number of B-Rep faces in this batch
models/brepnet.py:1003
↓ 2 callers
Method
parent_dir
Find the main BRepNet folder from the path of this test file
tests/test_base.py:39
↓ 2 callers
Method
process
Process the file and extract the derivative data
pipeline/extract_brepnet_data_from_json.py:16
↓ 2 callers
Method
push
(self, x)
pipeline/running_stats.py:29
↓ 2 callers
Method
remove_cache_folder
(self, data_dir)
tests/test_base.py:48
↓ 2 callers
Method
reversed_edge_feature
(self, edge)
pipeline/extract_brepnet_data_from_step.py:399
↓ 2 callers
Method
run_tests_on_file
(self, file, npz_folder, feature_schema)
tests/test_extract_brepnet_data_from_step.py:75
↓ 2 callers
Method
scale_from_point_cloud
(self, pts)
pipeline/extract_brepnet_data_from_step.py:649
↓ 2 callers
Method
standard_deviation
(self)
pipeline/running_stats.py:63
↓ 2 callers
Function
unsqueeze_single_dim_tensors
(tensor_list)
dataloaders/brepnet_dataset.py:767
↓ 1 callers
Method
__init__
(self)
visualization/jupyter_segmentation_viewer.py:11
↓ 1 callers
Method
__init__
This is the 1D convolutional network that extracts features from the B-rep edge geometry described as 1D UV-grids (see Section 3.2, C
models/uvnet_encoders.py:64
↓ 1 callers
Function
add_offset_to_coedge_index_with_padding
In the coedges_of_small_faces array we have the indices of coedges with padding at the end of the array. The value of the padding i
dataloaders/brepnet_dataset.py:801
↓ 1 callers
Method
any_orthogonal
Find any random vector orthogonal to the given vector
pipeline/extract_brepnet_data_from_step.py:617
↓ 1 callers
Method
append_body
(self, body)
pipeline/entity_mapper.py:153
↓ 1 callers
Method
append_edge
(self, edge)
pipeline/entity_mapper.py:208
↓ 1 callers
Method
append_edges
(self, top_exp)
pipeline/entity_mapper.py:203
↓ 1 callers
Method
append_face
(self, face)
pipeline/entity_mapper.py:186
↓ 1 callers
Method
append_faces
(self, top_exp)
pipeline/entity_mapper.py:181
↓ 1 callers
Method
append_halfedge
(self, halfedge)
pipeline/entity_mapper.py:221
next →
1–100 of 409, ranked by callers