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)