-
Notifications
You must be signed in to change notification settings - Fork 485
Description
Version
1.2.0
On which installation method(s) does this occur?
No response
Describe the issue
Hello,
I've tried to validate cache files using validate_cache.py
python validate_cache.py --config-path conf --config-name cached.yaml
I encountered the following error message:
===================================================================================
File "/workspace2508/physicsnemo/examples/cfd/external_aerodynamics/domino/src/validate_cache.py", line 122, in main
for _, (sample_orig, sample_cached) in enumerate(
File "/usr/local/lib/python3.12/dist-packages/torch/utils/data/dataloader.py", line 733, in next
data = self._next_data()
^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/dist-packages/torch/utils/data/dataloader.py", line 789, in _next_data
data = self._dataset_fetcher.fetch(index) # may raise StopIteration
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/dist-packages/torch/utils/data/_utils/fetch.py", line 52, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
~~~~~~~~~~~~^^^^^
File "/workspace2508/physicsnemo/physicsnemo/datapipes/cae/domino_datapipe.py", line 1379, in getitem
ii = result["neighbor_indices"]
~~~~~~^^^^^^^^^^^^^^^^^^^^
KeyError: 'neighbor_indices'
===================================================================================
I have validated the result keys and confirmed neighbor_indices are missing.
Available keys: dict_keys(['length_scale', 'surf_grid', 'sdf_surf_grid', 'surface_min_max', 'global_params_values', 'global_params_reference', 'geometry_coordinates', 'pos_surface_center_of_mass', 'surface_mesh_centers', 'surface_mesh_neighbors', 'surface_normals', 'surface_neighbors_normals', 'surface_areas', 'surface_neighbors_areas', 'surface_fields'])
Error executing job with overrides: []
====================================================================================
I use the following surface points sample in config.yaml file
surface_points_sample: 10_000 # Number of points to sample on surface per epoch