mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-11-25 10:32:59 +00:00
moar debugging
This commit is contained in:
parent
172cf9d8ce
commit
dfef7db421
1 changed files with 12 additions and 2 deletions
|
@ -21,6 +21,13 @@ def parse_args():
|
||||||
|
|
||||||
return parser
|
return parser
|
||||||
|
|
||||||
|
|
||||||
|
def count_batches(dataset):
|
||||||
|
count = 0
|
||||||
|
for _ in dataset:
|
||||||
|
count += 1
|
||||||
|
return count
|
||||||
|
|
||||||
def run(args):
|
def run(args):
|
||||||
if (not hasattr(args, "water_size")) or args.water_size == None:
|
if (not hasattr(args, "water_size")) or args.water_size == None:
|
||||||
args.water_size = 100
|
args.water_size = 100
|
||||||
|
@ -40,7 +47,11 @@ def run(args):
|
||||||
dirpath_input=args.input,
|
dirpath_input=args.input,
|
||||||
batch_size=args.batch_size,
|
batch_size=args.batch_size,
|
||||||
)
|
)
|
||||||
dataset_metadata = read_metadata(args.input)
|
|
||||||
|
print("BATCHES_TRAIN", count_batches(dataset_train))
|
||||||
|
print("BATCHES_VALIDATE", count_batches(dataset_validate))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# for (items, label) in dataset_train:
|
# for (items, label) in dataset_train:
|
||||||
# print("ITEMS", len(items), [ item.shape for item in items ])
|
# print("ITEMS", len(items), [ item.shape for item in items ])
|
||||||
|
@ -59,4 +70,3 @@ def run(args):
|
||||||
)
|
)
|
||||||
|
|
||||||
ai.train(dataset_train, dataset_validate)
|
ai.train(dataset_train, dataset_validate)
|
||||||
|
|
Loading…
Reference in a new issue