Merge pull request #66 from nagadomi/fix_tta

ノイズ除去のみのときにTTAが適用できないのを修正
This commit is contained in:
lltcggie 2016-11-20 23:49:31 +09:00 committed by GitHub
commit a9b91ad9f9

View File

@ -903,7 +903,7 @@ Waifu2x::eWaifu2xError Waifu2x::ReconstructImage(const double factor, const int
cv::Size_<int> size;
image.GetScalePaddingedRGB(im, size, mNoiseNet->GetNetOffset(), OuterPadding, crop_w, crop_h, 1);
ret = ProcessNet(mNoiseNet, crop_w, crop_h, use_tta, batch_size, im);
ret = ReconstructByNet(mNoiseNet, crop_w, crop_h, use_tta, batch_size, cancel_func, im);
if (ret != Waifu2x::eWaifu2xError_OK)
return ret;