06.04.2024, 08:20
I'll look at it later.
Side note: you might want to thing about using semantic versioning (MAJOR.MINOR.PATCH) for projects which have a public interface/api.
Cu Selur
ddtweak_p: list = [0.0, 1.0, 2.5, True, 0.2, 0.5, 1.5, 0.5, "70:90,300:360|0.2,0"]
ddtweak_p: list = [0.0, 1.0, 2.5, True, 0.3, 0.6, 0.7, 0.5]
(10.04.2024, 05:45)Selur Wrote: [ -> ]new:
old:Code:ddtweak_p: list = [0.0, 1.0, 2.5, True, 0.2, 0.5, 1.5, 0.5, "70:90,300:360|0.2,0"]
=> Your changelog should mention that you changed the default values for other ddtweak_p-parameters.Code:ddtweak_p: list = [0.0, 1.0, 2.5, True, 0.3, 0.6, 0.7, 0.5]
Quote:Could you fix this issue ?There is nothing to fix. That is a text field, Hybrid does no validation for it.
# adding colors using DeOldify
from vsdeoldify import ddeoldify
clip = ddeoldify(clip=clip, mweight=0.51, deoldify_p=[0, 25, 0.99, 0.01], ddcolor_p=[1, 25, 0.99, 0.01, True], ddtweak=True, ddtweak_p=[0.0, 1.0, 2.5, True, 0.1, 0.5, 1.5, 0.5, "70:90,300:360|0.2,0"])
from vsdeoldify import ddeoldify_stabilizer
clip = ddeoldify_stabilizer(clip=clip, dark=True, dark_p=[0.3, 0.9, "0:20"], smooth=True, smooth_p=[0.2, 0.7, 0.9, 0.05, "none"], stab=True, stab_p=[5, 'A', 1, 15, 0.3, 0.15, "290:360|0.4,0.2"], render_factor=25)
Error on frame 0 request:
Traceback (most recent call last):
File "src\cython\vapoursynth.pyx", line 2941, in vapoursynth.publicFunction
File "src\cython\vapoursynth.pyx", line 2943, in vapoursynth.publicFunction
File "src\cython\vapoursynth.pyx", line 683, in vapoursynth.FuncData.__call__
File "F:\Hybrid\64bit\Vapoursynth\Lib\site-packages\torch\utils\_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "F:\Hybrid\64bit\Vapoursynth\Lib\site-packages\vsddcolor\__init__.py", line 94, in inference
output_ab = module(img_gray_rgb)
^^^^^^^^^^^^^^^^^^^^
File "F:\Hybrid\64bit\Vapoursynth\Lib\site-packages\torch\nn\modules\module.py", line 1518, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\Hybrid\64bit\Vapoursynth\Lib\site-packages\torch\nn\modules\module.py", line 1527, in _call_impl
return forward_call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\Hybrid\64bit\Vapoursynth\Lib\site-packages\vsddcolor\ddcolor_arch.py", line 59, in forward
out_feat = self.decoder()
^^^^^^^^^^^^^^
File "F:\Hybrid\64bit\Vapoursynth\Lib\site-packages\torch\nn\modules\module.py", line 1518, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\Hybrid\64bit\Vapoursynth\Lib\site-packages\torch\nn\modules\module.py", line 1527, in _call_impl
return forward_call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\Hybrid\64bit\Vapoursynth\Lib\site-packages\vsddcolor\ddcolor_arch.py", line 107, in forward
out0 = self.layers[0](encode_feat)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\Hybrid\64bit\Vapoursynth\Lib\site-packages\torch\nn\modules\module.py", line 1518, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\Hybrid\64bit\Vapoursynth\Lib\site-packages\torch\nn\modules\module.py", line 1527, in _call_impl
return forward_call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\Hybrid\64bit\Vapoursynth\Lib\site-packages\vsddcolor\ddcolor_arch_utils\unet.py", line 207, in forward
cat_x = self.relu(torch.cat([up_out, self.bn(s)], dim=1))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Sizes of tensors must match except in dimension 1. Expected size 24 but got size 25 for tensor number 1 in the list.