mirror of
https://github.com/lltcggie/waifu2x-caffe.git
synced 2025-06-26 13:42:48 +00:00
縦幅指定拡大の動作が横幅指定と同じになっていたバグを修正
This commit is contained in:
parent
26cd687a65
commit
5514995215
@ -835,7 +835,7 @@ double Waifu2x::CalcScaleRatio(const boost::optional<double> scale_ratio, const
|
|||||||
return image.GetScaleFromWidth(*scale_width);
|
return image.GetScaleFromWidth(*scale_width);
|
||||||
|
|
||||||
if(scale_height)
|
if(scale_height)
|
||||||
return image.GetScaleFromWidth(*scale_height);
|
return image.GetScaleFromHeight(*scale_height);
|
||||||
|
|
||||||
return 1.0;
|
return 1.0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user