Skip to content

Commit

Permalink
auto_scaleで拡大がされていなかったバグを修正 #8
Browse files Browse the repository at this point in the history
  • Loading branch information
lltcggie committed Dec 31, 2015
1 parent a3ecc98 commit 2c94057
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/waifu2x.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1665,7 +1665,7 @@ Waifu2x::eWaifu2xError Waifu2x::waifu2x(const boost::filesystem::path &input_fil

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

cv::Mat float_image;
ret = LoadMat(float_image, input_file);
Expand Down

0 comments on commit 2c94057

Please sign in to comment.