mirror of
https://github.com/clearml/clearml-docs
synced 2025-06-26 18:17:44 +00:00
Small edits (#171)
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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'
|
||||
)
|
||||
```
|
||||
|
||||
|
||||
@@ -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"
|
||||
)
|
||||
```
|
||||
|
||||

|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user