Skip to content

Commit

Permalink
Update PnnLABQuantizer.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
mcychan authored Feb 6, 2025
1 parent 4edd9b9 commit d1743f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nQuantGpp/PnnLABQuantizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ namespace PnnLABQuant
if (hasSemiTransparency || isGA)
weight *= -1;

if(dither && saliencies.empty() && weight < .052) {
if(dither && !hasSemiTransparency && saliencies.empty() && weight < .052) {
auto length = (size_t) pixels4b.rows * pixels4b.cols;
saliencies.resize(length);
auto saliencyBase = .1f;
Expand Down

0 comments on commit d1743f4

Please sign in to comment.