Skip to content

FileNotFoundError: [WinError 2] The system cannot find the file specified #43

@rwfsmith

Description

@rwfsmith

Generating TensorRT engine with command: python\VSPipe.exe -c y4m --arg "slot=1" --arg "video_path=G:\Video\Absolute Boyfriend\Episode 1.mkv" --start 0 --end 1 "C:\Users\rwfsm\AppData\Local\VideoJaNai\current\backend\animejanai\core\animejanai_encode.vpy" -p .
run_animejanai slot 1 chain_1
chain_conf {'min_px': 0.0, 'max_px': inf, 'min_resolution': '0x0', 'max_resolution': '0x0', 'min_fps': 0.0, 'max_fps': inf, 'models': [{'resize_factor_before_upscale': 100.0, 'resize_height_before_upscale': 0.0, 'name': 'realesrgan_x2plus'}], 'rife': False, 'rife_factor_numerator': 2, 'rife_factor_denominator': 1, 'rife_model': 422, 'rife_ensemble': False, 'rife_scene_detect_threshold': 0.15, 'final_resize_height': 0.0, 'final_resize_factor': 100.0, 'tensorrt_engine_settings': ''}
upscale2x: scaling 2x from 720x480 with engine=realesrgan_x2plus; num_streams=4
trt_settings --bf16 --minShapes=input:1x3x8x8 --optShapes=input:1x3x1080x1920 --maxShapes=input:1x3x1080x1920 --inputIOFormats=fp32:chw --outputIOFormats=fp32:chw --tacticSources=+CUDNN,-CUBLAS,-CUBLAS_LT --skipInference
C:\Users\rwfsm\AppData\Roaming\VideoJaNai\python/vs-plugins/vsmlrt-cuda\trtexec --onnx=C:\Users\rwfsm\AppData\Roaming\VideoJaNai\onnx\realesrgan_x2plus.onnx --saveEngine=C:\Users\rwfsm\AppData\Roaming\VideoJaNai\onnx\realesrgan_x2plus.1853643832.engine --bf16 --minShapes=input:1x3x8x8 --optShapes=input:1x3x1080x1920 --maxShapes=input:1x3x1080x1920 --inputIOFormats=fp32:chw --outputIOFormats=fp32:chw --tacticSources=+CUDNN,-CUBLAS,-CUBLAS_LT --skipInference
upscale2x: scaling 2x from 720x480 with engine=realesrgan_x2plus; num_streams=4
trt_settings --bf16 --minShapes=input:1x3x8x8 --optShapes=input:1x3x1080x1920 --maxShapes=input:1x3x1080x1920 --inputIOFormats=fp32:chw --outputIOFormats=fp32:chw --tacticSources=+CUDNN,-CUBLAS,-CUBLAS_LT --skipInference
C:\Users\rwfsm\AppData\Roaming\VideoJaNai\python/vs-plugins/vsmlrt-cuda\trtexec --onnx=C:\Users\rwfsm\AppData\Roaming\VideoJaNai\onnx\realesrgan_x2plus.onnx --saveEngine=C:\Users\rwfsm\AppData\Roaming\VideoJaNai\onnx\realesrgan_x2plus.1853643832.engine --bf16 --minShapes=input:1x3x8x8 --optShapes=input:1x3x1080x1920 --maxShapes=input:1x3x1080x1920 --inputIOFormats=fp32:chw --outputIOFormats=fp32:chw --tacticSources=+CUDNN,-CUBLAS,-CUBLAS_LT --skipInference
Script evaluation failed:
Python exception: [WinError 2] The system cannot find the file specified
Traceback (most recent call last):
File "C:\Users\rwfsm\AppData\Local\VideoJaNai\current\backend\animejanai\core\animejanai_core.py", line 203, in run_animejanai
clip = run_animejanai_upscale(clip, backend, model_conf, trt_settings, num_streams)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\rwfsm\AppData\Local\VideoJaNai\current\backend\animejanai\core\animejanai_core.py", line 256, in run_animejanai_upscale
return upscale2x(clip, backend, model_conf['name'], num_streams, trt_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\rwfsm\AppData\Local\VideoJaNai\current\backend\animejanai\core\animejanai_core.py", line 153, in upscale2x
return upscale2x_trt(clip, engine_name, num_streams, trt_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\rwfsm\AppData\Local\VideoJaNai\current\backend\animejanai\core\animejanai_core.py", line 159, in upscale2x_trt
create_custom_engine(engine_name, trt_settings)
File "C:\Users\rwfsm\AppData\Local\VideoJaNai\current\backend\animejanai\core\animejanai_core.py", line 84, in create_custom_engine
subprocess.run(commands,
File "subprocess.py", line 548, in run
File "subprocess.py", line 1026, in init
File "subprocess.py", line 1538, in _execute_child
FileNotFoundError: [WinError 2] The system cannot find the file specified
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "src\cython\vapoursynth.pyx", line 3387, in vapoursynth._vpy_evaluate
File "src\cython\vapoursynth.pyx", line 3388, in vapoursynth._vpy_evaluate
File "C:\Users\rwfsm\AppData\Local\VideoJaNai\current\backend\animejanai\core\animejanai_encode.vpy", line 20, in
animejanai_core.run_animejanai_with_keybinding(clip, clip.fps, slot)
File "C:\Users\rwfsm\AppData\Local\VideoJaNai\current\backend\animejanai\core\animejanai_core.py", line 289, in run_animejanai_with_keybinding
run_animejanai(clip, container_fps, chain_conf, config['global']['backend'])
File "C:\Users\rwfsm\AppData\Local\VideoJaNai\current\backend\animejanai\core\animejanai_core.py", line 213, in run_animejanai
clip = run_animejanai_upscale(clip, backend, model_conf, trt_settings, num_streams)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\rwfsm\AppData\Local\VideoJaNai\current\backend\animejanai\core\animejanai_core.py", line 256, in run_animejanai_upscale
return upscale2x(clip, backend, model_conf['name'], num_streams, trt_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\rwfsm\AppData\Local\VideoJaNai\current\backend\animejanai\core\animejanai_core.py", line 153, in upscale2x
return upscale2x_trt(clip, engine_name, num_streams, trt_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\rwfsm\AppData\Local\VideoJaNai\current\backend\animejanai\core\animejanai_core.py", line 159, in upscale2x_trt
create_custom_engine(engine_name, trt_settings)
File "C:\Users\rwfsm\AppData\Local\VideoJaNai\current\backend\animejanai\core\animejanai_core.py", line 84, in create_custom_engine
subprocess.run(commands,
File "subprocess.py", line 548, in run
File "subprocess.py", line 1026, in init
File "subprocess.py", line 1538, in _execute_child
FileNotFoundError: [WinError 2] The system cannot find the file specified
Upscaling with command: python\VSPipe.exe -c y4m --arg "slot=1" --arg "video_path=G:\Video\Absolute Boyfriend\Episode 1.mkv" "C:\Users\rwfsm\AppData\Local\VideoJaNai\current\backend\animejanai\core\animejanai_encode.vpy" - | "C:\Users\rwfsm\AppData\Roaming\VideoJaNai\ffmpeg\ffmpeg.exe" -i pipe: -i "G:\Video\Absolute Boyfriend\Episode 1.mkv" -map 0:v -c:v hevc_nvenc -preset p7 -profile:v main10 -b:v 50M -max_interleave_delta 0 -map 1:t? -map 1:a? -map 1:s? -c:t copy -c:a copy -c:s copy "G:\Video\Absolute Boyfriend\Episode 1-animejanai.mkv"
ffmpeg version 2025-04-17-git-7684243fbe-essentials_build-www.gyan.dev Copyright (c) 2000-2025 the FFmpeg developers
built with gcc 14.2.0 (Rev3, Built by MSYS2 project)
configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-dxva2 --enable-d3d11va --enable-d3d12va --enable-ffnvcodec --enable-libvpl --enable-nvdec --enable-nvenc --enable-vaapi --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband
libavutil 60. 1.100 / 60. 1.100
libavcodec 62. 0.101 / 62. 0.101
libavformat 62. 0.100 / 62. 0.100
libavdevice 62. 0.100 / 62. 0.100
libavfilter 11. 0.100 / 11. 0.100
libswscale 9. 0.100 / 9. 0.100
libswresample 6. 0.100 / 6. 0.100
libpostproc 59. 1.100 / 59. 1.100
run_animejanai slot 1 chain_1
chain_conf {'min_px': 0.0, 'max_px': inf, 'min_resolution': '0x0', 'max_resolution': '0x0', 'min_fps': 0.0, 'max_fps': inf, 'models': [{'resize_factor_before_upscale': 100.0, 'resize_height_before_upscale': 0.0, 'name': 'realesrgan_x2plus'}], 'rife': False, 'rife_factor_numerator': 2, 'rife_factor_denominator': 1, 'rife_model': 422, 'rife_ensemble': False, 'rife_scene_detect_threshold': 0.15, 'final_resize_height': 0.0, 'final_resize_factor': 100.0, 'tensorrt_engine_settings': ''}
upscale2x: scaling 2x from 720x480 with engine=realesrgan_x2plus; num_streams=4
trt_settings --bf16 --minShapes=input:1x3x8x8 --optShapes=input:1x3x1080x1920 --maxShapes=input:1x3x1080x1920 --inputIOFormats=fp32:chw --outputIOFormats=fp32:chw --tacticSources=+CUDNN,-CUBLAS,-CUBLAS_LT --skipInference
C:\Users\rwfsm\AppData\Roaming\VideoJaNai\python/vs-plugins/vsmlrt-cuda\trtexec --onnx=C:\Users\rwfsm\AppData\Roaming\VideoJaNai\onnx\realesrgan_x2plus.onnx --saveEngine=C:\Users\rwfsm\AppData\Roaming\VideoJaNai\onnx\realesrgan_x2plus.1853643832.engine --bf16 --minShapes=input:1x3x8x8 --optShapes=input:1x3x1080x1920 --maxShapes=input:1x3x1080x1920 --inputIOFormats=fp32:chw --outputIOFormats=fp32:chw --tacticSources=+CUDNN,-CUBLAS,-CUBLAS_LT --skipInference
upscale2x: scaling 2x from 720x480 with engine=realesrgan_x2plus; num_streams=4
trt_settings --bf16 --minShapes=input:1x3x8x8 --optShapes=input:1x3x1080x1920 --maxShapes=input:1x3x1080x1920 --inputIOFormats=fp32:chw --outputIOFormats=fp32:chw --tacticSources=+CUDNN,-CUBLAS,-CUBLAS_LT --skipInference
C:\Users\rwfsm\AppData\Roaming\VideoJaNai\python/vs-plugins/vsmlrt-cuda\trtexec --onnx=C:\Users\rwfsm\AppData\Roaming\VideoJaNai\onnx\realesrgan_x2plus.onnx --saveEngine=C:\Users\rwfsm\AppData\Roaming\VideoJaNai\onnx\realesrgan_x2plus.1853643832.engine --bf16 --minShapes=input:1x3x8x8 --optShapes=input:1x3x1080x1920 --maxShapes=input:1x3x1080x1920 --inputIOFormats=fp32:chw --outputIOFormats=fp32:chw --tacticSources=+CUDNN,-CUBLAS,-CUBLAS_LT --skipInference
Script evaluation failed:
Python exception: [WinError 2] The system cannot find the file specified
Traceback (most recent call last):
File "C:\Users\rwfsm\AppData\Local\VideoJaNai\current\backend\animejanai\core\animejanai_core.py", line 203, in run_animejanai
clip = run_animejanai_upscale(clip, backend, model_conf, trt_settings, num_streams)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\rwfsm\AppData\Local\VideoJaNai\current\backend\animejanai\core\animejanai_core.py", line 256, in run_animejanai_upscale
return upscale2x(clip, backend, model_conf['name'], num_streams, trt_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\rwfsm\AppData\Local\VideoJaNai\current\backend\animejanai\core\animejanai_core.py", line 153, in upscale2x
return upscale2x_trt(clip, engine_name, num_streams, trt_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\rwfsm\AppData\Local\VideoJaNai\current\backend\animejanai\core\animejanai_core.py", line 159, in upscale2x_trt
create_custom_engine(engine_name, trt_settings)
File "C:\Users\rwfsm\AppData\Local\VideoJaNai\current\backend\animejanai\core\animejanai_core.py", line 84, in create_custom_engine
subprocess.run(commands,
File "subprocess.py", line 548, in run
File "subprocess.py", line 1026, in init
File "subprocess.py", line 1538, in _execute_child
FileNotFoundError: [WinError 2] The system cannot find the file specified
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "src\cython\vapoursynth.pyx", line 3387, in vapoursynth._vpy_evaluate
File "src\cython\vapoursynth.pyx", line 3388, in vapoursynth._vpy_evaluate
File "C:\Users\rwfsm\AppData\Local\VideoJaNai\current\backend\animejanai\core\animejanai_encode.vpy", line 20, in
animejanai_core.run_animejanai_with_keybinding(clip, clip.fps, slot)
File "C:\Users\rwfsm\AppData\Local\VideoJaNai\current\backend\animejanai\core\animejanai_core.py", line 289, in run_animejanai_with_keybinding
run_animejanai(clip, container_fps, chain_conf, config['global']['backend'])
File "C:\Users\rwfsm\AppData\Local\VideoJaNai\current\backend\animejanai\core\animejanai_core.py", line 213, in run_animejanai
clip = run_animejanai_upscale(clip, backend, model_conf, trt_settings, num_streams)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\rwfsm\AppData\Local\VideoJaNai\current\backend\animejanai\core\animejanai_core.py", line 256, in run_animejanai_upscale
return upscale2x(clip, backend, model_conf['name'], num_streams, trt_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\rwfsm\AppData\Local\VideoJaNai\current\backend\animejanai\core\animejanai_core.py", line 153, in upscale2x
return upscale2x_trt(clip, engine_name, num_streams, trt_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\rwfsm\AppData\Local\VideoJaNai\current\backend\animejanai\core\animejanai_core.py", line 159, in upscale2x_trt
create_custom_engine(engine_name, trt_settings)
File "C:\Users\rwfsm\AppData\Local\VideoJaNai\current\backend\animejanai\core\animejanai_core.py", line 84, in create_custom_engine
subprocess.run(commands,
File "subprocess.py", line 548, in run
File "subprocess.py", line 1026, in init
File "subprocess.py", line 1538, in _execute_child
FileNotFoundError: [WinError 2] The system cannot find the file specified
[in#0 @ 000001c2aa583cc0] Error opening input: Invalid data found when processing input
Error opening input file pipe:.
Error opening input files: Invalid data found when processing input

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions