Small edits (#721)

This commit is contained in:
pollfly
2023-11-27 15:14:21 +02:00
committed by GitHub
parent 1579a85c28
commit 70d31bfeed
3 changed files with 6 additions and 7 deletions

View File

@@ -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")