Update docstrings
This commit is contained in:
@@ -65,7 +65,7 @@ class SAM2ImagePredictor:
|
|||||||
@classmethod
|
@classmethod
|
||||||
def from_pretrained(cls, model_id: str, **kwargs) -> "SAM2ImagePredictor":
|
def from_pretrained(cls, model_id: str, **kwargs) -> "SAM2ImagePredictor":
|
||||||
"""
|
"""
|
||||||
Load a pretrained model from the Hugging Face model hub.
|
Load a pretrained model from the Hugging Face hub.
|
||||||
|
|
||||||
Arguments:
|
Arguments:
|
||||||
model_id (str): The Hugging Face repository ID.
|
model_id (str): The Hugging Face repository ID.
|
||||||
|
@@ -106,7 +106,7 @@ class SAM2VideoPredictor(SAM2Base):
|
|||||||
@classmethod
|
@classmethod
|
||||||
def from_pretrained(cls, model_id: str, **kwargs) -> "SAM2VideoPredictor":
|
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 hub.
|
||||||
|
|
||||||
Arguments:
|
Arguments:
|
||||||
model_id (str): The Hugging Face repository ID.
|
model_id (str): The Hugging Face repository ID.
|
||||||
|
Reference in New Issue
Block a user