scikit-surgerytorch is a Python package
Project description
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.
Useful links
Licensing and copyright
Copyright 2020 University College London. scikit-surgerytorch is released under the BSD-3 license. Please see the license file for details.
Acknowledgements
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file scikit_surgerytorch-0.1.2-py2.py3-none-any.whl
.
File metadata
- Download URL: scikit_surgerytorch-0.1.2-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.3.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d013bc559b582e5b9b9ad7e318d23ece7ea89d9e0d489ca5d5cd1482a6bfb4a |
|
MD5 | 0a68376da0e9d3c745487de7cbc173d9 |
|
BLAKE2b-256 | 08b6edfc811cc7ba7deeb346932b0d0865b8564d5ac330c5514a84b9772f8fd4 |