mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-11-22 09:13:01 +00:00
train_predict: fixup
This commit is contained in:
parent
cc6679c609
commit
aed2348a95
1 changed files with 2 additions and 1 deletions
|
@ -91,7 +91,8 @@ def do_png(args, ai, dataset, model_code):
|
||||||
model_params = json.loads(readfile(args.params))
|
model_params = json.loads(readfile(args.params))
|
||||||
|
|
||||||
i = 0
|
i = 0
|
||||||
for rainfall, water in batched_iterator(dataset, tensors_in_item=2, batch_size=model_params["batch_size"]):
|
gen = batched_iterator(dataset, tensors_in_item=2, batch_size=model_params["batch_size"])
|
||||||
|
for rainfall, water in gen:
|
||||||
water_predict_batch = ai.embed(rainfall)
|
water_predict_batch = ai.embed(rainfall)
|
||||||
for water_predict in water_predict_batch:
|
for water_predict in water_predict_batch:
|
||||||
# [ width, height, softmax_probabilities ] → [ batch, width, height ]
|
# [ width, height, softmax_probabilities ] → [ batch, width, height ]
|
||||||
|
|
Loading…
Reference in a new issue