farid
(Farid Hassainia)
October 1, 2019, 4:09pm
299
You can follow these steps:
First, download your kaggle.json file to Colab.
Then run these command in your Colab notebook:
! pip install kaggle --upgrade
! mkdir -p ~/.kaggle/
! cp /content/kaggle.json ~/.kaggle/
! chmod 600 /root/.kaggle/kaggle.json
path = Config.data_path()/'planet'
path.mkdir(parents=True, exist_ok=True)
! kaggle competitions download -c planet-understanding-the-amazon-from-space -f train-jpg.tar.7z -p {path}
Then run the rest of the notebook commands
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
farid
(Farid Hassainia)
October 1, 2019, 5:01pm
302
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
Suwilli
(Sudi )
October 22, 2019, 4:49am
305
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
Suwilli
(Sudi )
October 22, 2019, 6:10am
307
Hi, mrfabulous!
Thanks, I appreciate the assistance.
Tettey
(Tettey Yamak)
October 22, 2019, 10:43am
308
Did it work for you? i have tried most of the solution found here, but it hasn’t work for me so for
Suwilli
(Sudi )
October 22, 2019, 9:56pm
309
It didn’t work for me. However, when I reorganized it I was able to download the images. Try organizing it this way:
Suwilli
(Sudi )
October 22, 2019, 10:08pm
310
Does anyone know why verify_images is only being applied to coypus and not beavers and capybaras?
Suwilli
(Sudi )
October 23, 2019, 4:11am
311
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?
Dobedo
November 19, 2019, 12:57am
312
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
JHart
(James)
November 24, 2019, 3:34pm
313
I used this tutorial on Medium to download Kaggle and set up the API for the Digit Recognizer Competition.
Hope this helps
JHart
(James)
November 24, 2019, 3:35pm
314
Can you share your notebook and I could have a look?
Rosst
(Rosst)
November 24, 2019, 7:17pm
315
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?
muellerzr
(Zachary Mueller)
November 24, 2019, 7:20pm
316
Is that the path to where your pickled dataframes are at?
Rosst
(Rosst)
November 24, 2019, 7:32pm
317
Oh, I didn’t actually do any pickling or moving of files myself… Was there some other step I was supposed to do?
muellerzr
(Zachary Mueller)
November 24, 2019, 7:35pm
318
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)
Rosst
(Rosst)
November 24, 2019, 8:17pm
319
Ah I see. It seems I skipped over a very major step! Thank you.