Git Product home page Git Product logo

fastai_deeplearn_part1's Introduction

About Me

Projects


Courses (my outlines)

Deep Learning

  • [Version 3] (fastai_dl_course_v4.md) (Spring 2020)
  • Version 3 (Fall 2018 to Spring 2019)
  • Version 2 (Fall 2017 to Spring 2018)
  • Version 1 (Fall 2016 to Spring 2017)

Machine Learning


Helpful Resources

Other Resources

fastai_deeplearn_part1's People

Contributors

c2tarun avatar danielnee avatar etrama avatar frankamp avatar iml-v avatar justinmcp avatar nindalf avatar reshamas avatar vernzimm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fastai_deeplearn_part1's Issues

No PIL module under py 3.6

Seems not working

Also the cuda90 modules cause some problem in some older machines. (Would try in new Windows machines later.)

Newer version of proc_df throws ValueError in lesson1-rf.ipynb

lesson1-rf.ipynb needs to be updated: first cell in the section "Reducing over-fitting" - "Subsampling", proc_df i called.
df_trn, y_trn = proc_df(df_raw,'SalePrice')
and throws
ValueError: too many values to unpack (expected 2)

proc_df returns 3 variables rather than two. From the documentation:

[x, y, nas, mapper(optional)]:

So it could be df_trn, y_trn, foo = proc_df(df_raw,'SalePrice')

Possible inaccuracy in `grep` when listing the number of files.

The following command will incorrectly count the number of files (will overestimate by one), because the first line of output of ls -l on some versions of Linux as well as Mac OS X will give the total number of files:

!ls -l {PATH}train/cats | grep ^[^d] | wc -l

I suggest correcting it to the following version which will disregard the first line of ls -l:

!ls -l {PATH}train/cats | grep ^[^dt] | wc -l

Can't access symbolic links

Hi.
When i try to create a symbolic link of a directory by using ln -s command . A link is created and is being shown as file instead of a folder shortcut. Also when i try to open it , 404 : Not Found error is displayed. Also i can't use it as a directory in jupyter notebook. Can you please tell me its solution?

replacing localhost with IP address

this has been a fantastic resource, thanks.

I had some trouble with the part which says: "I need to replace localhost section with my IP address.
What would have been clearer to me: "I need to replace localhost section with the public IP address of my paperspace machine"

cannot update the package for pytorch

I have the following problem while trying to update the python library... Please help...

(fastai) paperspace@ps1dkrpha:~/fastai$ conda env update
Using Anaconda API: https://api.anaconda.org
Fetching package metadata .................
Solving package specifications: .
Warning: 2 possible package resolutions (only showing differing packages):

  • defaults::msgpack-numpy-0.4.3-py36_0, defaults::thinc-6.10.1-py36hd61447b_0
  • defaults::msgpack-numpy-0.4.1-py36hfef8c07_0, defaults::thinc-6.10.2-py36h637b7d7_0

CondaVerificationError: The package for pytorch located at /home/paperspace/anaconda3/pkgs/pytorch-0.3.1-py36_cuda9.0.176_cudnn7.0.5_2
appears to be corrupted. The path 'lib/python3.6/site-packages/torch/_C.cpython-36m-x86_64-linux-gnu.so'
specified in the package manifest cannot be found.

CondaVerificationError: The package for pytorch located at /home/paperspace/anaconda3/pkgs/pytorch-0.3.1-py36_cuda9.0.176_cudnn7.0.5_2
appears to be corrupted. The path 'lib/python3.6/site-packages/torch/lib/libTHC.so.1'
specified in the package manifest cannot be found.

CondaVerificationError: The package for pytorch located at /home/paperspace/anaconda3/pkgs/pytorch-0.3.1-py36_cuda9.0.176_cudnn7.0.5_2
appears to be corrupted. The path 'lib/python3.6/site-packages/torch/lib/libcudnn-7b07b0f1.so.7'
specified in the package manifest cannot be found.

Instructions out of date

Your instructions are a little out of date. Selecting the fast.ai template requires prior approval.
Regards,
Jay

Warning note with external libraries

I am getting a warning regarding one of the external libraries from fast.ai.
I am running most current versions of Python and Jupyter Notebook.

# This file contains all the main external libs we'll use from fastai.imports import * /home/paperspace/anaconda3/envs/fastai/lib/python3.6/site-packages/sklearn/ensemble/weight_boosting.py:29: DeprecationWarning: numpy.core.umath_tests is an internal NumPy module and should not be imported. It will be removed in a future NumPy release. from numpy.core.umath_tests import inner1d In [ ]:
Do I just ignore this line and exclude it? What would you recommend? I have made sure that all of my files are updated via Paperspace as well.

Cannot go past Part 2 for AWS

Trying to follow instructions here:

I can get through part 2, but when I try to use the command jupyter notebook --generate-config I get the following error:

Traceback (most recent call last):
  File "/home/ubuntu/src/anaconda3/envs/fastai/lib/python3.6/site-packages/notebook/services/sessions/sessionmanager.py", line 10, in <module>
    import sqlite3
  File "/home/ubuntu/src/anaconda3/envs/fastai/lib/python3.6/sqlite3/__init__.py", line 23, in <module>
    from sqlite3.dbapi2 import *
  File "/home/ubuntu/src/anaconda3/envs/fastai/lib/python3.6/sqlite3/dbapi2.py", line 27, in <module>
    from _sqlite3 import *
ImportError: libncurses.so.6: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/ubuntu/src/anaconda3/envs/fastai/bin/jupyter-notebook", line 7, in <module>
    from notebook.notebookapp import main
  File "/home/ubuntu/src/anaconda3/envs/fastai/lib/python3.6/site-packages/notebook/notebookapp.py", line 85, in <module>
    from .services.sessions.sessionmanager import SessionManager
  File "/home/ubuntu/src/anaconda3/envs/fastai/lib/python3.6/site-packages/notebook/services/sessions/sessionmanager.py", line 13, in <module>
    from pysqlite2 import dbapi2 as sqlite3
