lltcggie / waifu2x-caffe

waifu2xのCaffe版
MIT License
8.06k stars 840 forks source link

cannot open/save as TIFF file format #27

Open mieumieu opened 8 years ago

mieumieu commented 8 years ago

Hi,

First I would like to thank you guys for creating such a useful tool!

But now we have met a tricky issue. After using the tool for some period of time on a computer, we will always meet an error where the tool (both GUI and CUI version) will fail to open the input file.

"Failed to open input file xxx"

It occurs on TIFF file format (whether as input or output), but for TGA and possibly other file formats the error does not occur. Currently, only reinstalling the system on the computer can we fix this issue.

We are integrating the tool into an image processing pipeline where TIFF is the intermediate exchange format. Of course we can convert the images to TGA before calling Waifu2x, but I would still like to know the reason why this error occurs, and possibly get it fixed.

Thanks, Mieu

lltcggie commented 8 years ago

ツールを一定時間使うとTIFF形式のファイルが読み書き出来なくなるのですね? そのような症状は聞いたことがありませんね…

原因を調べるために確認したいことがあります。 ・エラーが発生するようになった後、TGA形式だけではなくPNG形式やBMP形式でもエラーは発生しないのか?(TGA形式だけは別のライブラリを使用しているので、他の形式でエラーが出るようになっても正常に動く可能性があります) ・システムを再インストールすれば治ると書かれているが、再起動するだけでは治らないのか?

mieumieu commented 8 years ago

Hi,

We have tested the following on the affected computer:

  1. Restarting Windows does not fix the problem.
  2. No error with PNG or BMP. It only happens with TIFF.

Thanks, Mieu

lltcggie commented 8 years ago

https://www.dropbox.com/s/7wqmfb6580wzvbz/waifu2x-caffe-test.zip?dl=0 libtiffのWin32 APIを使用している部分を標準ライブラリに差し替えてみました。 これで解決するか試してみてください。

mieumieu commented 8 years ago

Hi,

I tried to use the test.zip by overwriting it in the 1.1.3 version directory but it will have an error "failed to parse model file".

Can you also include the correct model file you are using in the test.zip?

Thanks, Mieu

lltcggie commented 8 years ago

ver 1.3.1.2からモデルファイルが更新されたので、最新版のフォルダにtest.zipの中身を上書きしてください。(ちなみに変換結果の画質に変更はありません)

mieumieu commented 8 years ago

Hi,

We have tried that and it still outputs the same error. We will try to debug it on that particular computer and get back to you when we have more information.

Thanks, Mieu