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.2.tar.gz
(10.6 kB
view details)
File details
Details for the file CVX2-0.0.2.tar.gz
.
File metadata
- Download URL: CVX2-0.0.2.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 935275c8e72ad813b6fa9b2c79c30247d229d1401482f8d5617f8f562b818b4e |
|
MD5 | 9b6ec714130022d1dd93b46f2be802aa |
|
BLAKE2b-256 | 73c85d5d18af20289cddfa2557e761e4a556ffe44139dab4fe4d0a9299d3a8d9 |