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.

Einige Bugs/Fehler
#10
Debug output meldet:
Quote:y4m: failed to parse y4m header.
failed to initialize file reader(s).
was auf ein Problem mit Vapoursynth hinweist.

Das Vapoursynth script:
# Imports import vapoursynth as vs # getting Vapoursynth core import logging import site import sys import os core = vs.core # Import scripts folder scriptPath = 'C:/Program Files/Hybrid/64bit/vsscripts' sys.path.insert(0, os.path.abspath(scriptPath)) os.environ["CUDA_MODULE_LOADING"] = "LAZY" # Force logging to std:err logging.StreamHandler(sys.stderr) # loading plugins core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/Support/vszip.dll") core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vs-mlrt/vstrt.dll") core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/Support/fmtconv.dll") core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/SourceFilter/LSmashSource/LSMASHSource.dll") # Import scripts from importlib.machinery import SourceFileLoader vsmlrt = SourceFileLoader('vsmlrt', 'C:/Program Files/Hybrid/64bit/vs-mlrt/vsmlrt.py').load_module() from vsmlrt import Backend import validate # Source: 'C:\Users\Peter\Downloads\Upscaling\Lord.of.Mysteries.S01E01.German.ML.EAC3.1080p.WebDL.x264-Pudding-sama.mkv' # Current color space: YUV420P8, bit depth: 8, resolution: 1920x816, frame rate: 25fps, scanorder: progressive, yuv luminance scale: limited, matrix: 709, format: AVC # Loading C:\Users\Peter\Downloads\Upscaling\Lord.of.Mysteries.S01E01.German.ML.EAC3.1080p.WebDL.x264-Pudding-sama.mkv using LWLibavSource clip = core.lsmas.LWLibavSource(source="C:/Users/Peter/Downloads/Upscaling/Lord.of.Mysteries.S01E01.German.ML.EAC3.1080p.WebDL.x264-Pudding-sama.mkv", format="YUV420P8", stream_index=0, cache=0, prefer_hw=0) frame = clip.get_frame(0) # setting color matrix to 709. clip = core.std.SetFrameProps(clip, _Matrix=vs.MATRIX_BT709) # setting color transfer (vs.TRANSFER_BT709), if it is not set. if validate.transferIsInvalid(clip): clip = core.std.SetFrameProps(clip=clip, _Transfer=vs.TRANSFER_BT709) # setting color primaries info (to vs.PRIMARIES_BT709), if it is not set. if validate.primariesIsInvalid(clip): clip = core.std.SetFrameProps(clip=clip, _Primaries=vs.PRIMARIES_BT709) # setting color range to TV (limited) range. clip = core.std.SetFrameProps(clip=clip, _ColorRange=vs.RANGE_LIMITED) # making sure frame rate is set to 25fps clip = core.std.AssumeFPS(clip=clip, fpsnum=25, fpsden=1) # making sure the detected scan type is set (detected: progressive) clip = core.std.SetFrameProps(clip=clip, _FieldBased=vs.FIELD_PROGRESSIVE) # progressive # changing range from limited to full range for vsVSMLRTFilter clip = core.resize.Bicubic(clip, format=vs.YUV420P8, matrix_s="709", range_in_s="limited", range_s="full") # setting color range to PC (full) range. clip = core.std.SetFrameProps(clip=clip, _ColorRange=vs.RANGE_FULL) # adjusting color space from YUV420P8 to RGBS for vsVSMLRTFilter clip = core.resize.Bicubic(clip=clip, format=vs.RGBS, matrix_in_s="709", range_in_s="full", range_s="full") # filtering using VSMLRT clip = vsmlrt.inference([clip],network_path="C:/Program Files/Hybrid/64bit/onnx_models/2x_LD-Anime_Compact_330k_net_g.onnx", backend=Backend.TRT(fp16=False,device_id=0,bf16=True,num_streams=1,verbose=True,use_cuda_graph=False,workspace=1073741824,builder_optimization_level=3,engine_folder="C:/Users/Peter/AppData/Local/Temp")) # 3840x1632 # undo resizing 3840x1632 to 1920x816 clip = core.resize.Spline64(clip=clip, width=1920, height=816) # resolution 1920x816) # changing range from full to limited range for vsVSMLRTFilter clip = core.resize.Bicubic(clip, format=vs.RGBS,range_in_s="full", range_s="limited") # making sure 0-1 limits are respected clip = core.vszip.Limiter(clip=clip, min=[0,0,0], max=[1,1,1]) from vsrealesrgan import realesrgan as RealESRGAN # adjusting color space from RGBS to RGBH for vsRealESRGAN clip = core.resize.Bicubic(clip=clip, format=vs.RGBH, dither_type="error_diffusion") # resizing using RealESRGAN clip = RealESRGAN(clip=clip, model=4, device_index=0, trt=True, trt_cache_dir=r"C:\Users\Peter\AppData\Local\Temp") # 7680x3264 # resizing 7680x3264 to 3840x1632 clip = core.resize.Bicubic(clip=clip, format=vs.RGBS) clip = core.fmtc.resample(clip=clip, w=3840, h=1632, kernel="spline", taps=6, interlaced=False, interlacedd=False) # adjusting output color from: RGBS to YUV420P10 for NVEncModel clip = core.resize.Bicubic(clip=clip, format=vs.YUV420P10, matrix_s="709", range_in_s="full", range_s="limited", dither_type="error_diffusion") # additional resize to allow target color sampling # set output frame rate to 25fps (progressive) clip = core.std.AssumeFPS(clip=clip, fpsnum=25, fpsden=1) # output clip.set_output()
sieht für mich eigentlich korrekt aus.
=> klappt er Vapoursynth Preview?
Vermute nicht.
Scheint, als ob es ein Problem gibt, wenn man sowohl bei VSMLRT als auch RealESRGAN TRT verwendet.
Vermute, dass ich da nichts machen kann.
Heute nicht zu Hause und morgen schaue ich erst mal auf das HAVC update.
Damit das gefixed wird, muss man vermutlich einen Bug Report bei:
https://github.com/HolyWu/vs-realesrgan und https://github.com/AmusementClub/vs-mlrt machen.
Vielleicht finde ich nächste Woche irgendwann Zeit da genug zu testen, um entsprechend Bugreports zu erstellen. (Werde versuchen rauszufinden, ob dies am Wechsel zu torch 2.7.x im torch-addon oder an einer der neueren Versionen von vs-mlrt liegt.

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply


Messages In This Thread
Einige Bugs/Fehler - by powerthrash4K - 25.08.2025, 16:05
RE: Einige Bugs/Fehler - by Selur - 25.08.2025, 16:17
RE: Einige Bugs/Fehler - by powerthrash4K - 01.09.2025, 10:54
RE: Einige Bugs/Fehler - by Selur - 01.09.2025, 14:55
RE: Einige Bugs/Fehler - by powerthrash4K - 01.09.2025, 16:46
RE: Einige Bugs/Fehler - by Selur - 01.09.2025, 16:57
RE: Einige Bugs/Fehler - by powerthrash4K - 02.09.2025, 10:04
RE: Einige Bugs/Fehler - by Selur - 02.09.2025, 18:05
RE: Einige Bugs/Fehler - by powerthrash4K - 06.09.2025, 17:19
RE: Einige Bugs/Fehler - by Selur - 06.09.2025, 17:40
RE: Einige Bugs/Fehler - by powerthrash4K - 06.09.2025, 17:49
RE: Einige Bugs/Fehler - by Selur - 06.09.2025, 17:57
RE: Einige Bugs/Fehler - by powerthrash4K - 06.09.2025, 18:10
RE: Einige Bugs/Fehler - by Selur - 06.09.2025, 18:14
RE: Einige Bugs/Fehler - by Selur - 07.09.2025, 12:28
RE: Einige Bugs/Fehler - by Selur - 07.09.2025, 13:25
RE: Einige Bugs/Fehler - by powerthrash4K - 08.09.2025, 15:15

Forum Jump:


Users browsing this thread: 1 Guest(s)