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.1.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.1-py3-none-any.whl (94.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: netloader-3.11.1.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.1.tar.gz
Algorithm Hash digest
SHA256 0e74f6b67a2d8e8b75f6cf969cc09eecc49e87441ce81ee5b52b71156aae26e2
MD5 1dafa5d76cacbd8e9f4c49caf9816b06
BLAKE2b-256 d92969a3bdcfeeae8a4239699e0cf1009897fabb423494323efc206a4b973821

See more details on using hashes here.

File details

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

File metadata

  • Download URL: netloader-3.11.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c8277685881468b6303d7a915df0e087b039358190fb43c95fa0b23006cb28e0
MD5 0817cb54a57e79cdd903e41eca9063cc
BLAKE2b-256 f1fd316ccb18824609360266d69881afdbfec63e7d147b4d26f9ab71cfe8bbbe

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