Nov-27-2023, 08:13 PM
I have a problem with
If I have printed the debugging messages I have really got this as the first line of the output:
HERE HERE Epoch: 395, Epochs: 396
But the progress bar stops already at 393 not at 395 as required,see the attachment to this post. This is not the case for all numbers, sometimes the progress bar really
stops at Epochs - 1. E.g., 388/389 [00:09<00:00, 43.03it/s] so, 389 is such a
if epoch >= epochs : also gives an error. It BTW doesn't give an error if the program has been executed for several times before because
the Jupyter Notebook environment apparently remembers the data from the previous run. I'm saying this only because I was sooo happy that I have resolved the issue with tqdm but in fact I didn't. Where is the bug/problem with my code ?? Many thanks to all readers of this post.
EDIT I have noticed that what is the
modulo arithmetic but I'm uncertain with the exact eplanation:
tqdm
progress bar. I have a code like this my code with wrongly working tqdmIf I have printed the debugging messages I have really got this as the first line of the output:
HERE HERE Epoch: 395, Epochs: 396
But the progress bar stops already at 393 not at 395 as required,see the attachment to this post. This is not the case for all numbers, sometimes the progress bar really
stops at Epochs - 1. E.g., 388/389 [00:09<00:00, 43.03it/s] so, 389 is such a
miraculous
number where the progress bar from tqdm stops rightly at epochs -1 position. Also, changing the condition on the line 587 at the pastebin.com site above withif epoch >= epochs : also gives an error. It BTW doesn't give an error if the program has been executed for several times before because
the Jupyter Notebook environment apparently remembers the data from the previous run. I'm saying this only because I was sooo happy that I have resolved the issue with tqdm but in fact I didn't. Where is the bug/problem with my code ?? Many thanks to all readers of this post.
EDIT I have noticed that what is the
miraculous
number depends on the number of elements in this array, I think that the issue is somemodulo arithmetic but I'm uncertain with the exact eplanation:
Quote:new_persons_results = [
# [101, 112],
# [0.54422416, 0.02778176],
# [22.57372914, 17.96922325],
# [22.57372914, 17.96922325]
# Add more new persons as needed
# [23.65780072, 18.8599168 ],
# [22.57372914, 17.96922325],
# [32.55342397, 29.46365141],
# [ 6.71803504, 25.70466547],
# [ 6.71803504, 25.70466547],
# [14.40191857, 16.77085649],
# [17.45790731, 21.76521471],
# [2110.02796947, 73.45445955],
# [30.29513837, 62.90111289],
# [15.1289778, 32.40267702],
[23.65780072, 18.8599168 ],
[22.57372914, 17.96922325],
[32.55342397, 29.46365141],
[ 6.71803504, 25.70466547],
[14.40191857, 16.77085649],
[17.45790731, 21.76521471],
[20.02796947, 73.45445955],
]