Skip to content

Commit

Permalink
ノイズ除去と拡大でUpCUnetではなくCUnetが使われていたのを修正 resolved #141
Browse files Browse the repository at this point in the history
  • Loading branch information
lltcggie committed Jan 15, 2019
1 parent cc711eb commit 3f26c04
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion common/waifu2x.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -655,9 +655,12 @@ Waifu2x::eWaifu2xError Waifu2x::Init(const eWaifu2xModelType mode, const int noi
if (ret != Waifu2x::eWaifu2xError_OK)
return ret;

mHasNoiseScaleOnly = info.has_noise_scale && !info.has_noise_only;
mHasNoiseScaleOnly = info.has_noise_scale;
mInputPlane = info.channels;

if (mode == eWaifu2xModelTypeNoise && info.has_noise_only) // ノイズ除去だけかつノイズ除去モデルが存在するのであればノイズ除去スケールモデルは使わないようにする
mHasNoiseScaleOnly = false;

if (mode == eWaifu2xModelTypeNoise || mode == eWaifu2xModelTypeNoiseScale || mode == eWaifu2xModelTypeAutoScale)
{
std::string base_name;
Expand Down

3 comments on commit 3f26c04

@Ledestin-Z
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1bb2c50d4715fcfb0034672ce1ccc29

@Ledestin-Z
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Ledestin-Z
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2c2020b2c69544caefb46c93278d098
6cf51005e315588f8cc9ebb9cbb0a61

Please sign in to comment.