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.

Crashed Jobs
#1
Hallo lieber Selur,

seit Neustart und trotz Installation der allerneuesten Dev gerade eben, gibt es einen Crash bei Start des Jobs und auch die Preview funktioniert nicht mehr. Ich habe keine Ahnung, welche Einstellung sich da geändert hat. Anbei der DebugOutput!

LG Peter


Attached Files
.rar   HybridDebugOutput.rar (Size: 8,18 KB / Downloads: 19)
Reply
#2
Quote:y4m: failed to parse y4m header: .
=> liegt vermutlich am Vapoursynth Skript.

Das Vapoursynth Skript:
# Imports
import vapoursynth as vs
# getting Vapoursynth core
import logging
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))
# Force logging to std:err
logging.StreamHandler(sys.stderr)
# loading plugins
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/Support/akarin.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/Support/libvs_placebo.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/SharpenFilter/AWarpSharp2/libawarpsharp2.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/DenoiseFilter/ZSmooth/zsmooth.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/ResizeFilter/nnedi3/vsznedi3.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/DenoiseFilter/CTMF/CTMF.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/Support/libmvtools.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
import linedarken
import nnedi3_resample
import smdegrain
import validate
# Source: 'C:\Users\Peter\Desktop\Zeug\Upscaling\TOUGEN.ANKI.S01E01.German.ML.AAC.1080p.WebDL.x264-Pudding-sama.mkv'
# Current color space: YUV420P8, bit depth: 8, resolution: 1920x1080, frame rate: 23.976fps, scanorder: progressive, yuv luminance scale: limited, matrix: 709, transfer: bt.709, primaries: bt.709, format: AVC
# Loading C:\Users\Peter\Desktop\Zeug\Upscaling\TOUGEN.ANKI.S01E01.German.ML.AAC.1080p.WebDL.x264-Pudding-sama.mkv using LWLibavSource
clip = core.lsmas.LWLibavSource(source="C:/Users/Peter/Desktop/Zeug/Upscaling/TOUGEN.ANKI.S01E01.German.ML.AAC.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 23.976fps
clip = core.std.AssumeFPS(clip=clip, fpsnum=24000, fpsden=1001)
# making sure the detected scan type is set (detected: progressive)
clip = core.std.SetFrameProps(clip=clip, _FieldBased=vs.FIELD_PROGRESSIVE) # progressive
# removing grain using SMDegrain
clip = smdegrain.SMDegrain(clip, thSADC=150, RefineMotion=True, interlaced=False, plane=0, subpixel=3, overlap=4, blksize=8, thSCD1=400)
# sharpening using AWarpSharp2
clip = core.warp.AWarpSharp2(clip, thresh=90, blur=2, depth=25)
# adjusting color space from YUV420P8 to YUV444P16 for vsGLSLAdaptiveSharpen
clip = core.resize.Bicubic(clip=clip, format=vs.YUV444P16)
# sharpening using GLSL Adaptive Sharpening
with open("C:/Program Files/Hybrid/64bit/vsfilters/GLSL/parameterized/adaptive-sharpen.glsl") as glslf:
  glsl = glslf.read()
glsl = glsl.replace('#define curve_height    1.0', '#define curve_height    1.0000')
glsl = glsl.replace('#define anime_mode      false', '#define anime_mode    true')
glsl = glsl.replace('#define overshoot_ctrl  false', '#define overshoot_ctrl  true')
glsl = glsl.replace('#define video_level_out false', '#define video_level_out false')
clip = core.placebo.Shader(clip, shader_s=glsl, width=clip.width, height=clip.height)
# Using FastLineDarkenMOD for line darkening
clip = linedarken.FastLineDarkenMOD(clip, strength=160, luma_cap=200)
from vsrealesrgan import realesrgan as RealESRGAN
# adjusting color space from YUV444P16 to RGBH for vsRealESRGAN
clip = core.resize.Bicubic(clip=clip, format=vs.RGBH, matrix_in_s="709", range_in_s="limited", range_s="full")
# resizing using RealESRGAN
clip = RealESRGAN(clip, model=4, device_index=0, trt=True, trt_cache_dir=r"C:\Users\Peter\AppData\Local\Temp")# 7680x4320
# resizing 7680x4320 to 3840x2160
clip = core.resize.Bicubic(clip=clip, format=vs.RGBS)
clip = core.fmtc.resample(clip, w=3840, h=2160, 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 23.976fps (progressive)
clip = core.std.AssumeFPS(clip=clip, fpsnum=24000, fpsden=1001)
# output
clip.set_output()

7680x4320 => hoffe Du hast genug VRAM

Quote:die Preview funktioniert nicht mehr.
Der Vapoursynth Preview, sollte einen Fehler werfen.
Was sagt er Fehler?

Cu Selur

Ps.: Falls es an akarin liegt, hilft es vielleicht "Filtering->Vapoursynth->Script->Prefer LLVM over akarin" zu aktivieren.
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#3
Die Preview schlägt auch fehl, mit dieser Nachricht:

2025-11-16 10:48:15.133
Failed to evaluate the script:
Python exception: Recalculate: super clip does not contain needed colour data.

Traceback (most recent call last):
File "src/cython/vapoursynth.pyx", line 3378, in vapoursynth._vpy_evaluate
File "src/cython/vapoursynth.pyx", line 3379, in vapoursynth._vpy_evaluate
File "C:\Users\Peter\AppData\Local\Temp\tempPreviewVapoursynthFile10_47_42_455.vpy", line 49, in
clip = smdegrain.SMDegrain(clip, thSADC=150, RefineMotion=True, interlaced=False, plane=0, subpixel=3, overlap=4, blksize=8, thSCD1=400)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Hybrid\64bit\vsscripts\smdegrain.py", line 226, in SMDegrain
vectors = get_motion_vectors(super_search, super_render if RefineMotion else None, search_params, refine_params, tr, interlaced)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Hybrid\64bit\vsscripts\smdegrain.py", line 528, in get_motion_vectors
vectors['bv1'] = core.mv.Recalculate(refine, vectors['bv1'], **refine_params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "src/cython/vapoursynth.pyx", line 3114, in vapoursynth.Function.__call__
vapoursynth.Error: Recalculate: super clip does not contain needed colour data.

Scheint wohl an der SMDegrain-Einstellung zu liegen?
Reply
#4
Ja, liegt an der 'Plane' Einstellung, wenn es auf 'all' steht, geht es.
=> werde den Parameter mal rauswerfen (falls ich es nicht gefixed bekomme), wenn man nur Luma filtern will, kann man Merge->Y:1,U:0,V:0 verwenden.
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#5
Ja, liegt an der 'Plane' Einstellung, wenn es auf 'all' steht, geht es.
=> werde den Parameter mal rauswerfen, wenn man nur Luma filtern will, kann man Merge->Y:1,U:0,V:0 verwenden.
Kann mich aber nicht entsinnen da was geändert zu haben in den letzten Versionen, sprich das Problem sollte schon länger existieren.

Cu Selur

Ps.: scheint die Kombination aus Werten zu sein, nicht unbedingt Plane an sich. (RefineMotion + Plane)

Wenn man in der smdegrain.py
  vectors = get_motion_vectors(super_search, super_render if RefineMotion else None, search_params, refine_params, tr, interlaced)
durch:
    refine_super = None
    if RefineMotion:
        # If Recalculate was created earlier in the function it will be in locals()
        refine_super = Recalculate if 'Recalculate' in locals() else super_render
    vectors = get_motion_vectors(super_search, refine_super, search_params, refine_params, tr, interlaced)
ersetzt geht es.
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#6
Perfekt, es funktioniert! Vielen Dank!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)