Platform: Colab ✅

Hey Farid

As usual, thanks for the help man. The following block:

path = Config.data_path()/'planet'

gives me a:
NameError: name 'Config' is not defined

you have to run this before:

from fastai.vision import *

I’m assuming that you are following along with the lesson3-planet notebook

oohh my bad. thanks my Canadian brotha :pray:t4:

No problem!

Hi, I’m trying to download my images. However, I’m constantly getting this error message:
FileNotFoundError: [Errno 2] No such file or directory: ‘/content/gdrive/My Drive/fastai-v3/data/rodents/coypus.txt’

What am I missing and/or doing wrong?


Thanks in advance.

Hi Suwilli hope all is well!

Please see this link Showing error No such file or directory: 'Text/Banded_Racer.txt' this helped another person resolve a problem just like yours.

Cheers mrfabulous1 :smiley::smiley:

Hi, mrfabulous!

Thanks, I appreciate the assistance.

Did it work for you? i have tried most of the solution found here, but it hasn’t work for me so for

It didn’t work for me. However, when I reorganized it I was able to download the images. Try organizing it this way:

Does anyone know why verify_images is only being applied to coypus and not beavers and capybaras?

A. classes = [‘beavers’, ‘capybaras’, ‘coypus’]
for c in classes:
print ( c)
verify_images(path/c, delete=True, max_size=500)
For some reason A is only being applied to coypus and not beavers and capybaras

B. classes = [‘beavers’, ‘capybaras’, ‘coypus’]
for c in classes:
print ( c)
verify_images(path/r, delete=True, max_size=500)

C. classes = [‘beavers’, ‘capybaras’, ‘coypus’]
for c in classes:
print ( c)
verify_images(path/b, delete=True, max_size=500)

B and C are being applied to beavers, capybaras, and coypus. Does anyone know why that’s happening?

Additionally, when I run data.classes only coypus appears. Am I missing a step?

I am trying to get Lesson 1 going on Colab. When I run the command:
fnames = get_image_files(path_img)

I get this error message:

NameError: name ‘path_img’ is not defined

Any help is appreciated.

Judy

I used this tutorial on Medium to download Kaggle and set up the API for the Digit Recognizer Competition.

Hope this helps

Can you share your notebook and I could have a look?

Hello, I’m having trouble getting the Rossman notebook to work on Colab. Here’s the relevant code:

from google.colab import drive
drive.mount('/content/gdrive', force_remount=True)
root_dir = "/content/gdrive/My Drive/"
base_dir = root_dir + 'fastai-v3/'

# Entered my authorization code...

path = base_dir + 'rossmann'
train_df = pd.read_pickle(path + "/" + 'train_clean')

I get:

FileNotFoundError: [Errno 2] No such file or directory: ‘/content/gdrive/My Drive/fastai-v3/rossmann/train_clean’

What am I doing wrong?

Is that the path to where your pickled dataframes are at?

Oh, I didn’t actually do any pickling or moving of files myself… Was there some other step I was supposed to do?

Did you follow the steps to do the feature engineering? Via this notebook: https://github.com/fastai/course-v3/blob/master/nbs/dl1/rossman_data_clean.ipynb

If so see if it’s in your base directory (content). If so your path is just Path(‘my file.csv’) (for example)

Ah I see. It seems I skipped over a very major step! Thank you.

Thanks much for responding. I got it working. Looks like the things various documents had told me to add in were actually keeping the code for running. Thanks again.