NB
Nenural network Blocks (aka: NB, or neural network builder). This library provides massive fancy blocks for you for quick import to build your powerful. Some SOTA tricks and connections such as CSP, ASFF, Attention, BaseConv, Hardswish, all included for quick prototype your model.
nb is an idea comes from engineering, we build model with some common blocks, we exploring new ideas with SOTA tricks, but all those thing can be gathered into one single place, and for model quick design and prototyping.
this project is under construct for now, I will update it quickly once I found some new blocks that really works in model. Also, every single updated block will be recorded in updates.
Usage
Here is an example of using NB to build YoloV5!
A simple example to build a layer of conv:
from nb.torch.base.conv_block import ConvBase
a = ConvBase(128, 256, 3, 1, 2, norm_cfg=dict(type="BN"), act_cfg=dict(type="Hardswish"))
Be note that, the reason for us using cfg to specific norm and activation is for users dynamically switch their configuration of model in yaml format rather than hard code it.
Updates
-
2020.09.12: New backbone SpineNet added:
SpineNet is a backbone model specific for detection, it's a backbone but can do FPN's thing!! More info pls reference google's paper link.
from nb.torch.bakbones.spinenet import SpineNet model = SpineNet()
-
2020.09.11: New added blocks:
resnet.Bottleneck resnet.BasicBlock ConvBase
Support Matrix
We list all conv and block support in nb here:
conv:- Conv
- ConvWS: https://arxiv.org/pdf/1903.10520.pdf
- ...
Blocks:- CSPBlock:
Copyright
@Lucas Jin all rights reserved.
Metadata
Release files for nb-python 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nb-python-0.0.2.tar.gz | 12.4 kB | Details |
Release files / nb-python-0.0.2.tar.gz
| Download URL | nb-python-0.0.2.tar.gz |
|---|---|
| Size | 12.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
335bbddf911252c691a048c4d78bfb73faed899c1ac4bfe085ecf0f204f1d143
|
|
BLAKE2b-256 checksum How to use checksums |
16741e3829f27f33de2704bf041a6162dabb5c5884f45f7ee02d58cd9bed2b24
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.10
|