mirror of
https://github.com/clearml/clearml-docs
synced 2025-02-12 07:25:44 +00:00
Add upload link artifact info (#710)
This commit is contained in:
parent
8273e3b08e
commit
7f6c2948fc
@ -603,7 +603,7 @@ Artifacts are the output files created by a task. ClearML uploads and logs these
|
|||||||
accessed, modified, and used.
|
accessed, modified, and used.
|
||||||
|
|
||||||
### Logging Artifacts
|
### Logging Artifacts
|
||||||
To log an artifact in a task, use the [`upload_artifact`](../references/sdk/task.md#upload_artifact) method.
|
To log an artifact in a task, use [`upload_artifact()`](../references/sdk/task.md#upload_artifact).
|
||||||
|
|
||||||
For example:
|
For example:
|
||||||
* Upload a local file containing the preprocessing results of the data:
|
* Upload a local file containing the preprocessing results of the data:
|
||||||
@ -617,6 +617,13 @@ For example:
|
|||||||
task.upload_artifact(name='folder', artifact_object='/path/to/folder')
|
task.upload_artifact(name='folder', artifact_object='/path/to/folder')
|
||||||
```
|
```
|
||||||
|
|
||||||
|
* Register links to network-stored objects (i.e. a URL where the scheme is supported by ClearML such as `http://`, `https://`,
|
||||||
|
`s3://`, `gs://`, or `azure://`). The artifact will only be added as a URL and will not be uploaded.
|
||||||
|
|
||||||
|
```python
|
||||||
|
task.upload_artifact(name='link', artifact_object='azure://bucket/folder')
|
||||||
|
```
|
||||||
|
|
||||||
* Serialize and upload a Python object. ClearML automatically chooses the file format based on the object’s type, or you
|
* Serialize and upload a Python object. ClearML automatically chooses the file format based on the object’s type, or you
|
||||||
can explicitly specify the format as follows:
|
can explicitly specify the format as follows:
|
||||||
* dict - `.json` (default), `.yaml`
|
* dict - `.json` (default), `.yaml`
|
||||||
|
Loading…
Reference in New Issue
Block a user