Beginner: Setup ✅

Lol… amazing!

Really wanna get stuck in with the projects but having the same issues

1 Like

Yeah, it’s probably possible if we work through each error one-by-one, but it seems odd that there’s not a 2024 quickstart guide from someone already.

Have you already seen this post in the Lesson 1 forum? Lesson 1 official topic - #623 by altcee
They suggested a solution there.

Yes that would be great and maybe use the forums to highlight the errors? However I might have not be as quick to find them :wink:

Yes. thank you, ddg api needs to be replaced with DDGS

OlegK’s copy works well: Lesson 1 official topic - Part 1 2022 - fast.ai Course Forums

Apparently, you need the method from the fastai library and not directly from DDG. He installs both in his copy, but it still worked when I uninstalled duckduckgo_search, so it seems to be a standalone version of the api built into fastai.

Your a legend Thanks so much finally getting some resluts.

hi, I have just started the course, and having a bit of trouble with Kaggle…I am following along, and not sure what the issue is, can I please get some help (and the internet on is toggled :slight_smile: )

I am also trying to setup the GPU:
“The best choice of GPU servers to use with this book will change over time, as companies come and go and prices change. We maintain a list of our recommended
options on the book’s website, so go there now and follow the instructions to get connected to a GPU deep learning server. Don’t worry; it takes only about two minutes to
get set up on most platforms, and many don’t even require any payment or even a
credit card to get started”
But I couldn’t find the instructions on the FASTAI website…any help here too pls?
Thanks in advance.

Is it a bird? Creating a model from your own data: Kaggle python notebook is not running with multiple issues

Sir,
When I try to run the cells of your Jupyter Notebook, I get exceptions. I am not that great in Python to know why I am getting such exceptions? How do I move forward from here. I am at the first chapter codes itself.
Regards

Yup. Same issues with me :frowning:

Change the following line of code

from duckduckgo_search import ddg_images

to this

from duckduckgo_search import *

And the code should work :slight_smile:
I am running locally using VS Code.
If you want to run locally as well just change this block of code

iskaggle = os.environ.get('KAGGLE_KERNEL_RUN_TYPE', '')

if iskaggle:
    !pip install -Uqq fastai duckduckgo_search

Change to
!pip install -Uqq fastai duckduckgo_search

Remove the lines containing iskaggle variable, that’s it!

Hi to all,
I just start today this wonderful course reading your book.

I’m trying the examples on the quick start doc (Quick start – fastai) and both google colab and kaggle are taking forever to run:


running for an hour already


running for half an hour

What beginner mistake am I making?

thanks a lot

My guess is that you have not turned on the GPU.

On Kaggle you can expand the panel on the right and select a GPU under “Accelerator”:

On Colab, select Connect > Change Runtime Type

image

and then select the “T4 GPU” radio button:

image

1 Like

I second what @vbakshi suggested. However, if you are running on the GPU and the problem still persists, from personal experience, you can try restarting your session:

  • On Kaggle simply refresh your page
  • On Google Colab go to: Runtime → Disconnect and delete runtime
1 Like

Thanks a lot, that was the reason. I knew it was something stupid :slight_smile:

I have good math background and years of programming experience, but setting things up is always a major pain form me.

2 Likes

I keep getting an error in this part of the code, i have run it exactly in 3 different notebook: Is it a bird, crashed car and amazing beard detector but I always run into an error in this stage. Anyone see the problem?

Link to my ‘crashed car’ notebook run exactly as is. https://www.kaggle.com/code/advvay/is-the-car-damaged/edit

ss of impacted code:

I’m just starting the course and have setup the notebook in Paperspace. I used the Paperspace+Fast.ai notebook to start. I was able to run the First Training code without issue. However on the subsequent code blocks I keep encountering name errors. For example, here is the name error for the block of code meant to show an image of a cat:
NameError Traceback (most recent call last)
Input In [1], in <cell line: 1>()
----> 1 img = PILImage.create(image_cat())
2 img.to_thumb(192)

NameError: name ‘PILImage’ is not defined

I saw someone mentioned making sure, when using Paperspace, to run the notebook in the Juypter Lab mode- which i’m doing (the name errors happen regardless of what mode i’m in).

I’ve done my searching but I can’t find a simple solution as to how to address this. Any help would be appreciated. Thank you.

I believe I have fixed the issue. I’m not sure what actually fixed it, but I tried 3 things:

  • !pip install -Uqq fastbook
    import fastbook
    fastbook.setup_book()

  • from fastai.vision.all import *

  • I restarted the kernal.