mirror of
https://github.com/lltcggie/waifu2x-caffe.git
synced 2025-06-26 05:32:47 +00:00
変換プロセッサーにgpuを指定した場合、cuDNNが使えていなかったバグを修正
This commit is contained in:
parent
8477fe031c
commit
54e05bd2af
@ -439,7 +439,7 @@ eWaifu2xError waifu2x(int argc, char** argv, const std::vector<InputOutputPathPa
|
|||||||
const std::string model_path = (mode_dir_path / "srcnn.prototxt").string();
|
const std::string model_path = (mode_dir_path / "srcnn.prototxt").string();
|
||||||
const std::string param_path = (mode_dir_path / ("noise" + std::to_string(noise_level) + "_model.json")).string();
|
const std::string param_path = (mode_dir_path / ("noise" + std::to_string(noise_level) + "_model.json")).string();
|
||||||
|
|
||||||
ret = ConstractNet(net_noise, model_path, process);
|
ret = ConstractNet(net_noise, model_path, process_fix);
|
||||||
if (ret != eWaifu2xError_OK)
|
if (ret != eWaifu2xError_OK)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
@ -453,7 +453,7 @@ eWaifu2xError waifu2x(int argc, char** argv, const std::vector<InputOutputPathPa
|
|||||||
const std::string model_path = (mode_dir_path / "srcnn.prototxt").string();
|
const std::string model_path = (mode_dir_path / "srcnn.prototxt").string();
|
||||||
const std::string param_path = (mode_dir_path / "scale2.0x_model.json").string();
|
const std::string param_path = (mode_dir_path / "scale2.0x_model.json").string();
|
||||||
|
|
||||||
ret = ConstractNet(net_scale, model_path, process);
|
ret = ConstractNet(net_scale, model_path, process_fix);
|
||||||
if (ret != eWaifu2xError_OK)
|
if (ret != eWaifu2xError_OK)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user