ModuleNotFoundError: No module named 'pysqlite2'

After this I tried to instal pysqlite2 but it isn't available to install with the following output:

PackageNotFoundError: Packages missing in current channels:
            
  - pysqlite2

We have searched for the packages in the following channels:
            
  - https://conda.anaconda.org/soumith/linux-64
  - https://conda.anaconda.org/soumith/noarch
  - https://repo.continuum.io/pkgs/main/linux-64
  - https://repo.continuum.io/pkgs/main/noarch
  - https://repo.continuum.io/pkgs/free/linux-64
  - https://repo.continuum.io/pkgs/free/noarch
  - https://repo.continuum.io/pkgs/r/linux-64
  - https://repo.continuum.io/pkgs/r/noarch
  - https://repo.continuum.io/pkgs/pro/linux-64
  - https://repo.continuum.io/pkgs/pro/noarch

From here I tried to install sqlite3 and got the same error.

I decided to test the environment as well. However, I wasn't able to get all the tests to pass when I ran pytest tests and received the result of 49 tests passing, 1 failing, and 1 being skipped. The following message was displayed for the one I think failed:

_________________________________________________________ test_T __________________________________________________________

HalfTensorMock = <MagicMock name='HalfTensor' id='139635496833544'>

    @mock.patch("fastai.core.torch.cuda.HalfTensor")
    def test_T(HalfTensorMock):
      tensor = torch.ones([1, 2])
>     assert core.T(tensor) is tensor
E     assert \n 1  1\n[torch.cuda.FloatTensor of size 1x2 (GPU 0)]\n is \n 1  1\n[torch.FloatTensor of size 1x2]\n
E      +  where \n 1  1\n[torch.cuda.FloatTensor of size 1x2 (GPU 0)]\n = <function T at 0x7eff810ad1e0>(\n 1  1\n[torch.FloatTensor of size 1x2]\n)
E      +    where <function T at 0x7eff810ad1e0> = core.T
tests/test_core.py:38: AssertionError
==================================================== warnings summary =====================================================
tests/test_core.py::test_T
  /home/ubuntu/anaconda3/envs/fastai/lib/python3.6/site-packages/torch/cuda/__init__.py:97: UserWarning:
      Found GPU0 GRID K520 which is of cuda capability 3.0.
      PyTorch no longer supports this GPU because it is too old.

    warnings.warn(old_gpu_warn % (d, name, major, capability[1]))

-- Docs: http://doc.pytest.org/en/latest/warnings.html
=============================== 1 failed, 49 passed, 1 skipped, 1 warnings in 5.39 seconds ================================

I'm not sure how to proceed, this probably isn't a fast.ai error but it might need to be addressed in your code or instructions.

Lesson 1 notebook warning: This notebook will only work with fastai-0.7.x.

Hi, I followed the directions in README exactly, however when I opened lesson1.ipynb, I got the following warning:

Important: This notebook will only work with fastai-0.7.x. Do not try to run any fastai-1.x code from this path in the repository because it will load fastai-0.7.x

As a newbie, I don't know which fastai version got installed on my machine. Digging around the forums, it seems that version 1 gets installed by default. So I am not sure how to proceed at this point.

Any help would be greatly appreciated.

Since this is the primary setup link referenced in lesson 1, it would be really important to keep it accurate and simple for beginners.

paperspace now requiring some justification/approval

Going through the setup instructions, ran into this:

This instance type has not been enabled in your account yet. For some GPU types we require that you tell us a bit more about your use case before we enable access. This is designed to reduce fraud and thus keep our prices low.
Tell us a bit more about your use case and we will prioritize your request (required)

I entered "Deep Learning for Coders Course" and clicked submit and an hour later, nothing, no response yet. I've got $15 credit on my account (using the coupon code) and have also entered my credit card billing information.

Just throwing this out there as maybe this isn't the best option for the course, or perhaps you want to note this experience on the README.

Other than that, thanks for the great setup instructions!

FASTAI3BDG promo code is expired

When trying to apply the promo code FASTAI3BDG I'm getting:
Warning: Could not claim promo code (code is expired)

Is there another promo code?

facing this problem in paperspace machine

the error message that is coming up is thid after doing $conda update env .How to solve this
CondaVerificationError: The package for pytorch located at /home/paperspace/anaconda3/pkgs/pytorch-0.3.1-py36_cuda9.0.176_cudnn7.0.5_2
appears to be corrupted. The path 'lib/python3.6/site-packages/torch/_C.cpython-36m-x86_64-linux-gnu.so'
specified in the package manifest cannot be found.

How to print a bar for each epoch for below code?

here is my code and I want to insert a bar for each epoch and also want to generate an accuracy graph for each epoch please help me out

`learn.lr_find()
learn.recorder.plot()

lr = 0.01
learn.fit_one_cycle(9, slice(lr))

learn.save('classif_restnet50')`

cannot use fast.ai under public template

When I try to access the fast.ai template under public section, it asked me for more information before giving me access.
I put donw for fast ai study and it has been couple days now but I have not yet heard back from Paperspace, is there anything I should put specifically?

Thanks

ssh-copy-id for windows

Please provide a brief instruction on how to do brew install ssh-copy-id for windows.
Thanks!

Dont seem to be able to attach a template

Did paperspace change the template process? I cannot assign the fastai template during the creation of the machine. Later it does provide the option to assign a template, but I still cannot access public templates.

I am on a windows machine and �the European Server. I have asked paperspace support.

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.