pytorch-semseg icon indicating copy to clipboard operation
pytorch-semseg copied to clipboard

train.py index error

Open arthurzhang817 opened this issue 6 years ago • 0 comments

In train.py, the output starts from "Iter [2/1000]...". I went into the code, and I found out that i starts from 0 (assuming no "resume training" scheme).

In the first iteration, i is increased to 1 immediately, but in later printing lines, they all use (i+1), which means there will never be a "Iter [1/1000]...".

The solution is to set start_iter as -1.

arthurzhang817 avatar Jan 04 '19 02:01 arthurzhang817