From a96d22b4f4da37f09efa5c84aa41f7999f02e0e5 Mon Sep 17 00:00:00 2001 From: lltcggie Date: Fri, 23 Nov 2018 18:28:23 +0900 Subject: [PATCH] =?UTF-8?q?cNet::LoadParameterFromJson()=E3=81=AE=E4=B8=8D?= =?UTF-8?q?=E8=A6=81=E3=81=AA=E3=83=81=E3=82=A7=E3=83=83=E3=82=AF=E3=82=92?= =?UTF-8?q?=E5=A4=96=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/cNet.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/common/cNet.cpp b/common/cNet.cpp index 902858d..abbffb6 100644 --- a/common/cNet.cpp +++ b/common/cNet.cpp @@ -456,9 +456,6 @@ Waifu2x::eWaifu2xError cNet::LoadParameterFromJson(const boost::filesystem::path return Waifu2x::eWaifu2xError_FailedParseModelFile; } - if (d.Size() != 7) - return Waifu2x::eWaifu2xError_FailedParseModelFile; - int inputPlane = 0; int outputPlane = 0; try @@ -477,9 +474,6 @@ Waifu2x::eWaifu2xError cNet::LoadParameterFromJson(const boost::filesystem::path if (inputPlane != outputPlane) return Waifu2x::eWaifu2xError_FailedParseModelFile; - //if (param.layer_size() < 17) - // return Waifu2x::eWaifu2xError_FailedParseModelFile; - std::vector>> list; auto &v = mNet->layers(); for (auto &l : v)