mafiosnik777/enhancr

Selecting an external model crashes the encoder

Closed this issue · 1 comments

I'm trying to use external models to upscale my video, specifically 2x VHS upscale and denoise Film and 4x UniScale Balanced.

Settings: x265, "Upscaling - RealESRGAN (DirectML)", 2x

Whether I use pth or onnx files, the result is always:

[enhancr] Preparing media for upscaling process..
[enhancr] Using custom model: C:\Users\AMD\AppData\Roaming\.enhancr\models\RealESRGAN\4x-UniScale-Balanced [72000g].onnx
[enhancr] Encoding parameters: -c:v hevc_nvenc -preset p6 -b_adapt 1 -rc-lookahead 30 -qp 23 -qp_cb_offset -2 -qp_cr_offset -2 -pix_fmt nv12
[enhancr] Scale: 2x
[enhancr] Mode: Upscaling - RealESRGAN (DirectML)
[enhancr] Starting upscaling process..

[Pipe] Starting video output | Threads: 16 | Streams: 2
[Pipe] Frame: 1/43230
[Pipe] Error: Failed to retrieve frame 13 with error: operator (): 'ortapi->Run( resource.session, nullptr, &resource.input_name, &resource.input_tensor, 1, &resource.output_name, 1, &resource.output_tensor )' failed: D:\a\onnxruntime\onnxruntime\onnxruntime\core\providers\dml\DmlExecutionProvider\src\ExecutionProvider.cpp(898)\onnxruntime.dll!00007FF9E82E45B4: (caller: 00007FF9E82E4C0F) Exception(2) tid(13a0) 887A0006 The GPU will not respond to more commands, most likely because of an invalid command passed by the calling application.

Any suggestions?

Solved by installing newer Nvidia Studio drivers.