Closed robeson1010 closed 6 years ago
Are you using new fastai (v1) or the older one (0.7)? Both would have similar approach. Define a DataLoader, and then pass it to the DataBunch (for v1) and ModelData for (v0.7).
To be specific:
trn_dl = DataLoader(trn_ds, sampler=sampler) val_dl = DataLoader(val_ds, sampler=sampler) data = DataBunch(trn_dl, val_dl, path=path)
In the older one use data = ModelData(path, trn_dl, val_dl).
data = ModelData(path, trn_dl, val_dl)
Thanks~
Closing the issue then.
Are you using new fastai (v1) or the older one (0.7)? Both would have similar approach. Define a DataLoader, and then pass it to the DataBunch (for v1) and ModelData for (v0.7).
To be specific:
In the older one use
data = ModelData(path, trn_dl, val_dl)
.