Skip to content

Commit 34e4d6b

Browse files
authored
Revert to 0 (50% percents of images inverted).
1 parent 287d534 commit 34e4d6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/training/degradeimage.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ Pix* PrepareDistortedPix(const Pix* pix, bool perspective, bool invert,
209209
(*boxes)[b].set_right((*boxes)[b].left() + 1);
210210
}
211211
}
212-
if (invert && randomizer->SignedRand(1.0) < -0.9)
212+
if (invert && randomizer->SignedRand(1.0) < -0)
213213
pixInvert(distorted, distorted);
214214
return distorted;
215215
}

0 commit comments

Comments
 (0)