Custom model, not updating databunch

I’m following the superres tutorial using a custom model. When I try to change the data bunch loaded in the learner by following:
the learner does not update and there are no errors raised.

I tested this by using
and I can see the source images are not changed.

Any ideas why this would be the case? And how I can update the data loaded into the model for progressive resizing etc.

What version of fastai are you using?

Hi, I’m using 2.2.7

You would need to change learn.dls (or learn.dls[0] if you want to just change the training data but not the validation set).


Ah, I see it’s changed in fastai v2. Thanks all!

1 Like