Skip to content

Commit

Permalink
Update PnnLABQuantizer.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
mcychan authored May 12, 2024
1 parent d92ae45 commit 24cfdd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nQuantCpp/PnnLABQuantizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 24cfdd5

Please sign in to comment.