You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- [x] Users can turn on the service even if runs.swanlab does not exist.
- [x] version update, and limit
- [x] UI adjust
- [x] Close#205
- [x] Close#81
- [x] ...
---------
Co-authored-by: Zirui Cai <[email protected]>
Co-authored-by: Ze-Yi LIN <[email protected]>
Co-authored-by: ZeYi Lin <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+67-17Lines changed: 67 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,8 +28,9 @@ English | <a href="README_zh-hans.md">中文</a>
28
28
29
29
-[Key Function](#key-function)
30
30
-[Changelog](#changelog)
31
-
-[Use Case](#use-case)
31
+
-[Installation](#installation)
32
32
-[Getting Started](#getting-started)
33
+
-[Use Case](#use-case)
33
34
-[More Tips](#more-tips)
34
35
-[LICENSE](#license)
35
36
@@ -63,26 +64,33 @@ English | <a href="README_zh-hans.md">中文</a>
63
64
64
65
## Changelog
65
66
67
+
[24/01/23] 🚨 We use SQLite database and Peewee to replace the previous basic configuration information reading and writing solution by [#114](https://github.com/SwanHubX/SwanLab/issues/114). It's a major change that is highly beneficial for the future of the project, but the drawback is that it's not compatible with old versions (swanlab<=v0.1.4) of log data files. Therefore, if you need to visualize log files generated by older versions, please install version `<=0.1.4`.
68
+
69
+
Additionally, we supported export the experiment list as `CSV`, new environment record items `Run path` and `logdir`, added interactive quick copy function, and new API `swanlab.config`.
70
+
66
71
[24/01/14] 🔥 We supported a new UI, tracking additional environment information, including command, git commit/branch and memory. Additionally, we've added a `logdir` API, allowing developers to set the directory for log files.
67
72
68
73
[24/01/07] ✨ We supported delete experiment and edit experiment inforamation on Dashboard.
69
74
70
-
[24/01/01] We fixed some bugs to make SwanLab more stable.
Learn how to use SwanLab more effectively by following these use cases:
81
+
### with pip
79
82
80
-
| Code Cases | Description |
81
-
| ------- | ------- |
82
-
|[Hello World](https://github.com/SwanHubX/SwanLab-examples/tree/main/Hello_World)| Getting Started |
83
-
|[MNIST](https://github.com/SwanHubX/SwanLab-examples/tree/main/MNIST)| Handwriting recognition based on a plain net and MNIST dataset with pytroch, swanlab. |
84
-
|[Image Classification](https://github.com/SwanHubX/SwanLab-examples/blob/main/Resnet50)| Cat and dog classification based on ResNet50 with pytorch, swanlab and gradio. [Tutorial](https://zhuanlan.zhihu.com/p/676430630). |
85
-
|[Text Generation](https://github.com/SwanHubX/SwanLab-examples/blob/main/Word_language_model)| Text generation based on Word_language_model (RNN/LSTM/GRU/Transformer) |
83
+
Requirement:Python 3.8+.
84
+
85
+
Use [pip](https://pip.pypa.io/en/stable/) to install our stable release version. The installation command is as follows:
86
+
87
+
```bash
88
+
pip install -U swanlab
89
+
```
90
+
91
+
### with source code
92
+
93
+
If you need the bleeding edge of the code and can't wait for a new release, you must [install the library from source](https://geektechstudio.feishu.cn/wiki/DvxSweHUKiAe8yksci3cMflbnwh#SMXHdJ1c1o4jzTxcDticHcwvnHd)。
86
94
87
95
<br>
88
96
@@ -95,7 +103,7 @@ pip install -U swanlab
95
103
```
96
104
97
105
2. Second, Use the example code snippet below as a template to integrate SwanLab to your Python script:
98
-
```Python
106
+
```python
99
107
import swanlab
100
108
101
109
# Start a SwanLab Run with swanlab.init
@@ -120,9 +128,28 @@ That's it! Open http://127.0.0.1:5092 to view a dashboard of your first SwanLab
120
128
121
129
<br>
122
130
131
+
## Use Case
132
+
133
+
Learn how to use SwanLab more effectively by following these use cases:
134
+
135
+
| Code Cases | Description |
136
+
| ------- | ------- |
137
+
|[Hello World](https://github.com/SwanHubX/SwanLab-examples/tree/main/Hello_World)| Getting Started |
138
+
|[MNIST](https://github.com/SwanHubX/SwanLab-examples/tree/main/MNIST)| Handwriting recognition based on a plain net and MNIST dataset with pytroch, swanlab. |
139
+
|[Image Classification](https://github.com/SwanHubX/SwanLab-examples/blob/main/Resnet50)| Cat and dog classification based on ResNet50 with pytorch, swanlab and gradio. [Tutorial](https://zhuanlan.zhihu.com/p/676430630). |
140
+
|[Text Generation](https://github.com/SwanHubX/SwanLab-examples/blob/main/Word_language_model)| Text generation based on Word_language_model (RNN/LSTM/GRU/Transformer) |
141
+
142
+
<br>
143
+
123
144
## More Tips
124
145
125
-
- Set a log directory save path and run the Dashboard using it:
146
+
🏄♀️ Experiment Dashboard:
147
+
148
+
<details>
149
+
<summary>Set a log directory save path and run the Dashboard using it</summary>
150
+
151
+
Set a log directory save path, such as `./logs`:
152
+
126
153
```python
127
154
import swanlab
128
155
@@ -131,15 +158,37 @@ swanlab.init(
131
158
)
132
159
```
133
160
161
+
Run the Dashboard using it:
162
+
134
163
```bash
135
164
$ swanlab watch --logdir ./logs_path
136
165
```
137
166
138
-
- Set the Host and Port for the Dashboard:
167
+
</details>
168
+
169
+
<details>
170
+
<summary>Set the Host and Port for the Dashboard</summary>
171
+
139
172
```bash
140
173
$ swanlab watch --host 0.0.0.0 --port 8080
141
174
```
142
-
- Use Argparse init swanlab.config:
175
+
176
+
</details>
177
+
178
+
<details>
179
+
<summary>Remotely access Dashboard</summary>
180
+
181
+
- Link:[Access the SwanLab Dashboard While Training on a Remote Server](https://zhuanlan.zhihu.com/p/677224865)
182
+
183
+
</details>
184
+
185
+
⚙️ Other:
186
+
187
+
<details>
188
+
<summary>argparse init swanlab.config</summary>
189
+
190
+
`swanlab.config` supports directly passing variables of type `argparse.Namespace`, such as:
191
+
143
192
```python
144
193
import argparse
145
194
import swanlab
@@ -150,11 +199,12 @@ args = parser.parse_args()
150
199
151
200
152
201
swanlab.init(
153
-
config=vars(args)
202
+
config=args
154
203
)
155
204
```
156
205
157
-
-[Remotely access Dashboard](https://zhuanlan.zhihu.com/p/677224865): Access the SwanLab Dashboard While Training on a Remote Server.
> See the SwanLab <ahref="https://geektechstudio.feishu.cn/wiki/MwXmw9yDeiZWyQkPnNgcixwWnwu">Documentaion</a> and <ahref="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/SwanHubX/SwanLab-examples">Examples</a> for a full description of the SwanLab.
0 commit comments