Download elevation_estimate/loftr/backbone/__init__.py from One-2-3-45/code: direct link, hf CLI and curl.
- Browser
- Download file 429 Bytes
-
https://huggingface.co/One-2-3-45/code/resolve/refs%2Fpr%2F2/elevation_estimate/loftr/backbone/__init__.py
- Command line
-
hf download hf://One-2-3-45/code@refs/pr/2/elevation_estimate/loftr/backbone/__init__.py
-
curl -L -o __init__.py https://huggingface.co/One-2-3-45/code/resolve/refs%2Fpr%2F2/elevation_estimate/loftr/backbone/__init__.py
429 Bytes
| from .resnet_fpn import ResNetFPN_8_2, ResNetFPN_16_4 | |
| def build_backbone(config): | |
| if config['backbone_type'] == 'ResNetFPN': | |
| if config['resolution'] == (8, 2): | |
| return ResNetFPN_8_2(config['resnetfpn']) | |
| elif config['resolution'] == (16, 4): | |
| return ResNetFPN_16_4(config['resnetfpn']) | |
| else: | |
| raise ValueError(f"LOFTR.BACKBONE_TYPE {config['backbone_type']} not supported.") | |