Tools of CV(Computer Vision)
Project description
Usage Sample ''''''''''''
.. code:: python
import torch
from torch import nn
from cvx2 import WidthBlock
model = nn.Sequential(
WidthBlock(c1=1, c2=32),
nn.MaxPool2d(kernel_size=2, stride=2),
WidthBlock(c1=32, c2=64),
nn.MaxPool2d(kernel_size=2, stride=2),
nn.Flatten(),
nn.Linear(in_features=64*49, out_features=1024),
nn.Dropout(0.2),
nn.SiLU(inplace=True),
nn.Linear(in_features=1024, out_features=2),
)
img = torch.randn(1, 1, 28, 28)
print(model(img).shape)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
CVX2-0.0.6.tar.gz
(10.8 kB
view details)
File details
Details for the file CVX2-0.0.6.tar.gz
.
File metadata
- Download URL: CVX2-0.0.6.tar.gz
- Upload date:
- Size: 10.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77bbb8b8506fae6a5a9e34861072761936f444ae87389493e0b6ac1af323c7f2 |
|
MD5 | 0f7894cc696688d679fd2523c5180e06 |
|
BLAKE2b-256 | 84011227465608512dffafa215ec8dec7d1e651163c3a0531a7b07aa0058e5e8 |