class Artifact(object)
An artifact object you can write files into, and pass to log_artifact.
add
| add(obj, name)
Adds obj
to the artifact, located at name
. You can use Artifact#get(name
) after downloading the artifact to retrieve this object.
Arguments:
obj
wandb.Media - The object to save in an artifact
name
str - The path to save
get_added_local_path_name
| get_added_local_path_name(local_path)
If local_path was already added to artifact, return its internal name.
class ArtifactManifestV1(ArtifactManifest)
to_manifest_json
| to_manifest_json()
This is the JSON that's stored in wandb_manifest.json
If include_local is True we also include the local paths to files. This is used to represent an artifact that's waiting to be saved on the current system. We don't need to include the local paths in the artifact manifest contents.
class TrackingHandler(StorageHandler)
__init__
| __init__(scheme=None)
Tracks paths as is, with no modification or special processing. Useful when paths being tracked are on file systems mounted at a standardized location.
For example, if the data to track is located on an NFS share mounted on /data, then it is sufficient to just track the paths.
class LocalFileHandler(StorageHandler)
Handles file:// references
__init__
| __init__(scheme=None)
Tracks files or directories on a local filesystem. Directories are expanded to create an entry for each file contained within.
class WBArtifactHandler(StorageHandler)
Handles loading and storing Artifact reference-type files