km2ii / JVP_TG-PLUS

This is enhanced mod for javplayer, enhance the effect after removing mosaic.
319 stars 66 forks source link

"basicvsr-pp:basicVSR" step errored out #98

Closed Delta45724 closed 1 year ago

Delta45724 commented 1 year ago

hello! first time trying this tool, my "basicvsr-pp:basicVSR-pp-4x-std:4" step errored out, the VRAM usage went up to almost 100% during that time

image

Error logs:

[info] * mPlus m2 - basicVSR-pp(SE):basicVSR-pp-4x-std:4X.
basicVSR-pp.exe --input_dir C:\JavPlayer_112a\JavPlayer_112a\TG\output0 --output_dir C:\JavPlayer_112a\JavPlayer_112a\TG\output0 --checkpoint C:\JavPlayer_112a\JavPlayer_112a\TG\TG-MODEL\basicVSR-pp-4x-std --scale 4 --imgext png --n_count 60 --offset_x 0 --offset_y 0
[info] C:\JavPlayer_112a\JavPlayer_112a\TG\TG-MODEL\basicVSR-pp-4x-std.pth loaded.
 input shape: [184, 328]
 output shape: [736, 1312]
Traceback (most recent call last):□□□□□□□□□□□□□] 13.04%
  File "basicVSR-pp.py", line 5, in <module>
  File "core_basicVSR_pp.py", line 1042, in core_basicVSR_pp.main
  File "core_basicVSR_pp.py", line 1049, in core_basicVSR_pp.main
  File "core_basicVSR_pp.py", line 887, in core_basicVSR_pp.preprocess_images
RuntimeError: stack expects each tensor to be equal size, but got [3, 744, 1320] at entry 0 and [3, 192, 336] at entry 5
[23988] Failed to execute script 'basicVSR-pp' due to unhandled exception!
 - VEAI:ahq-11:4X.
['C:/Program Files/Topaz Labs LLC/Topaz Video Enhance AI/veai.exe', '-i', 'C:\\JavPlayer_112a\\JavPlayer_112a\\TG\\output0\\0000.png', '-o', 'C:\\JavPlayer_112a\\JavPlayer_112a\\TG\\output0\\tmp', '-s', '4', '-m', 'ahq-11', '-f', 'png']
"C:/JavPlayer_112a/JavPlayer_112a/TG/output0/tmp"
<FileAppender::FileAppender> File name is empty. The appender will do nothing
<FileAppender::FileAppender> File name is empty. The appender will do nothing
<FileAppender::FileAppender> File name is empty. The appender will do nothing
Saving: C:/JavPlayer_112a/JavPlayer_112a/TG/output0/tmp
Hellgate4 commented 1 year ago

Use it as Mplus1. The input image is too large. This is because you take too much memory resources to create the output image size. Do downscale x2 or use VBPP only for Mplus1.

Delta45724 commented 1 year ago

Thanks! Moving it up to Mplus1 worked.