Skip to main content

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.1.tar.gz (7.5 kB view details)

Uploaded Source

File details

Details for the file CVX2-0.0.1.tar.gz.

File metadata

  • Download URL: CVX2-0.0.1.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for CVX2-0.0.1.tar.gz
Algorithm Hash digest
SHA256 8aafe7992466327badea7a1ee0b23db0431a1f32345aa44709832704f6d71231
MD5 09ecbb8dd1abe628bf9d628a6d692e36
BLAKE2b-256 3d04f31892c9781552dbd99cb3a5b7d56074d9e57feab33f6352056bc6f77387

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page