Beginner: Setup ✅

5 posts were merged into an existing topic: For those who run their own AI box, or want to

Hi,
I attempted running the course notebooks on my laptop. For this I conda installed fastai with python 3.7. Further i also conda installed fastbook. However I am not able to run the notebooks an get the error:
ModuleNotFoundError: No module named 'torch''

Doesn’t fastai module install pytorch as well?

In pip it install pytorch along with fastai module. In conda also that should be the case

try following in colab:

from google.colab import drive
drive.mount("/content/gdrive")

Then it should open a new page to ask for login to ur google account

If I just pip install fastbook will it automatically install fastai as well?

2 posts were merged into an existing topic: For those who run their own AI box, or want to

It worked with pip. Cond seems to hav an issue

Yes it will install fastai as well.

2 Likes

Hey people,
How do you keep your work tracked/pushed on GitHub?

If I use ipynb files on Google Colab, then the same single file on GitHub cannot be updated from Google Colab.

On the other hand, it’s much more convenient to work on Google Colab rather than on PyCharm.

Any ideas?

1 Like

When using colab it’s generally best to use Google Drive for storing your work.

Life is much easier if you use paperspace.

3 Likes

Thanks!

I do store it on Google Drive, but I want my work to be tracked on Github (let alone have some versions track of it)…

By using Paperspace (https://www.paperspace.com/), will I be able to run that Colab file, but have the file stored in Github? What is it way better for me than now?

I have a question whose answer is likely both obvious and straightforward. When using Gradient, it says I have a 10 notebook max. Does that mean I can only ever have 10 notebooks stored on my account? I’m guessing it’s a “yes, duh”, but it seems to me to be a big limiting factor. I’d have to have the entire book’s worth of code in one notebook to make sure I had room for experiments. Again, I assume I’m being dense, but looking for feedback.

There is the concept of a “Paperspace notebook” and an individual .ipynb notebook aka a Jupyter notebook file. Those are two different things, unfortunately. Paperspace has it’s own naming conventions.

So you can think of a Paperspace notebook as being a sort of ‘work environment’. Inside each individual work environment (i.e. ‘Paperspace notebook’) you can have as many .ipynb files/notebooks as you like.

So it’s workable I think. You can have a single ‘Paperspace notebook’ that will cover all your work on the fastai course. (Paperspace have just confused things with how they name their abstractions.)

4 Likes

For anyone

        dls = DataBlock(blocks=(ImageBlock, RegressionBlock),
                    get_x=ColReader('path'),
                    get_y=ColReader('norm_score'),
                    splitter=RandomSplitter(0.2),
                    item_tfms=Resize(224), #pass in item_tfms
                    batch_tfms=setup_aug_tfms([Flip()])
                   )

Hi all, bit late for the party. I see that all of Jeremy’s notebooks are on kaggle. I’m using jarvislabs since I have an issue logging in with paperspace. I started a fastai instance but it only contains 2020 notebooks. And I see that 2022 notebooks are not all in the github repo. Should we just copy-paste code/markdown to the cloud notebook of our choice, or is there a good way I can import the Kaggle notebook into another place? perhaps download the notebook and open it in jarvislabs?

I might be wrong, but I think the Kaggle (2022) notebooks are not part of the fastbook repo at all. It might be a good idea to just download them from Kaggle and open them directly in JarvisLabs.

2 Likes

2 posts were merged into an existing topic: Non-Beginner Discussion

You can click on the 3 vertical … button on any Kaggle kernel and download the code.

Which downloads it as .ipynb file, and you can upload it to any JupyterLab, which is what you get while using Jarvislabs :blush:.

3 Likes

For those wanting to set up a remote backend on Paperspace Gradient while using your local VS Code editor, please see this guide I’ve created:

https://forums.fast.ai/t/beginner-basics-of-fastai-pytorch-numpy-etc/96285/36?u=n-e-w

2 Likes

Using the Paperspace IDE and the how-does-a-neural-network-really-work.ipynb kaggle notebook I noticed the interactive widget flashes up but disappears when running. I tried installing some extra modules but this didn’t fix the problem. Then I discovered I can open the notebook in JupyterLab and the widgets work fine in there. I’m including here in case there is a way to get @interact working on the Paperspace IDE.
In Paperspace IDE


In Paperspace JupyterLab

2 Likes