mirror of
https://github.com/clearml/clearml-docs
synced 2025-06-26 18:17:44 +00:00
Small edits (#721)
This commit is contained in:
@@ -84,6 +84,9 @@ Now that a new dataset is registered, you can consume it!
|
||||
The [data_ingestion.py](https://github.com/allegroai/clearml/blob/master/examples/datasets/data_ingestion.py) script
|
||||
demonstrates data ingestion using the dataset created in the first script.
|
||||
|
||||
The following script gets the dataset and uses [`Dataset.get_local_copy`](../../references/sdk/dataset.md#get_local_copy)
|
||||
to return a path to the cached, read-only local dataset.
|
||||
|
||||
```python
|
||||
dataset_name = "cifar_dataset"
|
||||
dataset_project = "dataset_examples"
|
||||
@@ -94,9 +97,6 @@ dataset_path = Dataset.get(
|
||||
).get_local_copy()
|
||||
```
|
||||
|
||||
The preceding script gets the dataset and uses the [`Dataset.get_local_copy`](../../references/sdk/dataset.md#get_local_copy)
|
||||
method to return a path to the cached, read-only local dataset.
|
||||
|
||||
If you need a modifiable copy of the dataset, use the following code:
|
||||
```python
|
||||
Dataset.get(dataset_name, dataset_project).get_mutable_local_copy("path/to/download")
|
||||
|
||||
Reference in New Issue
Block a user