Skip to main content

Framework for the automatic creation of CNN architectures

Project description

TorchCNNBuilder


Description in Russian is presented here.


TorchCNNBuilder is an open-source framework for the automatic creation of CNN architectures. This framework should first of all help researchers in the applicability of CNN models for a huge range of tasks, taking over most of the writing of the architecture code. This framework is distributed under the 3-Clause BSD license. All the functionality is written only using pytorch (no third-party dependencies).

Installation


The simplest way to install framework is using pip:

pip install torchcnnbuilder
Minimum technical requirements The minimum system requirements for using the library are a Python interpreter version >3.9 and access to a computing system running Windows/Linux. The minimum hardware requirements include a processor (CPU) with 8 cores, 2GB of RAM, a graphics processor (GPU) with 8GB of VRAM, and 2GB of HDD storage.
Additional packages for examples run

Please note that when running examples from the examples folder, additional libraries are used to visualize and generate the dataset:

pip install numpy
pip install pytorch_msssim
pip install matplotlib
pip install tqdm

They are not required for the library to work, so their installation is optional.

Usage

To initialize simple model with encoder-decoder architecture call ForecasterBase class:

from torchcnnbuilder.models import ForecasterBase

model = ForecasterBase(input_size=[H, W],
                       in_time_points=C_in,
                       out_time_points=C_out,
                       n_layers=5)

Where [H, W] - size of image in pixels, C_in - number of input channels, C_out - number of out_channels.

To operate separately with encoder and decoder parts they can be called from model:

encoder = model.encoder
decoder = model.decoder

Examples

Extensive usage scenarios can be found in examples folder.

Components calls and usage in folder usage_examples.

Documentation

Check the documentation here.

Development

In order to check available local Makefile commands run in the project root:

make help
help: Show help for each of the Makefile recipes.
lint: Lint the project with flake8 lib.
doc: Build and run the doc locally.

Application Areas

TorchCNNBuilder enables CNN architectures for diverse real-world applications across multiple domains:

Environmental Monitoring

  • Sea ice concentration forecasting
    Predict Arctic and Antarctic ice melt patterns to support climate research and maritime navigation safety using satellite imagery time series.

  • Climate pattern recognition
    Analyze large-scale atmospheric data to identify emerging weather patterns, extreme event precursors, and long-term climate trends.

  • Pollution level prediction
    Process multispectral sensor data to forecast air/water quality indices and identify pollution sources with spatial CNN architectures.

Remote Sensing

  • Satellite image analysis
    Process high-resolution multispectral imagery for applications ranging from urban planning to precision agriculture using specialized encoder architectures.

  • Land cover classification
    Automate large-scale terrain mapping with attention-based CNNs that handle spectral, spatial and temporal dimensions of data.

  • Disaster monitoring
    Develop change detection systems that compare pre/post-event satellite imagery to assess flood, fire or earthquake damage in near-real-time.

Medical Imaging

  • Automated diagnosis from X-ray/MRI scans
    Develop assistive diagnostic systems that can detect abnormalities in medical images with pixel-level precision while reducing radiologist workload.

  • Tumor segmentation
    Create 3D convolutional networks for precise volumetric analysis of cancerous growths in CT/MRI scans.

  • Medical time-series analysis
    Process sensor streams to predict patient deterioration through temporal features processing architectures.

Industrial Applications

  • Predictive maintenance
    Monitor equipment vibration patterns and thermal signatures to forecast mechanical failures.

  • Quality control in manufacturing
    Implement real-time visual inspection systems that detect defects in production lines.

Financial Forecasting

  • Time-series prediction
    Build hybrid CNN-LSTM architectures that extract both spatial patterns from market heatmaps and temporal dependencies from price histories.

  • Market trend analysis
    Process alternative data sources like satellite images of parking lots or social media sentiment through CNN architectures.

Sources


Contributing

Acknowledgement

The project is supported by FASIE - Foundation for Assistance to Small Innovative Enterprises.

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

torchcnnbuilder-0.1.5.tar.gz (20.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

torchcnnbuilder-0.1.5-py3-none-any.whl (21.0 kB view details)

Uploaded Python 3

File details

Details for the file torchcnnbuilder-0.1.5.tar.gz.

File metadata

  • Download URL: torchcnnbuilder-0.1.5.tar.gz
  • Upload date:
  • Size: 20.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.13

File hashes

Hashes for torchcnnbuilder-0.1.5.tar.gz
Algorithm Hash digest
SHA256 1b49eaf467596cefe8145acbd996afbe2db535203a402d1cf52aa2236de52a22
MD5 a70fd2644108266f65798a9a149d2f76
BLAKE2b-256 75d58106e18257a2b841ab7db31b0007cd3cde2096767143000d534c514d1aae

See more details on using hashes here.

File details

Details for the file torchcnnbuilder-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for torchcnnbuilder-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 8915c43be32dfb4d062ec4d948c10dde8f41e3dfbfb29870e45435f0d95f5393
MD5 4e9e23f68af9147932cc5232fa88d49f
BLAKE2b-256 8cf90f3796b9ece8a372677589e4fcedfc96d9ee4d7d575bca8de26ad6d07ded

See more details on using hashes here.

Supported by

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