cNet::LoadParameterFromJson()の不要なチェックを外した

This commit is contained in:
lltcggie 2018-11-23 18:28:23 +09:00
parent 7d1973c314
commit a96d22b4f4

View File

@ -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<boost::shared_ptr<caffe::Layer<float>>> list;
auto &v = mNet->layers();
for (auto &l : v)