PATH can be a local file, a local directory, or a URL
(containing ://) to log as a reference artifact.
If --name is not specified, the artifact name defaults to the
basename of the path. If the project cannot be parsed from the
name, you are prompted to enter one.
Examples
Upload all files in a local directory ./data/training as a dataset artifact in W&B.Usage
Options
| Flag | Type | Description |
|---|---|---|
-n, --name | STRING | Artifact name in project/artifact_name format. Defaults to the basename of the path. Default: None |
-d, --description | STRING | A description of this artifact. Default: None |
-t, --type | STRING | The type of the artifact. Defaults to ‘dataset’. Default: dataset |
-a, --alias | STRING | An alias to apply to this artifact. Can be specified multiple times. Defaults to ‘latest’. Default: [‘latest’] |
--id | STRING | Upload to an existing run with this ID. Default: None |
--resume | BOOL | Resume the last run from your current directory. Default: None |
--skip_cache | BOOL | Skip caching while uploading artifact files. Default: False |
--policy | Choice([‘mutable’, ‘immutable’]) | Set the storage policy for artifact files. Either ‘mutable’ (default) or ‘immutable’. Default: mutable |
--help | BOOL | Show this message and exit. Default: False |