Skip to main content

Temporal Convolutional Networks (Deep-TCN) in PyTorch

This repository provides an implementation of Temporal Convolutional Networks (TCN) [1] in PyTorch, with focus on flexibility and fine-grained control over architecture parameters.

Additionally, it incorporates separable convolutions and pooling layers, contributing to the creation of more streamlined and computationally efficient networks.

Installation

Using pip:

pip install deep-tcn

To install the dependencies for examples, run

pip install deep-tcn[examples]

Alternatively, you can clone the repository and install the package using poetry:

poetry install

This time, to install the dependencies needed to run the examples, run

poetry install --all extras

Features

  • Causal Convolutions: Causal convolutions are employed, making the architecture suitable for sequential data.

  • Separable Convolutions: The implementation includes support for separable convolutions, aiming to reduce the overall number of network parameters.

  • (Channel) Pooling Layers: Channel pooling layers are integrated to further enhance the efficiency of the network by reducing dimensionality.

  • Flexible Depth Configuration: Optionally, network depth can be increased by adding nondilated convolutions after dilated convolutional layers.

  • Residual Blocks with Full Preactivation: Residual blocks are designed following the "full preactivation" design, according to [2]

  • Supported Normalization Layers:

    • Group Normalization
    • Weight Normalization
    • Batch Normalization

Usage

Please refer to the scripts under examples/ as a starting point.

References

[1] He et al.: Identity Mappings in Deep Residual Networks. ArXiv, 2016. Link

[2] Lea et al.: Temporal Convolutional Networks: A Unified Approach to Action Segmentation. ArXiv, 2016. Link

Release files for deep-tcn 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for deep-tcn 0.1.0
File Size Uploaded
deep_tcn-0.1.0.tar.gz 6.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for deep-tcn 0.1.0
File Interpreter ABI Platform
deep_tcn-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 14.4 kB

Release files / deep_tcn-0.1.0.tar.gz

Download URL deep_tcn-0.1.0.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
84019fc2f6e6e8bb687b2aac3286020832219ee76da8f31cb01c98e4d56ba299
BLAKE2b-256 checksum
How to use checksums
765b98a5094423d0c224c90f2f7e11aba25736b91ad53043eda5baeaf0cd586d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.0.dev0 CPython/3.8.18 Linux/4.15.0-213-generic

Release files / deep_tcn-0.1.0-py3-none-any.whl

Download URL deep_tcn-0.1.0-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ce36f4fadd224fc12f26be1ffd668b3a09c8d8d77a11c57313d254111692687f
BLAKE2b-256 checksum
How to use checksums
6a30d23195f56c99017115bd21e4c4cbe5912eaf8f26cd8d1b897532f9ab63be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.0.dev0 CPython/3.8.18 Linux/4.15.0-213-generic

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page