restore
less than a minute
function restore
restore(
name: 'str',
run_path: 'str | None' = None,
replace: 'bool' = False,
root: 'str | None' = None
) → None | TextIO
Download the specified file from cloud storage.
File is placed into the current directory or run directory. By default, will only download the file if it doesn’t already exist.
Args:
name
: the name of the filerun_path
: Path to a run to pull files fromusername/project_name/run_id
. Ifwandb.init
has not been called, this is required.replace
: whether to download the file even if it already exists locallyroot
: the directory to download the file to. Defaults to the current directory or the run directory ifwandb.init
was called.
Returns: None if it can’t find the file, otherwise a file object open for reading
Raises:
wandb.CommError
: if we can’t connect to the wandb backendValueError
: if the file is not found or can’t find run_path
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.