Download vista3d_config.py from nvidia/NV-Segment-CTMR: direct link, hf CLI and curl.
- Browser
- Download file 601 Bytes
-
https://huggingface.co/nvidia/NV-Segment-CTMR/resolve/main/vista3d_config.py
- Command line
-
hf download hf://nvidia/NV-Segment-CTMR/vista3d_config.py
-
curl -L -o vista3d_config.py https://huggingface.co/nvidia/NV-Segment-CTMR/resolve/main/vista3d_config.py
601 Bytes
| from transformers import PretrainedConfig | |
| class VISTA3DConfig(PretrainedConfig): | |
| """Configuration class for vista3d""" | |
| model_type = "VISTA3D" | |
| def __init__(self, encoder_embed_dim: int = 48, input_channels: int = 1, **kwargs): | |
| """ | |
| Set the hyperparameters for the VISTA3D model. | |
| Parameters: | |
| input_channels: channel of input images. | |
| encoder_embed_dim: the encoder_embed_dim of the VISTA3D model. | |
| """ | |
| self.input_channels = input_channels | |
| self.encoder_embed_dim = encoder_embed_dim | |
| super().__init__(**kwargs) | |