Hi!
I’m on Lesson 2 and have encountered several issues in both Lesson 1 and Lesson 2 so far. These issues are errors encountered whilst trying to get the notebooks to run.
My local computer is a MacBook Pro and my DL server is a AWS server running Ubuntu as per the setup guide for this course.
To get the Lesson 1 notebook to work for me, I had to make the following edits:
C2
from fastai import *
from fastai.vision import *
C9
np.random.seed(2)
pat = r’/([^/]+)_\d+.jpg$’
C10
data = ImageDataBunch.from_name_re(path_img, fnames, pat, ds_tfms=get_transforms(), size=224, bs=bs, padding_mode=‘border’)
data.normalize(imagenet_stats)
C?? - Resnet50
data = ImageDataBunch.from_name_re(path_img, fnames, pat, ds_tfms=get_transforms(),
size=299, bs=bs//2, padding_mode=‘zeros’).normalize(imagenet_stats)
With Lesson 2 I encountered errors right off the bat. I had to add:
from fastai.vision import *
from pathlib import Path
I them spent a lot of time trying to figure out how to upload files as there is no Upload button on my Jupyter Notebook. After more time spent doing non-DL stuff, I managed to find out how to do it.
(for others the command is:
scp -i ~/.ssh/[your key file] [local file path] [username]@[aws ip]:[destination file path]
)
So now I have the text files uploaded but the code throws another error:
path
"PosixPath(’~/data/bears’)
download_images(path/file, dest, max_pics=200)
“[Errno 2] No such file or directory: ‘~/data/bears/urls_black.txt’”
My frustration is that I have spent the past 90 mins dealing with errors not associated with the subject matter, as what I experience in front of me as a student, does not match what is displayed on the video. Its like trying to follow a teacher who is reading a different text book to what the student has. I can eventually figure it out but it takes 10 times longer and its incredibly frustrating!
I’m also mindful that I may have missed something or doing something wrong that is plain obvious for a software developer. Any advice will be greatly appreciated.