Skip to main content

Fastai implementation of papers.

Project description

Welcome to fastpapers

Play LEGO with papers.

fastpapers is a python library where we reproduce papers on Jupyter Notebooks. We use nbdev to turn these notebooks into modules. The implementations are done using fastai.

Install

pip install your_project_name

How to use

The name of each module is the Bibtexkey of the corresponing paper. For example, if you want to use the FID metric from Heusel, Martin, et al. 2017, you can import it like so:

from fastpapers.heusel2017gans import FIDMetric

If you want to train a pix2pix model from Isola, Phillip, et al you can import a pix2pix_learner

from fastpapers.isola2017image import pix2pix_learner

The core module contains functions and classes that are useful for several papers. For example, you have a ImageNTuple to work with an arbitrary amount of images as input.

path = untar_data(URLs.PETS)
files = get_image_files(path/"images")
it = ImageNTuple.create((files[0], files[1], files[2]))
it = Resize(224)(it)
it = ToTensor()(it)
it.show();

png

Or useful functions for debuging like explode_shapes or explode_ranges

explode_shapes(it)
[(3, 224, 224), (3, 224, 224), (3, 224, 224)]

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

fastpapers-0.0.1.tar.gz (19.1 kB view details)

Uploaded Source

Built Distribution

fastpapers-0.0.1-py3-none-any.whl (18.2 kB view details)

Uploaded Python 3

File details

Details for the file fastpapers-0.0.1.tar.gz.

File metadata

  • Download URL: fastpapers-0.0.1.tar.gz
  • Upload date:
  • Size: 19.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2

File hashes

Hashes for fastpapers-0.0.1.tar.gz
Algorithm Hash digest
SHA256 cf09afd705305be16bd7b1666a064b2f09575714ed56e6033dcd931954d68165
MD5 c0ce3aaffb56b226c5974a15e165ae26
BLAKE2b-256 bdb58b62f357b63e1b25a9bff28f244ad9241663231c611388ab590d7808ee5c

See more details on using hashes here.

File details

Details for the file fastpapers-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: fastpapers-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 18.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2

File hashes

Hashes for fastpapers-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3456deed25a053aefb8c7c2a28f859580824b64f2935f920117eb518a337d617
MD5 a45be2094a1274a5fa79f3aa0bce646f
BLAKE2b-256 e39c86facbcae535cab3f7f8662a9d50bbdbf02a6ef17d420bee361b3b2e6098

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