-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.py
36 lines (22 loc) · 763 Bytes
/
test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# from gan_parameters import GanParameters
# global ganParameters
# ganParameters = GanParameters()
# def printWorkers():
# print(ganParameters.get_workers())
# def printDataset():
# print(ganParameters.get_dataroot())
# printWorkers()
# printDataset()
from utils.show_data import showImages
from utils.load_data import *
from utils.gan_parameters import GanParameters
from utils.device_info import *
if __name__ == '__main__':
ganParameters = GanParameters()
train_ds = load_data_from_dataset(data_dir=ganParameters.get_dataroot())
train_dl = load_data_to_dataloader(train_ds)
for img, _ in train_dl:
print(img.shape)
showImages(img, title='first_batch_images')
break
print(get_default_device())