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.2-py2.py3-none-any.whl (19.9 kB view hashes)

Uploaded Python 2 Python 3

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