Properties
-
name
Name of this ModelFile -
object_name
Object name of this ModelFile -
filename
Filename of this ModelFile -
large
If True, this ModelFile is considered having a large size
Methods
download
download(
target_path: Union[str, Path] = './', force_replace: bool = False
)
Description
Download file stored.
Examples
latest_cp = model.get_file("model-latest")
latest_cp.download("./files/")
Arguments
-
target_path (str or Path, optional) : Directory path where file will be downloaded
-
force_replace : (bool, optional): Replace an existing file if exists. Defaults to False.
delete
delete()
Description
Delete this file
Examples
model_file.delete()