Spaces:
Sleeping
Sleeping
File size: 372 Bytes
64d0ccc | 1 2 3 4 5 6 7 8 9 10 11 12 13 | #Testing the dataloader functionality
from dataloader import get_dataloaders
train_loader, val_loader = get_dataloaders(
csv_path="data_processed/metadata_final.csv",
images_dir="data_processed/images",
batch_size=32
)
images, labels = next(iter(train_loader))
print("Batch image shape:", images.shape)
print("Batch labels shape:", labels.shape)
|