Hi, I am trying to train the same model on my own images and got the following error. I am new to this field so I hope to get some detailed information. Executed the following code and got an error -
Code -
for epoch in range(EPOCHS):
start = time.time()
Hi, I am trying to train the same model on my own images and got the following error. I am new to this field so I hope to get some detailed information. Executed the following code and got an error - Code - for epoch in range(EPOCHS): start = time.time()
train_loss.reset_states() train_accuracy.reset_states()
inp -> image, tar -> word character
for (batch, (inp, tar)) in enumerate(train_batches): train_step(inp, tar)
if (epoch + 1) % 5 == 0: ckpt_save_path = ckpt_manager.save() print(f'Saving checkpoint for epoch {epoch+1} at {ckpt_save_path}')
print(f'Epoch {epoch + 1} Loss {train_loss.result():.4f} Accuracy {train_accuracy.result():.4f}')
print(f'Time taken for 1 epoch: {time.time() - start:.2f} secs\n')
Error - ValueError: in user code: