Here’s my code:
dl = ImageDataLoaders.from_df(
df,
valid_pct=0.2,
fn_col="image_path",
label_col="y_col",
y_block=RegressionBlock,
bs=batch_size,
item_tfms=Resize((224,224), pad_mode="zeros"),
)
dl.show_batch()
The images are originally 222 by 300.
Regardless of what I set the pad_model to, dl.show_batch shows that the images get cropped.