Skip to content

Commit 2c94057

Browse files
committed
auto_scaleで拡大がされていなかったバグを修正 #8
1 parent a3ecc98 commit 2c94057

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/waifu2x.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1665,7 +1665,7 @@ Waifu2x::eWaifu2xError Waifu2x::waifu2x(const boost::filesystem::path &input_fil
16651665

16661666
const bool isJpeg = boost::iequals(ipext.string(), ".jpg") || boost::iequals(ipext.string(), ".jpeg");
16671667
const bool isReconstructNoise = mode == "noise" || mode == "noise_scale" || (mode == "auto_scale" && isJpeg);
1668-
const bool isReconstructScale = mode == "scale" || mode == "noise_scale";
1668+
const bool isReconstructScale = mode == "scale" || mode == "noise_scale" || mode == "auto_scale";
16691669

16701670
cv::Mat float_image;
16711671
ret = LoadMat(float_image, input_file);

0 commit comments

Comments
 (0)