Skip to content

Commit 24932bc

Browse files
committed
update README and notebooks
1 parent a5e03e2 commit 24932bc

File tree

4 files changed

+185
-117
lines changed

4 files changed

+185
-117
lines changed

README.md

+55-48
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<br />
2929
<div align="center">
3030
<a href="https://github.com/microsoft/Semi-supervised-learning">
31-
<img src="figures/logo.png" alt="Logo" width="320" height="120">
31+
<img src="figures/logo.png" alt="Logo" width="400" height="160">
3232
</a>
3333

3434
<h3 align="center">USB</h3>
@@ -57,12 +57,8 @@
5757
<details>
5858
<summary>Table of Contents</summary>
5959
<ol>
60-
<li>
61-
<a href="#news-and-updates">News and Updates</a>
62-
</li>
63-
<li>
64-
<a href="#intro">Introduction</a>
65-
</li>
60+
<li><a href="#news-and-updates">News and Updates</a></li>
61+
<li><a href="#intro">Introduction</a></li>
6662
<li>
6763
<a href="#getting-started">Getting Started</a>
6864
<ul>
@@ -71,12 +67,10 @@
7167
</ul>
7268
</li>
7369
<li><a href="#usage">Usage</a></li>
74-
<li><a href="#model-zoo">Model Zoo</a></li>
7570
<li><a href="#benchmark-results">Benchmark Results</a></li>
76-
<li><a href="#roadmap">Roadmap</a></li>
77-
<li><a href="#contributing">Contributing</a></li>
71+
<li><a href="#model-zoo">Model Zoo</a></li>
72+
<li><a href="#contributing">Community</a></li>
7873
<li><a href="#license">License</a></li>
79-
<li><a href="#contact">Contact</a></li>
8074
<li><a href="#acknowledgments">Acknowledgments</a></li>
8175
</ol>
8276
</details>
@@ -95,27 +89,22 @@ USB is a Pytorch-based Python package for Semi-Supervised Learning (SSL). It is
9589
## Getting Started
9690

9791
This is an example of how to set up USB locally.
98-
To get a local copy up and running follow these simple example steps.
92+
To get a local copy up, running follow these simple example steps.
9993

10094
### Prerequisites
10195

10296
USB is built on pytorch, with torchvision, torchaudio, and transformers.
10397

10498
To install the required packages, you can create a conda environment:
10599
```sh
106-
conda install --name usb --file environment.txt
100+
conda create --name usb python=3.8
107101
```
108102

109-
or use pip:
103+
then use pip to install required packages:
110104
```sh
111105
pip install -r requirements.txt
112106
```
113107

114-
or docker:
115-
```sh
116-
add docker
117-
```
118-
119108
### Installation
120109

121110
We provide a Python package of USB for users who want to start training/testing the supported SSL algorithms on their data quickly:
@@ -138,16 +127,14 @@ git clone https://github.com/microsoft/Semi-supervised-learning.git
138127
<!-- USAGE EXAMPLES -->
139128
## Usage
140129

141-
Use this space to show useful examples of how a project can be used. Additional screenshots, code examples and demos work well in this space. You may also link to more resources.
130+
USB is easy to use and extend. Going through the belowing examples will help you faimiliar with USB for quick use, evaluate an exsiting SSL algorithm on your own dataset, or developing new SSL algorithms.
142131

