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

  • Install using pip install netloader1
  • 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,wandb]

  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.2.tar.gz (75.8 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.2-py3-none-any.whl (94.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: netloader-3.11.2.tar.gz
  • Upload date:
  • Size: 75.8 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.2.tar.gz
Algorithm Hash digest
SHA256 0e04e3de10210e69c70686e98e774b71736734825d242ba420619aa74d770c8c
MD5 431f552a6138555c7662212d9e9b9447
BLAKE2b-256 1e10ed9daba225332a1f04e303971fd7e2c6076b05af66c7cd44110f04e2a16c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: netloader-3.11.2-py3-none-any.whl
  • Upload date:
  • Size: 94.1 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6f1448971dd78ebcaf999e292db016fce2b7b1fdc0d3d0ef1e08f2c28ac61522
MD5 519677462994faf818216fab28f0d1a8
BLAKE2b-256 bd0e0a8c798ac8b4d6f2a3b7d46075a27584b2a57b58a5597c58aa59a9d0fa8f

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