mirror of
https://github.com/lltcggie/waifu2x-caffe.git
synced 2025-06-26 13:42:48 +00:00
テストコードが混入していたのを修正
This commit is contained in:
parent
22bbffe1d8
commit
4b21788fcd
@ -1239,25 +1239,21 @@ Waifu2x::eWaifu2xError Waifu2x::waifu2x(const std::string &input_file, const std
|
||||
{
|
||||
cv::Mat in(brfm.clone());
|
||||
|
||||
cv::imwrite("0.png", in * 255.0);
|
||||
|
||||
const int rotateNum = i % 4;
|
||||
RotateClockwise90N(in, rotateNum);
|
||||
cv::imwrite("1.png", in * 255.0);
|
||||
|
||||
if(i >= 4)
|
||||
cv::flip(in, in, 1); // <20>‚’¼Ž²”½“]
|
||||
cv::imwrite("2.png", in * 255.0);
|
||||
|
||||
ret = ReconstructFloatMat(isJpeg, cancel_func, in, in);
|
||||
if (ret != eWaifu2xError_OK)
|
||||
return ret;
|
||||
cv::imwrite("3.png", in * 255.0);
|
||||
|
||||
if (i >= 4)
|
||||
cv::flip(in, in, 1); // <20>‚’¼Ž²”½“]
|
||||
cv::imwrite("4.png", in * 255.0);
|
||||
|
||||
RotateCounterclockwise90N(in, rotateNum);
|
||||
cv::imwrite("5.png", in * 255.0);
|
||||
|
||||
ri[i] = in;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user