forked from souzatya/OHRC-ISRO
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmain.py
More file actions
18 lines (14 loc) · 664 Bytes
/
main.py
File metadata and controls
18 lines (14 loc) · 664 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from dataloader import load_data
train_loader, val_loader, test_loader = load_data(train_dir='dataset/train', val_dir='dataset/val', test_dir='dataset/test', batch_size=8)
# Example of iterating through the DataLoader
for images, masks in train_loader:
print(images.shape, masks.shape)
# Do something with the images and labels
# Example of iterating through the DataLoader
for images, masks in val_loader:
print(images.shape, masks.shape)
# Do something with the images and labels
# Example of iterating through the DataLoader
for images, masks in test_loader:
print(images.shape, masks.shape)
# Do something with the images and labels