torchtools

Helpful PyTorch models and data-loading tools

https://github.com/jdenholm/torchtools

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (18.9%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

Helpful PyTorch models and data-loading tools

Basic Info
Statistics
  • Stars: 4
  • Watchers: 1
  • Forks: 1
  • Open Issues: 1
  • Releases: 32
Created over 3 years ago · Last pushed 7 months ago
Metadata Files
Readme Changelog License Citation

README.md

TorchTools

Handy PyTorch models and utilities which should save you time—and heartache.

Please read the documentation.

Description

This Python library contains a collection of neural networks, implemented in PyTorch, and a generic DataSet class with useful features to help you get started with your deep-learning problem more quickly. Hopefully, the user will spend less time engineering and testing—because researchers always test —their code. There is also the hope that you will write and duplicate less code by being able to easily set and modify these models' architectures at instantiation.

Who is this repository for?

This repository is for anyone intested in using the tools—deep learning or otherwise—it contains. Please cite the repository if you use it in any work you publish. Please also contact me, by creating an issue on GitHub, with details of the publication so I can maintain a list of publications in this README.

Authors and Acknowledgement

This project was created by J. Denholm.

J.D. kindly thanks: - J. Atkinson - A. Haglund - E. Pascal

for their help and time in reviewing demos for this repo.

Contributions

If you would like to contribute to this repository, or request something—such as a particular model—be added to it, simply create an issue on GitHub and I'll be glad to discuss collaborating or adding the model.

License

Distributed under the MIT License. See LICENSE.md for more information.

Getting Started

Installation

To install the most up-to-date version, use bash pip install git+https://github.com/jdenholm/TorchTools.git To install a specific version, say v0.1.0, use bash pip install git+https://github.com/jdenholm/TorchTools.git@v0.1.0

Run tests

To run the tests (with the dev env): bash pytest tests/

Demonstrations

There are demos for each of the models in the demos/ directory. Note: the demos require a different python environment, which is specified in requirements-dev.conda.yaml. To build it, use:

bash cd /path/to/TorchTools/ conda env create -f requirements-dev.conda.yaml

Owner

  • Name: Jim Denholm
  • Login: jdenholm
  • Kind: user
  • Location: Cambridge, UK
  • Company: University of Cambridge

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Denholm"
  given-names: "James"
  orcid: "https://orcid.org/0000-0002-2389-3134"
title: "TorchTools"
version: 0.1.0
date-released: 27-04-2023
url: "https://github.com/jdenholm/TorchTools"

GitHub Events

Total
  • Create event: 6
  • Release event: 2
  • Issues event: 2
  • Delete event: 4
  • Push event: 94
  • Pull request event: 5
Last Year
  • Create event: 6
  • Release event: 2
  • Issues event: 2
  • Delete event: 4
  • Push event: 94
  • Pull request event: 5

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 0
  • Total pull requests: 2
  • Average time to close issues: N/A
  • Average time to close pull requests: 21 days
  • Total issue authors: 0
  • Total pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 2
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 2
  • Average time to close issues: N/A
  • Average time to close pull requests: 21 days
  • Issue authors: 0
  • Pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 2
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • jdenholm (7)
Pull Request Authors
  • jdenholm (20)
Top Labels
Issue Labels
enhancement (6) documentation (1)
Pull Request Labels
release (10) enhancement (7) documentation (3)

Dependencies

.github/workflows/code-quality.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v3 composite
.github/workflows/doc-update.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v2 composite
.github/workflows/torch-tools-install.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v2 composite
pyproject.toml pypi
  • torch *
  • torchvision *