mirror of
https://github.com/clearml/clearml-docs
synced 2025-06-26 18:17:44 +00:00
Small changes (#113)
This commit is contained in:
@@ -24,7 +24,9 @@ We first need to obtain a local copy of the CIFAR dataset.
|
||||
from clearml import StorageManager
|
||||
|
||||
manager = StorageManager()
|
||||
dataset_path = manager.get_local_copy(remote_url="https://www.cs.toronto.edu/~kriz/cifar-10-python.tar.gz")
|
||||
dataset_path = manager.get_local_copy(
|
||||
remote_url="https://www.cs.toronto.edu/~kriz/cifar-10-python.tar.gz"
|
||||
)
|
||||
```
|
||||
|
||||
This script downloads the data and `dataset_path` contains the path to the downloaded data.
|
||||
@@ -83,12 +85,19 @@ demonstrates data ingestion using the dataset created in the first script.
|
||||
dataset_name = "cifar_dataset"
|
||||
dataset_project = "dataset_examples"
|
||||
|
||||
dataset_path = Dataset.get(dataset_name=dataset_name, dataset_project=dataset_project).get_local_copy()
|
||||
dataset_path = Dataset.get(
|
||||
dataset_name=dataset_name,
|
||||
dataset_project=dataset_project
|
||||
).get_local_copy()
|
||||
```
|
||||
|
||||
The script above 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 `Dataset.get(dataset_name, dataset_project).get_mutable_local_copy(path/to/download)`
|
||||
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")
|
||||
```
|
||||
|
||||
The script then creates a neural network to train a model to classify images from the dataset that was
|
||||
created above.
|
||||
Reference in New Issue
Block a user