Lesson 3: __init__() got an unexpected keyword argument 'width_zoom_range'

Did someone encountered the following error in lesson 3 :

init() got an unexpected keyword argument ‘width_zoom_range’

When running the following code:

gen = image.ImageDataGenerator(rotation_range=10, width_shift_range=0.1,
height_shift_range=0.1, width_zoom_range=0.2, shear_range=0.15, zoom_range=0.1,
channel_shift_range=10., horizontal_flip=True, dim_ordering=‘tf’)

I’m pretty sure I’ve installed the correct python version.

1 Like

At least one other person mentioned this was an error.

You could create a PR for the fastai repo.

Generally, the notebooks aren’t meant to be perfect. If you have to dig in a bit and reason about why an error occurs that’s a good thing. The recommended practice is not to just copy and execute the notebook but to watch the lecture and then try to recreate it from memory while looking things up online and in the fastai repo as needed.

FWIW, I also got this. I’ll start digging… :slight_smile:

Well, an easy find; too easy to post. I agree it’s worthwhile doing a lot of the debugging ourselves.

No oh my god! PLEASE POST THE SOLLUTION. OTHERWISE SOMEONE 3 YEARS LATER WILL CRY :frowning: