pixano_inference.configs.sam2
Typed model params for SAM2 models.
Sam2ImageParams(**data)
Bases: BaseModelParams
Typed parameters for Sam2ImageModel.
Attributes:
| Name | Type | Description |
|---|---|---|
path |
str
|
HuggingFace model ID or local checkpoint path. |
torch_dtype |
Literal['float32', 'float16', 'bfloat16']
|
Torch dtype for autocast. |
compile |
bool
|
Whether to |
Source code in pydantic/main.py
Sam2VideoParams(**data)
Bases: BaseModelParams
Typed parameters for Sam2VideoModel.
Attributes:
| Name | Type | Description |
|---|---|---|
path |
str
|
HuggingFace model ID or local checkpoint path. |
torch_dtype |
Literal['float32', 'float16', 'bfloat16']
|
Torch dtype for autocast. |
compile |
bool
|
Whether to |
vos_optimized |
bool
|
Use VOS-optimised predictor. |
propagate |
bool
|
Whether to propagate masks across the full video. |