Download pointcept/models/builder.py from dfki-av/BIMStruct3D-segmentation: direct link, hf CLI and curl.
- Browser
- Download file 332 Bytes
-
https://huggingface.co/dfki-av/BIMStruct3D-segmentation/resolve/7ab05dd198d38ea08e60bb1e4f3f04aa369975c2/pointcept/models/builder.py
- Command line
-
hf download hf://dfki-av/BIMStruct3D-segmentation@7ab05dd198d38ea08e60bb1e4f3f04aa369975c2/pointcept/models/builder.py
-
curl -L -o builder.py https://huggingface.co/dfki-av/BIMStruct3D-segmentation/resolve/7ab05dd198d38ea08e60bb1e4f3f04aa369975c2/pointcept/models/builder.py
332 Bytes
| """ | |
| Model Builder | |
| Author: Xiaoyang Wu (xiaoyang.wu.cs@gmail.com) | |
| Please cite our work if the code is helpful to you. | |
| """ | |
| import copy | |
| from pointcept.utils.registry import Registry | |
| MODELS = Registry("models") | |
| MODULES = Registry("modules") | |
| def build_model(cfg): | |
| """Build models.""" | |
| return MODELS.build(copy.deepcopy(cfg)) | |