GithubHelp home page GithubHelp logo

zhangjiekui / fastai Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fastai/fastai

0.0 1.0 0.0 216.66 MB

The fast.ai deep learning library, lessons, and tutorials

License: Apache License 2.0

Jupyter Notebook 98.80% Python 1.19% Shell 0.01%

fastai's Introduction

fast.ai Build Status

The fast.ai deep learning library, lessons, and tutorials.

Copyright 2017 onwards, Jeremy Howard. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. A copy of the License is provided in the LICENSE file in this repository.

Current Status

This is an alpha version.

Most of the library is quite well tested since many students have used it to complete the Practical Deep Learning for Coders course. However it hasn't been widely used yet outside of the course, so you may find some missing features or rough edges.

If you're interested in using the library in your own projects, we're happy to help support any bug fixes or feature additions you need—please use http://forums.fast.ai to discuss.

To install

Prerequisites

  • Anaconda, manages Python environment and dependencies

Normal installation

  1. Download project: git clone https://github.com/fastai/fastai.git
  2. Move into root folder: cd fastai
  3. Set up Python environment: conda env update
  4. Activate Python environment: conda activate fastai
    • If this fails, use instead: source activate fastai

Install as pip package

You can also install this library in the local environment using pip

pip install fastai

However this is not currently the recommended approach, since the library is being updated much more frequently than the pip release, fewer people are using and testing the pip version, and pip needs to compile many libraries from scratch (which can be slow).

An alternative is to use the latest Github version with pip

pip install git+https://github.com/fastai/fastai.git

CPU only environment

Use this if you do not have an NVidia GPU. Note you are encouraged to use Paperspace to access a GPU in the cloud by following this guide.

conda env update -f environment-cpu.yml

Anytime the instructions say to activate the Python environment, run conda activate fastai-cpu or source activate fastai-cpu.

To update

  1. Update code: git pull
  2. Update dependencies: conda env update

To test

Before submitting a pull request, run the unit tests:

  1. Activate Python environment: conda activate fastai
    • If this fails, use instead: source activate fastai
  2. Run tests: pytest tests

To run specific test file

  1. Activate Python environment: conda activate fastai
    • If this fails, use instead: source activate fastai
  2. pytest tests/[file_name.py]

If tests fail

The master build should always be clean and pass. If master isn't passing, try the following:

  • make sure the virtual environment is activated with conda activate fastai or source activate fastai
  • update the project (see above section)
  • consider using the cpu environment if testing on a computer without a GPU (see above section)

If the tests are still failing on master, please file an issue on GitHub explaining the issue and steps to reproduce the problem.

If the tests are failing on your new branch, but they pass on master, this means your code changes broke one of the tests. Investigate what might be causing this and play around until you get the test passing. Feel free to ask for help!

fastai's People

Contributors

jph00 avatar sgugger avatar yanneta avatar racheltho avatar sebastianruder avatar stas00 avatar mcskinner avatar wdhorton avatar sampathweb avatar cuddle-cuddle avatar radekosmulski avatar neia20 avatar bearpelican avatar piotrczapla avatar hiromis avatar sjdlloyd avatar anandsaha avatar adityasoni19031997 avatar mcleavey avatar ohmeow avatar lchen23 avatar sudarshan85 avatar supreethmanyam avatar keremturgutlu avatar rcoh avatar movefast avatar panozzaj avatar tensoralex avatar ashtonsix avatar trusty avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.