mindflow.geometry.generate_sampling_config
- mindflow.geometry.generate_sampling_config(dict_config)[source]
Convert from dict to SamplingConfig.
- Parameters
dict_config (dict) – dict containing configuration info.
- Returns
geometry_base.SamplingConfig, sampling configuration.
- Raises
ValueError – If part_dict_config can not be generated from input dict.
- Supported Platforms:
Ascend
GPU
Examples
>>> from mindflow.geometry import generate_sampling_config >>> rect_config = dict({ ... 'domain': dict({ ... 'random_sampling': True, ... 'size': 200, ... 'with_sdf': False, ... }), ... 'BC': dict({ ... 'random_sampling': True, ... 'size': 50, ... 'with_normal': True, ... }) ... }) >>> sampling_config = generate_sampling_config(rect_config)