mirror of
https://github.com/facebookresearch/sam2.git
synced 2025-09-18 12:42:48 +08:00
Update docstring
This commit is contained in:
parent
e93be7f6aa
commit
841cc1f015
@ -104,7 +104,7 @@ class SAM2VideoPredictor(SAM2Base):
|
|||||||
return inference_state
|
return inference_state
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_pretrained(cls, model_id: str, **kwargs) -> "SAM2ImagePredictor":
|
def from_pretrained(cls, model_id: str, **kwargs) -> "SAM2VideoPredictor":
|
||||||
"""
|
"""
|
||||||
Load a pretrained model from the Hugging Face model hub.
|
Load a pretrained model from the Hugging Face model hub.
|
||||||
|
|
||||||
@ -113,7 +113,7 @@ class SAM2VideoPredictor(SAM2Base):
|
|||||||
**kwargs: Additional arguments to pass to the model constructor.
|
**kwargs: Additional arguments to pass to the model constructor.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
(SAM2ImagePredictor): The loaded model.
|
(SAM2VideoPredictor): The loaded model.
|
||||||
"""
|
"""
|
||||||
from sam2.build_sam import build_sam2_video_predictor_hf
|
from sam2.build_sam import build_sam2_video_predictor_hf
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user