Skip to content

Commit 9b26b33

Browse files
authored
Add files via upload
1 parent 40eec77 commit 9b26b33

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

nQuantCpp/DblGNGQuantizer.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -708,6 +708,11 @@ namespace GrowingNeuralGas
708708
}
709709
}
710710

711+
if (mDivn < .04 && PG < 1 && PG >= coeffs[0][1] && nMaxColors >= 64)
712+
enforcedDither = false;
713+
if (mDivn > .003 && nMaxColors <= 32)
714+
enforcedDither = false;
715+
711716
if ((nMaxColors < 32 && mDivn > .015 && mDivn < .032) || (nMaxColors >= 32 && nMaxColors < 64 && mDivn > .03 && mDivn < .06))
712717
trainBatch(uniqueSamples, samples, stdDevSamples, epochs);
713718
else

0 commit comments

Comments
 (0)