Skip to content

Commit

Permalink
Update PnnLABQuantizer.java
Browse files Browse the repository at this point in the history
  • Loading branch information
mcychan authored Jul 24, 2024
1 parent f35d2ee commit 183b979
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nQuant/j2se/PnnLABQuantizer.java
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 183b979

Please sign in to comment.