Closed Mirrorman95 closed 5 years ago
It looks like some kind of a permission error? I'm not quite sure what the problem is.
Also, you seem to have downloaded waifu2x yourself. I believe setting the program up with the given setup script gives the correct file attributes and permissions, thus no errors.
Alright, I ran video2x_setup.py and pip install -r requirements.txt, but even after that I get a similar error. I updated my Error Messages section with the output of my post-setup video2x attempt.
@Mirrorman95 does running the command as administrator do you any good? I'm not quite sure what the problem is right now. I'm more of a Linux person than Windows. I'm therefore not that familiar with how Windows permissions work.
I've already tried running the command line program as administrator, but that doesn't fix it.
If you change the code on line 83 of waifu2x_converter.py from
completed_command = subprocess.run(execute, check=True)
to
completed_command = subprocess.run(execute, shell=True, check=True)
Does this do anything?
I checked the current version of github.com/k4yt3x/video2x/blob/master/bin/waifu2x_converter.py, but "completed_command" doesn't show up anywhere there. The closest thing to what you described is line 96: return subprocess.run(execute, check=True).returncode Did you want me to modify that line instead?
I checked the current version of github.com/k4yt3x/video2x/blob/master/bin/waifu2x_converter.py, but "completed_command" doesn't show up anywhere there. The closest thing to what you described is line 96: return subprocess.run(execute, check=True).returncode Did you want me to modify that line instead?
Hey, i had the exact same issue, utill I install CUDA and CUDNN. If you have nvidia graphics card, install both of them and add "-m cudnn" after ur command line, and it should work fine.
@Mirrorman95 Yes sorry I was looking at the wrong file lol
@Evedestroyer if you use -m gpu or -m cudnn, CUDA or CUDNN is required. It's stated in the prerequisites section.
I've had CUDA v10.0 of the NVIDIA GPU Computing Toolkit installed since January. Is that sufficient? Also, I tried editing that line, and also passing gpu and cpu through the command line instead, but it had no effect.
You need CUDA driver 419.35+ for waifu2x-converter-cpp won't be a bad idea to try updating the driver
I already have GeForce Game Ready Driver 430.39.
@Mirrorman95 did u try install cuDNN and go through cuDNN method? https://developer.nvidia.com/cudnn It is a deep learning library over CUDA, not to be confused with CUDA itself. do u have error log handy?
The dev install for cuDNN is just a dll, which I did download and put into my original waifu2x-caffe installation, but it didn't work when I ran video2x from that installation, so that isn't the problem. I still suspect that the problem is that the ffmpeg or video2x scripts aren't successfully extracting the images from the video.
The dev install for cuDNN is just a dll, which I did download and put into my original waifu2x-caffe installation, but it didn't work when I ran video2x from that installation, so that isn't the problem. I still suspect that the problem is that the ffmpeg or video2x scripts aren't successfully extracting the images from the video.
the cuDNN is a CUDA library, so unzip it to your CUDA install path. Then, go to waifu2x-caffe GUI and click "Check cuDNN" button. If it says "cuDNN can be used", then you are good to go.
btw, the error message you gave shows the 2080 frames were extracted, so ffmpeg part is not an issue.
subprocess.CalledProcessError: Command '['C:\Users\Owner\AppData\Local\video2x\waifu2x-caffe\waifu2x-caffe-cui.exe', '--output_extention', 'png', '--mode', 'noise_scale', '--scale_width', '1600', '--scale_height', '1200', '--noise_level', '3', '--process', 'cpu', '--crop_size', '128', '--output_quality', '-1', '--output_depth', '8', '--batch_size', '1', '--gpu', '0', '--tta', '0', '--input_path', 'C:\Users\Owner\AppData\Local\Temp\video2x\tmpjtmj8i91\1', '--output_path', 'C:\Users\Owner\AppData\Local\Temp\video2x\tmpt8uc9tlx', '--model_dir', 'upconv_7_anime_style_art_rgb']' returned non-zero exit status 1.
Try these:
After I unzipped it to my CUDA 10.1 installation directory, it said it couldn't be used. But when I put the dll in the waifu2x-caffe folder the setup made me, it said it could be used. But it still gave me a similar error when I ran video2x:
Upscaling Progress: 0%| | 0/2080 [00:00<?, ?it/s] エラー: モデルファイルが開けませんでした
エラー: モデルファイルが開けませんでした
Upscaling Progress: 0%| | 0/2080 [00:01<?, ?it/s]2019-05-08 10:03:46.513998 [+] INFO: Killing upscaled image cleaner
Upscaling Progress: 0%| | 0/2080 [00:02<?, ?it/s][!] ERROR: An exception has occurred
Traceback (most recent call last):
File "video2x.py", line 318, in
エラー: モデルファイルが開けませんでした
Which means "Error: Could not open model file".
You've also didn't specify the model file directory correctly.
Try these:
- reduce thread to 1 by using "-t 1", more thread is more likely to crash
- dont use "-y upconv_7_anime_style_art_rgb", it wont pass the full install path of the model. you should add these settings to video2x.json, for example: "model_dir": "C:\Users\Owner\AppData\Local\video2x\waifu2x-caffe\models\upconv_7_anime_style_art_rgb",
Hey, I think that fixed it! I got rid of the -y statement and changed my json's "model_dir": "models/cunet" to "model_dir": "C:\Users\Owner\AppData\Local\video2x\waifu2x-caffe\models\upconv_7_photo", and now it's upscaling again! Thank you.
Well I'm closing it then if it's fixed.
Environment Information
video2x
ffmpeg
waifu2x-caffe
waifu2x-converter-cpp
Symptom
Similar symptoms to issue #54. Every time I try to upscale any video, it encounters a fatal error and stops because it can't upscale the extracted images. Based on the logs, I think it's because the process can't even extract them successfully. Earlier versions of video2x and/or waifu2x and/or ffmpeg I used didn't use to do this and could successfully upscale videos. But since updating everything sometime after 1/17/2019, it hasn't worked for me at all. I tried switching my Python and pip versions to 3.7.3 and reinstalling tqdm, avalon_framework, colorama, GPUtil, and psutil, but none of it helped. I can upscale images just fine using waifu2x-caffe.exe with cuDNN, so I don't think that's the issue. Is there a way to fix this problem?
Error Messages