Small edits (#171)

This commit is contained in:
pollfly
2022-01-23 09:50:24 +02:00
committed by GitHub
parent 9aa4bca2ab
commit 9727045603
5 changed files with 33 additions and 22 deletions

View File

@@ -3,7 +3,7 @@ title: PyTorch MNIST
---
The [pytorch_mnist.py](https://github.com/allegroai/clearml/blob/master/examples/frameworks/pytorch/pytorch_mnist.py) example
demonstrates the integration of **ClearML** into code that uses PyTorch.
demonstrates the integration of ClearML into code that uses PyTorch.
The example script does the following:
* Trains a simple deep neural network on the PyTorch built-in [MNIST](https://pytorch.org/vision/stable/datasets.html#mnist)

View File

@@ -30,19 +30,20 @@ and running, users can send Tasks to be executed on the Google Colab's HW.
This environment variable makes Matplotlib work in headless mode, so it won't output graphs to the screen.
1. Create new credentials.
Go to your **profile** in the [ClearML WebApp](https://app.clear.ml). Under the **WORKSPACES** section,
go to **App Credentials**, click **+ Create new credentials**, and copy the information that pops up.
Go to your [**Settings**](https://app.clear.ml/settings/workspace-configuration) page > **WORKSPACE** section.
Under **App Credentials**, click **+ Create new credentials**, and copy the information that pops up.
1. Set the credentials.
In the third cell, enter your own credentials:
```python
from clearml import Task
Task.set_credentials(api_host="https://api.community.clear.ml",
web_host="https://app.community.clear.ml",
files_host="https://files.community.clear.ml",
key='6ZHX9UQMYL874A1NE8',
secret='=2h6#%@Y&m*tC!VLEXq&JI7QhZPKuJfbaYD4!uUk(t7=9ENv'
Task.set_credentials(
api_host="https://api.community.clear.ml",
web_host="https://app.community.clear.ml",
files_host="https://files.community.clear.ml",
key='6ZHX9UQMYL874A1NE8',
secret='=2h6#%@Y&m*tC!VLEXq&JI7QhZPKuJfbaYD4!uUk(t7=9ENv'
)
```

View File

@@ -196,7 +196,12 @@ logger.report_media('audio', 'pink panther', iteration=1, local_path=audio_local
### HTML
```python
logger.report_media("html", "url_html", iteration=1, url="https://clear.ml/docs/latest/docs/index.html")
logger.report_media(
"html",
"url_html",
iteration=1,
url="https://clear.ml/docs/latest/docs/index.html"
)
```
![HTML sample](../../img/colab_explicit_reporting_09.png)

View File

@@ -21,7 +21,12 @@ See the example script's [report_html_url](https://github.com/allegroai/clearml/
function, which reports the ClearML documentation's home page.
```python
Logger.current_logger().report_media("html", "url_html", iteration=iteration, url="https://clear.ml/docs/latest/docs/index.html")
Logger.current_logger().report_media(
"html",
"url_html",
iteration=iteration,
url="https://clear.ml/docs/latest/docs/index.html"
)
```
## Reporting HTML Local Files