-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
3,420 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# API Docs | ||
|
||
## CLI | ||
- [swanlab watch](/en/api/cli-swanlab-watch.md): Start offline experiment board | ||
- [swanlab login](/en/api/cli-swanlab-login.md): Login to SwanLab | ||
- [swanlab convert](/en/api/cli-swanlab-convert.md): Convert external logs to SwanLab project | ||
|
||
## Python SDK | ||
- [init](/en/api/py-init.md) | ||
- [login](/en/api/py-login.md) | ||
- [Image](/en/api/py-Image.md) | ||
- [Audio](/en/api/py-Audio.md) | ||
- [Text](/en/api/py-Text.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# swanlab convert | ||
|
||
```bash | ||
swanlab convert [OPTIONS] | ||
``` | ||
|
||
| Option | Description | | ||
| --- | --- | | ||
| `-t`, `--type` | Select the conversion type, options include `tensorboard`, `wandb`, default is `tensorboard`. | | ||
| `-p`, `--project` | Set the SwanLab project name for the conversion, default is None. | | ||
| `-w`, `--workspace` | Set the workspace where the SwanLab project is located, default is None. | | ||
| `-l`, `--logdir` | Set the log file save path for the SwanLab project, default is None. | | ||
| `--cloud` | Set whether the SwanLab project logs are uploaded to the cloud, default is True. | | ||
| `--tb-logdir` | Path to the Tensorboard log files (tfevent) to be converted. | | ||
| `--wb-project` | Name of the Wandb project to be converted. | | ||
| `--wb-entity` | Entity where the Wandb project to be converted is located. | | ||
| `--wb-runid` | ID of the Wandb Run to be converted. | | ||
|
||
## Introduction | ||
|
||
Convert content from other logging tools into SwanLab projects. | ||
Supported tools for conversion include: `Tensorboard`, `Weights & Biases`. | ||
|
||
## Usage Examples | ||
|
||
### Tensorboard | ||
|
||
[Integration - Tensorboard](/en/guide_cloud/integration/integration-tensorboard.md) | ||
|
||
### Weights & Biases | ||
|
||
[Integration - Weights & Biases](/en/guide_cloud/integration/integration-wandb.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# swanlab login | ||
|
||
``` bash | ||
swanlab login [OPTIONS] | ||
``` | ||
|
||
| Option | Description | | ||
| --- | --- | | ||
| `--relogin` | Re-login. | | ||
|
||
## Introduction | ||
|
||
Log in to your SwanLab account to synchronize experiments to the cloud. | ||
|
||
After running the following command, if it's your first login, you will be prompted to fill in your [API_KEY](#): | ||
|
||
```bash | ||
swanlab login | ||
``` | ||
|
||
After the first login, the credentials will be saved locally, and you won't need to log in again via `swanlab.login` or `swanlab login`. | ||
|
||
## Re-login | ||
|
||
If you need to log in with a different account, use the following command: | ||
|
||
```bash | ||
swanlab login --relogin | ||
``` | ||
|
||
This will prompt you to enter a new API Key to re-login. | ||
|
||
## Logout | ||
|
||
```bash | ||
swanlab logout | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# swanlab | ||
|
||
```bash | ||
swanlab logout | ||
``` | ||
|
||
Logout from the programming environment. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Other CLI Commands | ||
|
||
- `swanlab -v`: Check the version of the SwanLab library. | ||
- `swanlab --help`: API help. |
Oops, something went wrong.