Skip to main content

Version 2 of the fastai library

Project description

Welcome to fastai v2

NB: This is still in early development. Use v1 unless you want to contribute to the next version of fastai

To learn more about the library, read our introduction in the paper presenting it.

Installing

You can get all the necessary dependencies by simply installing fastai v1: conda install -c fastai -c pytorch fastai. Or alternatively you can automatically install the dependencies into a new environment:

git clone https://github.com/fastai/fastai2
cd fastai2
conda env create -f environment.yml
source activate fastai2

Then, you can install fastai v2 with pip: pip install fastai2.

Or you can use an editable install (which is probably the best approach at the moment, since fastai v2 is under heavy development):

git clone https://github.com/fastai/fastai2
cd fastai2
pip install -e ".[dev]"

You should also use an editable install of fastcore to go with it.

If you want to browse the notebooks and build the library from them you will need nbdev:

pip install nbdev

To use fastai2.medical.imaging you'll also need to:

conda install pyarrow
pip install pydicom kornia opencv-python scikit-image

Tests

To run the tests in parallel, launch:

nbdev_test_nbs

or

make test

Contributing

After you clone this repository, please run nbdev_install_git_hooks in your terminal. This sets up git hooks, which clean up the notebooks to remove the extraneous stuff stored in the notebooks (e.g. which cells you ran) which causes unnecessary merge conflicts.

Before submitting a PR, check that the local library and notebooks match. The script nbdev_diff_nbs can let you know if there is a difference between the local library and the notebooks.

  • If you made a change to the notebooks in one of the exported cells, you can export it to the library with nbdev_build_lib or make fastai2.
  • If you made a change to the library, you can export it back to the notebooks with nbdev_update_lib.

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

fastai2-0.0.14.tar.gz (150.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fastai2-0.0.14-py3-none-any.whl (181.0 kB view details)

Uploaded Python 3

File details

Details for the file fastai2-0.0.14.tar.gz.

File metadata

  • Download URL: fastai2-0.0.14.tar.gz
  • Upload date:
  • Size: 150.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0.post20200106 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.4

File hashes

Hashes for fastai2-0.0.14.tar.gz
Algorithm Hash digest
SHA256 99ecbaa37c5877c645c94b495c9367e4b9581ffccef8a183b023bb55a8758175
MD5 e7c1a50339ca221acd69f0cd03957b9d
BLAKE2b-256 1fdb5e61eb559390aec956673c401891391d4ed7b244dd7462ddf7fa18727445

See more details on using hashes here.

File details

Details for the file fastai2-0.0.14-py3-none-any.whl.

File metadata

  • Download URL: fastai2-0.0.14-py3-none-any.whl
  • Upload date:
  • Size: 181.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0.post20200106 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.4

File hashes

Hashes for fastai2-0.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 7948007e8eca3492f1f111e26342b1cb49499f53ce69d0662c16a12270716939
MD5 3066cc2450504af034883f24e501065f
BLAKE2b-256 6beaeafd204c5c327ce7db8954a291a4753d48dd6e77d6250a74120840be5526

See more details on using hashes here.

Supported by

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