core-pytorch-utils-1.0.4
توضیحات
Core APIs for deep learning.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | core-pytorch-utils-1.0.4 |
| نام | core-pytorch-utils |
| نسخه کتابخانه | 1.0.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | serend1p1ty |
| ایمیل نویسنده | zjli1997@163.com |
| آدرس صفحه اصلی | https://github.com/serend1p1ty/core-pytorch-utils |
| آدرس اینترنتی | https://pypi.org/project/core-pytorch-utils/ |
| مجوز | MIT License |
<img src="https://github.com/serend1p1ty/core-pytorch-utils/blob/main/docs/_static/logo.png" alt="drawing" width="200"/>
[](https://core-pytorch-utils.readthedocs.io/en/latest/?badge=latest)
[](https://github.com/serend1p1ty/core-pytorch-utils/actions)
[](https://codecov.io/gh/serend1p1ty/core-pytorch-utils)
[](https://github.com/serend1p1ty/core-pytorch-utils/blob/main/LICENSE)
# Core PyTorch Utils (CPU)
This package is a light-weight core library that provides the most common and essential functionalities shared in various deep learning tasks:
- `Trainer`: does tedious training logic for you.
- `LRWarmupScheduler`: wraps all standard PyTorch LR scheduler to support warmup.
- `ConfigArgumentParser`: provides an argument parser that supports loading a YAML configuration file.
- ......
You can find a brief Chinese introduction at [zhihu](https://zhuanlan.zhihu.com/p/449181811).
## Installation
From PyPI.
```
pip install core-pytorch-utils
```
Or from source.
```
git clone https://github.com/serend1p1ty/core-pytorch-utils.git
cd core-pytorch-utils
pip install -r requirements.txt
pip install -v -e .
```
## Getting Started
In [examples/](https://github.com/serend1p1ty/core-pytorch-utils/tree/main/examples) folder, we show how to use our Trainer to train a CNN on MINIST.
It is **strongly** recommended that you run this code before using the CPU library.
## Advanced
Learn more from our [documentaion](https://core-pytorch-utils.readthedocs.io/en/latest/).
## Contributing
Pull request is welcomed! Before submitting a PR, **DO NOT** forget to run `./dev/linter.sh` that provides syntax checking and code style optimation.
## License
CPU is released under the [MIT License](LICENSE).
## Acknowledgments
We refered [mmcv](https://github.com/open-mmlab/mmcv.git), [detectron2](https://github.com/facebookresearch/detectron2.git) and [pytorch-image-models](https://github.com/rwightman/pytorch-image-models) when develping CPU.
نیازمندی
| مقدار | نام |
|---|---|
| >1.6 | torch |
| - | numpy |
| - | pyyaml |
| - | tabulate |
| - | termcolor |
| - | tensorboard |
| ~=3.19.0 | protobuf |
نحوه نصب
نصب پکیج whl core-pytorch-utils-1.0.4:
pip install core-pytorch-utils-1.0.4.whl
نصب پکیج tar.gz core-pytorch-utils-1.0.4:
pip install core-pytorch-utils-1.0.4.tar.gz