Spaces:
Running on Zero
Running on Zero
Download ldpt/models/builder.py from pointcept-bot/L-DPT: direct link, hf CLI and curl.
- Browser
- Download file 297 Bytes
-
https://huggingface.co/spaces/pointcept-bot/L-DPT/resolve/main/ldpt/models/builder.py
- Command line
-
hf download hf://spaces/pointcept-bot/L-DPT/ldpt/models/builder.py
-
curl -L -o builder.py https://huggingface.co/spaces/pointcept-bot/L-DPT/resolve/main/ldpt/models/builder.py
297 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 ldpt.utils.registry import Registry | |
| MODELS = Registry("models") | |
| def build_model(cfg): | |
| """Build models.""" | |
| return MODELS.build(copy.deepcopy(cfg)) | |