From 24cfdd584b745363077dc6a7126d456b4b87d5dc Mon Sep 17 00:00:00 2001 From: Miller Cy Chan Date: Sun, 12 May 2024 21:42:58 +0800 Subject: [PATCH] Update PnnLABQuantizer.cpp --- nQuantCpp/PnnLABQuantizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nQuantCpp/PnnLABQuantizer.cpp b/nQuantCpp/PnnLABQuantizer.cpp index 7bb1b13..301c34e 100644 --- a/nQuantCpp/PnnLABQuantizer.cpp +++ b/nQuantCpp/PnnLABQuantizer.cpp @@ -184,7 +184,7 @@ namespace PnnLABQuant quan_rt = -1; weight = min(0.9, nMaxColors * 1.0 / maxbins); - if (nMaxColors < 16 || (weight > .0015 && weight < .0022)) + if (weight < .001 || (weight > .0015 && weight < .0022)) quan_rt = 2; if (weight < .04 && PG < 1 && PG >= coeffs[0][1]) { auto delta = exp(1.75) * weight;