This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Problems in using RealESRGAN in Hybrid 2022.11.28.1
#16
It seems that the problem is related to "Tensor RT". If I disable it so that "Tensor" is not used. Hybrid is able to encode the movie. I think that we are in the same condition where the "Tensor" dll are not loaded as in my old post. I think that they are in my path, because if I perform the encoding using "vsViewer" there are not problems in using "Tensor RT". I remember that to solve this issue you created a dedicated folder "/torch_dependencies/", maybe is missing some dll...

I commented the following lines in the script

# Adding torch dependencies to PATH

# path = site.getsitepackages()[0]+'/torch_dependencies/'

# path = path.replace('\\', '/')

# os.environ["PATH"] = path + os.pathsep + os.environ["PATH"]

 and I was still able to encode the movie. This means that is using the "Tensor" DLL located in some place on my PC.

In my path there are the following directory

C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.4\bin;
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.4\libnvvp;
C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;
C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;
C:\Program Files\NVIDIA Corporation\Nsight Compute 2021.2.2;

I copied all the files included in "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.4\bin" in "/torch_dependencies/" and removed from the path "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.4\bin". vsViewer is able to encode only if in the script there are the following lines

# Adding torch dependencies to PATH

# path = site.getsitepackages()[0]+'/torch_dependencies/'

# path = path.replace('\\', '/')

# os.environ["PATH"] = path + os.pathsep + os.environ["PATH"]

 Also the preview in Hybrid is working. But the encoding task still CRASH. It seems that the environment used to run the preview in Hybrid is different from the environment used to run the encoding task.

I run in command window, the following command

"D:\Programs\Hybrid\64bit\Vapoursynth\vspipe.exe" "E:\VideoTest\2022-12-17\encodingTempSynthSkript_2022-12-17@19_51_26_2510.vpy" - -c y4m > .\video.raw

and was written a huge file. The begin of the file contains the following rows:

[12/17/2022-22:14:55] [TRT] [W] CUDA lazy loading is not enabled. Enabling it can significantly reduce device memory usage. See `CUDA_MODULE_LOADING` in https://docs.nvidia.com/cuda/cuda-c-prog...l#env-vars
[12/17/2022-22:14:55] [TRT] [W] CUDA lazy loading is not enabled. Enabling it can significantly reduce device memory usage. See `CUDA_MODULE_LOADING` in https://docs.nvidia.com/cuda/cuda-c-prog...l#env-vars
YUV4MPEG2 C420p10 W1280 H952 F25:1 Ip A0:0 XLENGTH=4508
FRAME
Reply


Messages In This Thread
RE: Problems in using RealESRGAN in Hybrid 2022.11.28.1 - by Dan64 - 17.12.2022, 22:26

Forum Jump:


Users browsing this thread: 1 Guest(s)