mirror of
https://github.com/lltcggie/waifu2x-caffe.git
synced 2025-06-26 13:42:48 +00:00
Merge pull request #19 from nagadomi/fix_double_open
Fix double-open of JSON file handles
This commit is contained in:
commit
84521656ab
@ -783,7 +783,7 @@ Waifu2x::eWaifu2xError Waifu2x::LoadParameterFromJson(boost::shared_ptr<caffe::N
|
||||
|
||||
try
|
||||
{
|
||||
boost::iostreams::stream<boost::iostreams::file_descriptor_source> is(param_path, std::ios_base::in | std::ios_base::binary);
|
||||
boost::iostreams::stream<boost::iostreams::file_descriptor_source> is;
|
||||
|
||||
try
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user