mirror of
https://github.com/lltcggie/waifu2x-caffe.git
synced 2025-06-26 05:32:47 +00:00
cNet::LoadParameterFromJson()の不要なチェックを外した
This commit is contained in:
parent
7d1973c314
commit
a96d22b4f4
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user