Skip to main content

A TensorFlow framework for light field CNNs.

Project description

lfcnn - A TensorFlow framework for light field CNNs

build status coverage report PyPI PyPI PyPI

Image

Installation

It is recommended to use Conda to setup a new environment with tensorflow and GPU support. To install with GPU support, run

conda create -n lfcnn python=3.8 tensorflow-gpu=2.2 tensorflow numpy scipy imageio h5py cudnn cudatoolkit
conda activate lfcnn

Then, install the provided package using pip:

pip install lfcnn

Optional dependencies

Optionally, for some of lfcnn's features, install the following:

  • matplotlib (via conda or pip)
  • sacred (via pip)
  • pymongo (via conda or pip)
  • mdbh (via pip)

Installation on Windows

LFCNN is mostly compatible with all TF versions TensorFlow >= 2.0, however there is a bug in tf.keras that causes OOMs with data generators (which LFCNN uses) and multithreading and -processing. Therefore, we specify tensorflow >= 2.2 as a dependency, for which this bug has been resolved.

However, as of June 2020, TF 2.2 is not released on Anaconda for Windows. So for Windows, it is necessary to install TF via pip. However, installation of the compatible cuDNN and CUDA should still be performed via conda for simplicity. To setup the new environment with the correct CUDA and cuDNN versions, run

conda create -n lfcnn python=3.8 numpy scipy imageio h5py cudnn=7.6.5 cudatoolkit=10.1
conda activate lfcnn
pip install tensorflow==2.2 tensorflow-gpu==2.2

Furthermore, the Visual C++ redistributable has to be installed on Windows.

Finally, install LFCNN via pip as usual:

pip install lfcnn

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

lfcnn-0.1.1.tar.gz (50.1 kB view details)

Uploaded Source

Built Distribution

lfcnn-0.1.1-py3-none-any.whl (77.9 kB view details)

Uploaded Python 3

File details

Details for the file lfcnn-0.1.1.tar.gz.

File metadata

  • Download URL: lfcnn-0.1.1.tar.gz
  • Upload date:
  • Size: 50.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for lfcnn-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a275ed174dafd0a1d13b30d906b9017e6ab35d687e0c7e73a11ed2a0a773c2ef
MD5 dccc73d1fcfab9a325110ae7716f8b43
BLAKE2b-256 129b3627291405f9daa171c3748d8909856a6ebbd73dccafcbd24fbba36444a0

See more details on using hashes here.

File details

Details for the file lfcnn-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: lfcnn-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 77.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for lfcnn-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8a067d5716b387fa4991132e27950579075a9bdfd5c9b0f9b00075c526cb7157
MD5 54dc20d06e69324799bdf94a5d7704b9
BLAKE2b-256 70ef6ec61ec103615cc3d13edc7d67c5772fd11e49cceefa9a24ffbbaff11a72

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