You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is the following for loop necessary? Except for the last batch, len(imgs) = n, so j could only be 0 in the loop. In the last batch, if len(imgs) is smaller than n, int(len(imgs) / n) = 0, the loop is ignored. Otherwise, len(imgs) = n, so j could only be 0 in the loop.
You are correct, the for loop is not necessary. This code was in place from a different project, but is not needed here, so I've eliminated it in commit 29fbcb0. Good catch!
Is the following for loop necessary? Except for the last batch,
len(imgs) = n
, soj
could only be 0 in the loop. In the last batch, iflen(imgs)
is smaller thann
,int(len(imgs) / n) = 0
, the loop is ignored. Otherwise,len(imgs) = n
, soj
could only be 0 in the loop.yolov3/train.py
Lines 118 to 119 in 68de92f
The text was updated successfully, but these errors were encountered: