mirror of
https://github.com/xuebinqin/DIS.git
synced 2024-11-26 08:43:17 +01:00
Merge pull request #9 from PINTO0309/pinto0309work
Avoiding "local variable'i_val' referenced before assignment"
This commit is contained in:
commit
bdf1a300d4
@ -200,6 +200,8 @@ def valid_gt_encoder(net, valid_dataloaders, valid_datasets, hypar, epoch=0):
|
|||||||
MAE = np.zeros((val_num))
|
MAE = np.zeros((val_num))
|
||||||
|
|
||||||
val_cnt = 0.0
|
val_cnt = 0.0
|
||||||
|
i_val = None
|
||||||
|
|
||||||
for i_val, data_val in enumerate(valid_dataloader):
|
for i_val, data_val in enumerate(valid_dataloader):
|
||||||
|
|
||||||
# imidx_val, inputs_val, labels_val, shapes_val = data_val['imidx'], data_val['image'], data_val['label'], data_val['shape']
|
# imidx_val, inputs_val, labels_val, shapes_val = data_val['imidx'], data_val['image'], data_val['label'], data_val['shape']
|
||||||
|
Loading…
Reference in New Issue
Block a user