Skip to main content

Utility to generate and train PyTorch neural network objects from JSON files

Project description

PyTorch Network Loader

PyTorch Network Loader is a utility that enables the easy creation of neural networks in PyTorch using JSON configuration files. The package automatically tracks layer output shapes, eliminating the need to manually calculate input dimensions for each layer. NetLoader also provides an architecture framework that allows for the easy architecture setup and training framework, along with additional useful utilities to accelerate the use of neural networks in science.

See the Wiki for more information on how to use this package.
For a real-world example of this package, see Bayesian-DARKSKIES.

Requirements

Using Within Projects

  • pip install netloader @ git+https://github.com/EthanTreg/PyTorch-Network-Loader@LATEST-VERSION1 to requirements.txt
  • Install using pip install -r requirements.txt
  • Example of InceptionV4 can be downloaded under ./network_configs/inceptionv4.json along with the composite layers in ./network_configs/composite_layers/

Locally Running NetLoader

  • Clone or download the repository
  • Install dependencies: pip install -r requirements.txt
  • PyTorch's dependencies2:
    NVIDIA GPU with CUDA Toolkit ~= v12.1
  1. To use normalising flows or weights & biases, netloader must be pip installed with the optional argument flows and/or wandb: pip install netloader[flows] @ git+https://github.com/EthanTreg/PyTorch-Network-Loader@LATEST-VERSION

  2. Only required for use with NVIDIA GPU, v11.8 is also supported, but requirements.txt will try to install the v12.1 version

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

netloader-3.11.0.tar.gz (74.3 kB view details)

Uploaded Source

Built Distribution

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

netloader-3.11.0-py3-none-any.whl (92.6 kB view details)

Uploaded Python 3

File details

Details for the file netloader-3.11.0.tar.gz.

File metadata

  • Download URL: netloader-3.11.0.tar.gz
  • Upload date:
  • Size: 74.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for netloader-3.11.0.tar.gz
Algorithm Hash digest
SHA256 b748e5e7077b3c803c3003b9e69f1666be2c5dea31f24d3faaba4792b04a18b5
MD5 13afa7221767c78650a59fa303d8d3e1
BLAKE2b-256 5b982457302b101710ef62c492f988390ae11c7ece97bdf753ef6f168bc0071c

See more details on using hashes here.

File details

Details for the file netloader-3.11.0-py3-none-any.whl.

File metadata

  • Download URL: netloader-3.11.0-py3-none-any.whl
  • Upload date:
  • Size: 92.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for netloader-3.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c79afa56fe8d5490bcbf730cebbfa2623d95ce749fc8903486f4e2f8ce65ee7a
MD5 cd5075a7ece94df474fb0f60a4be4f83
BLAKE2b-256 fba66d0d9796ebd4dd7b8a0f7d49596fce49558970156fc2ed0f523b7fb784ed

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