General course chat

For the students and mentors here, here’s something which you might like:

http://fellowship.depthfirstlearning.com/

I saw this on the Twitter profile of the student @jeremy mentioned in the 1st lecture, the one who founded Delta and works at GoogleAI.
@rachel

The previous students, mentors, those who are more proficient can apply for these and maybe students like me can participate (* i am not aware how the participation works, i am still going through the site)

4 Likes

Hello…

I would like to have VGG network into create_cnn but unable to find out how to achieve this. It seems that we can only do ResNet through create_cnn model attribute. Also how i can override last dense layers created by default?

I have been trying to create an Hotdog or nothot dog classifier, using latest fast.ai version.
The folder data structure is as shown here: d1

test = Path('../input/seafood/test/')
np.random.seed(42)
data = ImageDataBunch.from_folder(path, valid=test,ds_tfms=tfms,valid_pct=0.3, ,size=124)

This give me an IndexError: index 0 is out of bounds for axis 0 with size 0. Please help me figure out the problem @init_27 @sgugger

1 Like

Jeremy’s jupyter notebook in his videos are collapsible to the headings. Does anyone know how to activate the setting on Jupyter Notebook?

1 Like

sorry everyone, it was a small typo for me in specifying Path

1 Like


Install this and then you should have this new menu in the edit section.

1 Like

Hello…

I am trying to plot the losses using interp.plot_top_losses(4, figsize=(15,11)) and it seems that fast.ai does not allow me to show the image name along with loss. It would have been of great help if we can have the image name also so that i can decide on further course of action on those images.

Thanks

@jeremy …Your guidance will be of great help on this please…

I tried to install fastai again in a new EC2 Instance. But I got an error when I install torchvision-nightly using “conda install -c fastai torchvision-nightly”. The error is:

Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

  • torchvision-nightly

Current channels:

To search for alternate channels that may provide the conda package you’re
looking for, navigate to

https://anaconda.org

and use the search bar at the top of the page.

Any idea?

1 Like

Your zip was seefood - but your path is seafood - that might be it?

I want to take a minute and thank everyone on the forums for not just sharing their amazing knowledge but also going out of their way to take out time from their lives to correct beginners like myself and and always answering the questions even if the answers are just a few google searches away.

Thank you for an amazing 2018.

Please continue inspiring us in 2019:
Thank you to the team @jeremy @rachel @sgugger @stas @lesscomfortable

Also to everyone on the forums who post about their amazing ideas. The list would be too long and I would annoy many people by tagging them.

I wish everyone on the fast.ai community a very happy new year!
May we continue to take on kaggle leaderboards and keep breaking SOTA on existing and new fields :smiley:

9 Likes

I have tried to plot the images from top losses through ImageCleaner class but it is quite slow. So I feel that showing image name with top losses will be much more easier and then we can take action on those particular images.

ds, idxs = DatasetFormatter().from_toplosses(learn50, ds_type=DatasetType.Valid)
ImageCleaner(ds, idxs,path)

Awesome! Can you guide me on how you deployed the model to production?

[[NOT COMPLETELY TOPIC RELATED]][[NEED SUGGESTIONS]]

What are the tools used to make a segmentation dataset? I want to create the masks from the raw images, and then feed those to a network. Came across U-net to go on about the segmentation problem. But how do I make the custom dataset from the raw images?

The task is to detect different types of red blood cells(different classes) in a microscopic image to give a count of each type of cell present and detect diseases if any. Basically it is a segmentation and classifcation problem.

Initally, the image is the be segmented and then patches are taken which is later fed to a network for classifcation. I am not confident in hand crafting the features myself(for segmentation)

@jeremy Also looking for your advice or suggestions if any.

Thanks!

I’d be careful of calling it production ready @cyberdroidmann - but I deployed to a public endpoint on Azure - and see my medium post https://medium.com/@lunchwithalens/deploying-my-fastai-predictor-to-microsoft-azure-c7e635d464a1 for more details. I have since migrated the App Service from P1V2 to a cheaper B2 service successfully - and I do work for Microsoft so I had some Azure credits. I think a B2 runs around $75/month - so if you just wanted to push it out and try it - then tear down it wouldn’t be that expensive. Let me know if there are questions the posting doesn’t address.

Found the answer in other thread.

from torchvision.models import densenet161
arch = densenet161
learn = create_cnn(data, arch, metrics=[accuracy])
3 Likes

In data containing Multiple Labels, how to effectively split the train and valid from csv? The problem is occurring where I split the data randomly and this generates an error where the Valid split contains labels which is not present in Training split.

I always first identify minority classes and then do the image aug for minority classes only and add them with my input data. Then apply train and test validation…Another approach can be to have two models and one is exclusively for minority class ones so that test and train split is more reasonable w.r.t other classes data

Help
I am trying to deploy my app on zeit, but it continues to give me errors. I am using the same code that is provided in the deployment guide

@jeremy Are there any plans to offer part 2 of the course to remote participants? (Thought of asking this on the forum since I might have missed the announcement.)

Thanks!

2 Likes