From 183b979365f6581c43e6c11d15581b3c19b60ca8 Mon Sep 17 00:00:00 2001 From: Miller Cy Chan Date: Wed, 24 Jul 2024 12:14:17 +0800 Subject: [PATCH] Update PnnLABQuantizer.java --- src/nQuant/j2se/PnnLABQuantizer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nQuant/j2se/PnnLABQuantizer.java b/src/nQuant/j2se/PnnLABQuantizer.java index 4010a30..90e1714 100644 --- a/src/nQuant/j2se/PnnLABQuantizer.java +++ b/src/nQuant/j2se/PnnLABQuantizer.java @@ -241,7 +241,7 @@ else if(proportional > .1) ratio = Math.min(1.0, 1.0 - weight); else if(proportional > .04) ratio = Math.min(1.0, weight * Math.exp(1.56)); - else if(proportional > .025 && weight < .002) + else if(proportional > .025 && (weight < .002 || weight > .0022)) ratio = Math.min(1.0, proportional + weight * Math.exp(3.66)); else ratio = Math.min(1.0, proportional + weight * Math.exp(1.718));