Skip to main content

scikit-surgerytorch is a Python package

Project description

Logo GitLab-CI test status Test coverage Documentation Status

Author: Thomas Dowrick

scikit-surgerytorch is part of the scikit-surgery software project, developed at the Wellcome EPSRC Centre for Interventional and Surgical Sciences, part of University College London (UCL).

The aim of scikit-surgerytorch is to provide a home for various pytorch examples and utilities and to show best practice. It’s NOT meant to be a layer on-top of pytorch or provide a new kind-of platform. The aim is that researchers can learn from examples, and importantly, learn how to deliver an algorithm that can be used by other people out of the box, with just a `pip install`, rather than a new user having to re-implement stuff, or struggle to get someone else’s code running. Researchers can commit their research to this repository, or use the PythonTemplate to generate their own project as a home for their new world-beating algorithm!

Features

Each project herein should provide the following:

  • Code that passes pylint.

  • Unit testing, as appropriate. In all likelihood, testing will cover individual functions, not large training cycles.

  • Sufficient logging, including date, time, software (git) version, runtime folder, machine name.

  • A main class containing a network that can be run separately in train/test mode.

  • Visualisation with TensorBoard.

  • Saving of learned network weights at the end of training.

  • Loading of pre-train weights, initialising the network ready for inference.

  • The ability to be run repeatedly for hyper-parameter tuning via python scripting, not bash.

  • The ability to be callable from within a Jupyter Notebook, and thereby amenable to weekly writup’s for supervisions.

  • One or more command line programs that are pip-installable, enabling a subsequent user to train and test your algorithm with almost-zero faff.

  • Visualisation for debugging purposes, such as printing example image thumbnails etc. should be done in Jupyter notebooks, or in tensorboard, not in the same class as your algorithm.

Optional features could include:

  • Small test projects that train quickly to completion won’t need checkpointing, but large ones will.

Developing

Cloning

You can clone the repository using the following command:

git clone https://github.com/UCL/scikit-surgerytorch

Running tests

Pytest is used for running unit tests:

pip install pytest
python -m pytest

Linting

This code conforms to the PEP8 standard. Pylint can be used to analyse the code:

pip install pylint
pylint --rcfile=tests/pylintrc sksurgerytorch

Installing

You can pip install directly from the repository as follows:

pip install git+https://github.com/UCL/scikit-surgerytorch

Contributing

Please see the contributing guidelines.

Acknowledgements

Supported by Wellcome and EPSRC.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

scikit_surgerytorch-0.1.1-py2.py3-none-any.whl (19.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file scikit_surgerytorch-0.1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: scikit_surgerytorch-0.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 19.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.5

File hashes

Hashes for scikit_surgerytorch-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c09e3647b5ff95017015f66d59243464d4050a689f79ca5951fa551bdbea2658
MD5 673f6e256c4dff9d8ac8e3a883fe0aee
BLAKE2b-256 99dfe33000528873b57cfc4806e30455f5ead3c5f843d0762a1ddd616564eb09

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page