based on this previous forum answer by @sgugger:
ds_tfms=get_transforms(max_zoom=0, max_warp=0, max_rotate=0), size=sz, padding_mode='zeros')
from Unable to change padding to zeros when using rotation / warp from get_transforms()
I also tried:
tfms = get_transforms()
tr_val_databunch = ImageDataBunch.from_df(path='.',
df = train,
label_col = label_colname,
valid_pct = 0.20,
resize_method = ResizeMethod.PAD,
bs = 20,
ds_tfms = tfms,
size = 320,
padding_method = 'zeros').normalize()
and
tfms = get_transforms()
tr_val_databunch = ImageDataBunch.from_df(path='.',
df = train,
label_col = label_colname,
valid_pct = 0.20,
# resize_method = ResizeMethod.PAD,
bs = 20,
ds_tfms = tfms,
size = 320,
resize_method = ResizeMethod.PAD,
padding_method = 'zeros').normalize()
…but each gave me the same error as before: "TypeError: create_from_ll() got an unexpected keyword argument 'padding_method'
"