youyuge34 / Anime-InPainting

An application tool of edge-connect, which can do anime inpainting and drawing. 动漫人物图片自动修复,去马赛克,填补,去瑕疵
Other
1.08k stars 152 forks source link

运行不了/ I can't run the tool #5

Open yzceig opened 5 years ago

yzceig commented 5 years ago

多谢学长代码。我运行了工具,用的win10CPU,只用input和output两个窗口,可以显示 Image selected: G:\yzceig\Pictures\input.png,前面打印的也没问题。然后就用左键划黑线,但按‘n'键无反应,命令行光标一直在闪,按其他键也一样无反应。这可能是什么问题。

youyuge34 commented 5 years ago

@yzceig Make sure your typing language has been shifted to ENG. Press n only when the activated window is OpenCV instead of CMD. Or u can add some debug messages in the source codes by yourself.

yzceig commented 5 years ago

Thank you for your answer. I find that I press n at the wrong window. But when it shows Patching... and the size information of 3 lines ,then my computer is stuck, whatever I press, it doesn't work. I use the cpu, so is that my computer's hardware configuration is too low?

youyuge34 commented 5 years ago

@yzceig I'm afraid so. Use pictures with smaller size to try again and I strongly recommend you to run with GPU~

yzceig commented 5 years ago

As for the cuda, is that some requirements when use it? Which version of cuda i should use ? i have tried cuda 10.0, but it shows all CUDA-capable devices are busy or unavailable. Should i use a lower version of cuda, such as 9.0?

youyuge34 commented 5 years ago

@yzceig The cuda toolkit is installed firstly whether 9.0 or 10.0 is supported by PyTorch. Be careful you should use the correct command line to install PyTorch which is written on official site, according to your cuda version.
Make sure your PyTorch with cuda could run smoothly before you run this project.

fangxuanhao commented 4 years ago

谢谢您的回答。我发现我在错误的窗口上按了n。 但是当它显示Patching...并显示3行的尺寸信息时,我的电脑被卡住了,无论我按什么键,它都无法工作。 我使用cpu,是不是我的计算机的硬件配置太低?

使用gpu运行,或者有可能是你图片比较大,你可以缩小图片