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.

Weighted Resize CRASH
#1
Hello Selur,

  I found a movie that CRASH the encoding when I apply the weighted resize.
  I attached an archive with all the necessary information.

Thanks,
Dan
Reply
#2
clip = core.std.Merge(clipa=clipSmoothed, clipb=clip, weight=0.4)
                                             ^
SyntaxError: invalid non-printable character U+00A0
another non-printable character Sad

-> I'll compile a new version and send you links once I uploaded everything.

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#3
Nope, removing that character does not fix the problem.
-> looking into it

My ugess is that it's related to TRT, since when I call the call inside a Windows Command Prompt now, I get:
Warning: i:\Hybrid\64bit\Vapoursynth\Lib\site-packages\torch_tensorrt\fx\tracer\acc_tracer\acc_tracer.py:584: UserWarning: acc_tracer does not support currently support models for training. Calling eval on model before tracing.
  warnings.warn(

Information: == Log pass <function fuse_permute_matmul at 0x000001582EA78670> before/after graph to C:\Users\Selur\AppData\Local\Temp\tmpku34hqog, before/after are the same = True
Information: == Log pass <function fuse_permute_linear at 0x000001582EA78430> before/after graph to C:\Users\Selur\AppData\Local\Temp\tmpc3o7u8pf, before/after are the same = True
Information: Now lowering submodule _run_on_acc_0
Information: split_name=_run_on_acc_0, input_specs=[InputTensorSpec(shape=torch.Size([1, 3, 308, 720]), dtype=torch.float16, device=device(type='cuda', index=0), shape_ranges=[], has_batch_dim=True)]
Information: Timing cache is used!
x265 [error]: unable to open input file <->
Information: TRT INetwork construction elapsed time: 0:00:00.400953
Information: Build TRT engine elapsed time: 0:01:01.174254
Information: Lowering submodule _run_on_acc_0 elapsed time 0:01:04.743047
Information: Now lowering submodule _run_on_acc_2
Information: split_name=_run_on_acc_2, input_specs=[InputTensorSpec(shape=torch.Size([1, 3, 1232, 2880]), dtype=torch.float16, device=device(type='cuda', index=0), shape_ranges=[], has_batch_dim=True), InputTensorSpec(shape=torch.Size([1, 3, 1232, 2880]), dtype=torch.float16, device=device(type='cuda', index=0), shape_ranges=[], has_batch_dim=True)]
Information: Timing cache is used!
Information: TRT INetwork construction elapsed time: 0:00:00.000999
Information: Build TRT engine elapsed time: 0:00:00.222227
Information: Lowering submodule _run_on_acc_2 elapsed time 0:00:00.226829
Error: fwrite() call failed when writing frame: 0, plane: 0, errno: 22
Output 33 frames in 0.81 seconds (40.53 fps)

Encoding works fine with trt disabled.

Issue is unrelated to weighted resize, also happens without it.

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#4
I'm able to encode the movie using the same script in vsViewer.exe...
Reply
#5
I know, but that doesn't help at all.
https://github.com/HolyWu/vs-realesrgan/issues/21

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#6
As soon as trt is enabled it crashes.
(Independent of the model, fp16, num_streams or the encoder used)
Probably an issue with one of the dlls in the torch_dependencies folder.
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#7
I tried to run the encoding manually, and I get the following error

[Image: Test2-Error.png]

If I remove with an Editor the 2 non-printable characters (I had to remove all the spaces) the encoding worked.

Maybe vsViewer is able to remove all the non printable characters. These characters are visible in Notepadd++ if I select the Encoding ANSI (actually the file is using a UTF-8-BOM encoding).

Dan
Reply
#8
I removed those characters too, in Hybrid, but I still got crashes.
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#9
I'll send you a link to my current dev (~15min) which should fix the non-printable character, maybe that works for you.

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#10
I had the same problem. I was not able to really remove these characters in Notepad++. The only way to not get the crash is to change the script as following

clip = core.std.Merge(clipa=clipSmoothed,clipb=clip,weight=0.4)
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)