When I try to debug the train.py, I meet the problem. Can you tell me the reason? Thank you!
for i, b in enumerate(batch(train, batch_size)):
start_batch = time.time()
imgs = np.array([i[0] for i in b]).astype(np.float32)
true_masks = np.array([i[1] for i in b]).astype(np.float32) / 255.
When I try to debug the train.py, I meet the problem. Can you tell me the reason? Thank you! for i, b in enumerate(batch(train, batch_size)): start_batch = time.time() imgs = np.array([i[0] for i in b]).astype(np.float32) true_masks = np.array([i[1] for i in b]).astype(np.float32) / 255.
local variable 'i' referenced before assignment