143-
### Quick Start
132+
### Quick Start with USB package
144133
<!-- TODO: add quick start example and refer lighting notebook -->
145134
Please see [Installation](#installation) to install USB first. We provide colab tutorials for:
146135

147-
- [A beginning example](notebooks/Beginner_Example.ipynb)
148-
- [Customize models](notebooks/Custom_Algorithm.ipynb)
136+
- [Beginning example](notebooks/Beginner_Example.ipynb)
149137
- [Customize datasets](notebooks/Custom_Dataset.ipynb)
150-
- [USB lighting](notebooks/lighting_example.ipynb)
151138

152139
### Training
153140
Here is an example to train FixMatch on CIFAR-100 with 200 labels. Trianing other supported algorithms (on other datasets with different label settings) can be specified by a config file:
@@ -162,37 +149,38 @@ python eval.py --dataset cifar100 --num_classes 100 --load_path /PATH/TO/CHECKPO
162149
```
163150

164151
### Develop
165-
TODO: add develop example notebook
152+
Check the developing documentation for creating your own SSL algorithm!
153+
166154

167155
_For more examples, please refer to the [Documentation](https://example.com)_
168156

169157
<p align="right">(<a href="#top">back to top</a>)</p>
170158

171159

172-
<!-- MODEL ZOO -->
173-
## Model Zoo
160+
<!-- BENCHMARK RESULTS -->
161+
## Benchmark Results
174162

175-
TODO: add pre-trained models.
163+
Please refer to [Results](./results) for benchmark results on different tasks.
176164

177165
<p align="right">(<a href="#top">back to top</a>)</p>
178166

179167

180-
<!-- BENCHMARK RESULTS -->
181-
## Benchmark Results
168+
<!-- MODEL ZOO -->
169+
## Model Zoo
182170

183-
Please refer to Results for benchmark results.
171+
TODO: add pre-trained models.
184172

185173
<p align="right">(<a href="#top">back to top</a>)</p>
186174

187175

176+
188177
<!-- ROADMAP -->
189-
## Roadmap
178+
## TODO
190179

191180
- [ ] Add docker
192-
- [ ] Add Logo figures
193181
- [ ] Finish Readme
194182
- [ ] Compile docs and add usage example in docs
195-
- [ ] Create Colab Notebooks
183+
- [ ] Check Notebooks Create Colab Notebooks
196184
- [ ] Updating SUPPORT.MD with content about this project's support experience
197185
- [ ] Multi-language Support
198186
- [ ] Chinese
@@ -220,10 +208,10 @@ contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additio
220208
If you have a suggestion that would make USB better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
221209
Don't forget to give the project a star! Thanks again!
222210

223-
1. Fork the Project
224-
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
225-
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
226-
4. Push to the Branch (`git push origin feature/AmazingFeature`)
211+
1. Fork the project
212+
2. Create your branch (`git checkout -b your_name/your_branch`)
213+
3. Commit your changes (`git commit -m 'Add some features'`)
214+
4. Push to the branch (`git push origin your_name/your_branch`)
227215
5. Open a Pull Request
228216

229217
<p align="right">(<a href="#top">back to top</a>)</p>
@@ -249,28 +237,47 @@ Distributed under the MIT License. See `LICENSE.txt` for more information.
249237

250238

251239
<!-- CONTACT -->
252-
## Contributors and Contact
240+
## Community and Contact
253241

254-
Your Name - [@your_twitter](https://twitter.com/your_username) - email@example.com
255-
256-
Project Link: [https://github.com/your_username/repo_name](https://github.com/your_username/repo_name)
242+
The USB comunity is maintained by:
243+
- Yidong Wang (),
244+
- Hao Chen (haoc3@andrew.cmu.edu), Carnegie Mellon University
245+
- Yue Fan (),
246+
- Wenxin Hou (),
247+
- Ran Tao (),
248+
- Jindong Wang (),
257249

258250
<p align="right">(<a href="#top">back to top</a>)</p>
259251

260252
<!-- CITE -->
261-
## Cite
253+
## Citing USB
254+
Please cite us if you fine USB helpful for your project/paper:
255+
256+
```
257+
@article{},
258+
title={},
259+
author={},
260+
booktitle={},
261+
year={}
262+
}
263+
```
264+
262265

263266
<!-- ACKNOWLEDGMENTS -->
264267
## Acknowledgments
265268

266-
TODO: add acknowledges
269+
We thanks the following projects for reference of creating USB:
267270

268-
<p align="right">(<a href="#top">back to top</a>)</p>
271+
- [TorchSSL](https://github.com/TorchSSL/TorchSSL)
272+
- [FixMatch](https://github.com/google-research/fixmatch)
273+
- [CoMatch](https://github.com/salesforce/CoMatch)
274+
- [SimMatch](https://github.com/KyleZheng1997/simmatch)
275+
- [HuggingFace](https://huggingface.co/docs/transformers/index)
276+
- [Pytorch Lighting](https://github.com/Lightning-AI/lightning)
277+
- [README Template](https://github.com/othneildrew/Best-README-Template)
269278

270279

271-
<!-- References -->
272-
## References
273-
TODO: add reference markdown
280+
<p align="right">(<a href="#top">back to top</a>)</p>
274281

275282

276283
<!-- MARKDOWN LINKS & IMAGES -->

notebooks/Beginner_Example.ipynb

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
}
2222
},
2323
"source": [
24-
"## This tutorial will walk you through the basics of using the `torchssl-lightning` framework. Let's get started by training a FixMatch model on CIFAR-10!"
24+
"## This tutorial will walk you through the basics of using the `usb` lighting package. Let's get started by training a FixMatch model on CIFAR-10!"
2525
]
2626
},
2727
{
@@ -36,8 +36,8 @@
3636
"outputs": [],
3737
"source": [
3838
"import sys\n",
39-
"sys.path.append('../')\n",
40-
"from src import get_dataset, get_data_loader, net_builder, get_algorithm, get_config, Trainer"
39+
"# sys.path.append('../')\n",
40+
"from usb import get_dataset, get_data_loader, net_builder, get_algorithm, get_config, Trainer"
4141
]
4242
},
4343
{

0 commit comments

Comments
 (0)