This commit is contained in:
nttstar
2018-03-10 23:36:33 +08:00
2 changed files with 65 additions and 34 deletions

View File

@@ -769,6 +769,14 @@ class FaceImageIter(io.DataIter):
v = numpy.random.normal(mu, sigma)
v = math.abs(v)*-1.0+mrange[1]
v = max(v, mrange[0])
elif self.output_c2c==5:
v = np.random.uniform(0.41, 0.51)
if count>=175:
v = np.random.uniform(0.37, 0.47)
elif self.output_c2c==6:
v = np.random.uniform(0.41, 0.51)
if count>=175:
v = np.random.uniform(0.38, 0.48)
else:
assert False