Fastai v2 chat

I am just reading through and running the notebooks at the moment. I would do that and pay attention to the forums. Understanding this style of development is going to be a huge part of contributing. When you are going through, if you hit any issues, try to find what is going wrong and document it for future users. If anything seems unclear add comments and documentation as it makes sense.

3 Likes

Thanks Kevin for your reply, this really helps.

1 Like

Looks like a bug. Iā€™ll look into it.

1 Like

Also note that the dataloader stuff require pytorch 1.2.0 or more.

1 Like

I had to pip install fastai for the fastprogress module to be imported. The fastai version is 1.0.57. Is this the right version of fastai for these notebooks to function.

I dont think this should required fastai. We are building one. fastprogress is a separate library to have progress-bar.

2 Likes

Uninstalled fastai and tried again. all worked. So you are right that his does not require fastai. Having said that I think the packages that were installed when I installed fastai did help for successful import of all the required packages for 00_test.ipynb.

1 Like

I found a issue in coll_repr in fastai_dev/dev/01_core.ipynb that it doesnt use the max argument in the function. I added the same and added testcase for it.

Created a branch to push to fastai. But access was denied. As per the guidelines

Am I doing something wrong.

You need to work on a fork of yours, then make a PR to fastaiā€™s repo, you canā€™t push directly to a repo youā€™re not a contributor of (which is reassuring)

2 Likes

Donā€™t include conda-forge in channels @KevinB - it can cause all sorts of issues. There may be some things that (for now) we need to install through pip, if they donā€™t have conda installers outside of conda-forge (if we still use those libs when v2 comes out, weā€™ll copy them to our channel to avoid the issue).

3 Likes

By talking here. :slight_smile: And by going thru the notebooks and looking for things that you feel could be improved.

5 Likes

I am thinking of adding params like file_type and file_extns in the ls() method. I have done the same personally in my notebook for picking only image files. Do u think we can add this optional params to ls()?

Ok, I updated it. PR request is out there. It seems like it works for me. python 3.7+, pytorch 1.2+, no conda-forge.

Iā€™m guessing there are probably more that we want to add, but this has worked on all the notebooks Iā€™ve ran so far.

1 Like

Added scipy

1 Like

Can you provide more details about what is going wrong in your case?

Also, follow up questions:

  • were you able to create a pull request?
  • were you able to instrument Git to strip your notebooks of metadata, as explained here?

I didnā€™t run the strip notebooks. However, I have forked the repo and made couple of pull requests. Going through line by line json and carefully picking the change was little difficult. I hope that strip will solve that problem. I will try and let you know.

From my personal experience, commits wonā€™t be accepted if the notebooks are not stripped out. I suggest you go through the setup of nb_stripout tutorial.

Okay. Iā€™ll check and redo the same

Thanks for the suggestion and the PR. Since this additional functionality benefits from what L provides, Iā€™ve moved it to later in the NB and reimplemented it using L.

2 Likes

As fastai v2 is in development, I just want to comment on the ML communityā€™s view of fastai based on my experience using it in the ā€œwildā€. It seems that fastai v2 is quite well-developed but I wanted to point out some things that may help inform development decisions.

Based on my experience, in the Kaggle community, there are two types of people: people who love fastai (like me!) and people who hate fastai. I was surprised to see some of the hostility and disdain people had towards fastai. As an example of this, check this discussion post. This post is just one example.

I think people have a couple major issues with fastai that prevents them from using it:

  1. Fastai is not flexible enough for using in Kaggle competitions. This seems to be the biggest problem people have with fastai. People are put off by all of the undocumented defaults, and how everything needs to be packed into fastai classes to benefit from fastai.

  2. Fastai is poorly documented. Honestly, I kind of agree with this. And I understand why: fastai is maintained by just three people, and the rest is done by the community, with individuals working on this during their free time.

  3. Fastai has a poor codebase that changes rapidly. Itā€™s definitely difficult for people to have to keep migrating from one version of the library to another, especially when the library is not backward-compatible. In fact, within one year, two completely different versions of the library will have been released (v1 and v2). This can also put off a lot of folks from using the library.

What are the solutions behind this?

I think the key here is the documentation. There definitely needs to be a focus on improving the documentation. But there shouldnā€™t be just documentation regarding how to use the functions or classes. There should also be information about undocumented constants and settings. For example, I donā€™t think many people realize TTA only uses crop_pad, flip_lr, dihedral, and zoom transforms. Or that cnn_learner adds a custom head that has its own defaults. These are things that need to be more thoroughly explained. By providing this information, it allows others to change things more easily.

In addition, the documentation should also better demonstrate how PyTorch can be used with fastai. for example, some people prefer not to use the data_block API and rather use their own PyTorch dataset. But many donā€™t realize itā€™s easy to package PyTorch Datasets into a DataBunch, and use with a fastai Learner and take advantage of fastaiā€™s amazing training routines. Documentation on this could also be helpful.

Finally, fastai should preferably be backward-compatible. I know there are many aspects of the library that need to be changed significantly to improve the library, but it is definitely desirable to keep the API as similar as possible.

Anyway, this is just my opinion after reading othersā€™ opinions about fastai in the Kaggle community. I think it would great for more and more people to adopt fastai as their primary deep learning library.

Nevertheless, it is amazing how much success the fastai library has achieved and I am glad to be using and contributing to this library.

16 Likes