Open magic-lantern opened 5 years ago
If client code should be updated, I'm happy to do a pull request to update these notebooks. It seems that just dropping the dl_tfms
argument before calling the DataLoader works:
cp_args = dict(dl_kwargs)
del cp_args['dl_tfms']
train_dl = DataLoader(datasets[0], batch_size=bs, sampler=train_sampler, drop_last=True, **cp_args)
ive been using fastai 1.0.61, get the exact same error , do you know how to get around it ??
@StephennFernandes - It's been several months since I reported this issue, but not sure if anything has changed in v1 of the library. Looks like according to https://github.com/fastai/fastai1/releases the most current release is 1.0.63.
You may have success with my previous comment about dropping the dl_tfms
argument.
However, my recommendation would be to switch to v2 of the the fastai library if you can.
When running this code
in the translation/sequence to sequence notebooks (https://github.com/fastai/course-v3/blob/master/nbs/dl2/translation.ipynb and https://github.com/fastai/course-v3/blob/master/nbs/dl2/translation_transformer.ipynb) the following error occurs:
It appears that at some point in the past, the DataBunch classes had a
dl_tfms
argument added, but the DataLoader does not accept that argument.I'm not sure if a change is warranted in the based fastai library DataLoader, or just that client code should be updated.