mirror of
https://github.com/lltcggie/waifu2x-caffe.git
synced 2025-06-26 13:42:48 +00:00
ファイルを複数入力すると出力拡張子が適用されていなかったバグを修正
This commit is contained in:
parent
09a5ed9873
commit
3da98bcfc3
@ -619,7 +619,7 @@ private:
|
||||
const boost::filesystem::path input_path(boost::filesystem::absolute(input));
|
||||
const boost::filesystem::path output_path(boost::filesystem::absolute(output_str));
|
||||
|
||||
const auto filenameFunc = [&output_path](const tstring &path) -> std::wstring
|
||||
const auto outilenameFunc = [&output_path](const tstring &path) -> std::wstring
|
||||
{
|
||||
const auto out = output_path / path;
|
||||
return out.wstring();
|
||||
@ -691,8 +691,10 @@ private:
|
||||
}
|
||||
}
|
||||
else
|
||||
file_paths.emplace_back(input_path.wstring(), filenameFunc(input_path.filename().wstring()));
|
||||
|
||||
{
|
||||
const auto out = output_path / (input_path.stem().wstring() + outputExt);
|
||||
file_paths.emplace_back(input_path.wstring(), out.wstring());
|
||||
}
|
||||
};
|
||||
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user