Looking at the GPU usage while using DeOldify:
I noticed that the usage is rather 'spikey'.
![[Image: grafik.png]](https://i.ibb.co/Mp5F6cb/grafik.png)
Since the processing is frame-by-frame without taking the neighbors into account I tried the following:
this does seem for me to:
a. speed things up quite a bit
b. smooth the gpu usage
(I only tested this in vsViewer not for acctual encoding)
So general idea is to process two frames at a time by stacking them horizontally and split them after processing.
It might be worth some further testing whether
a. this effect can be produced by others
b. it might be worth adding this as an option to vs-deoldify
=> Can anyone reproduce the effect?
(I only expect this to work for SD content. I expect HD and higher resolutions to be too taxing for this to work.)
Cu Selur
# adding colors using DeOldify
from vsdeoldify import ddeoldify
clip = ddeoldify(clip=clip, model=0, sat=[1.00,1], hue=[0.00,0], chroma_resize=True, color_stabilizer=[False,False,False,11,"center",True])
![[Image: grafik.png]](https://i.ibb.co/Mp5F6cb/grafik.png)
Since the processing is frame-by-frame without taking the neighbors into account I tried the following:
# adding colors using DeOldify
from vsdeoldify import ddeoldify
# split frames and stack them
even = clip[::2] # even frames
odd = clip[1::2] # odd frames
clip = core.std.StackHorizontal([even, odd]) # stack even and odd
clip = ddeoldify(clip=clip, model=0, sat=[1.00,1], hue=[0.00,0], chroma_resize=True, color_stabilizer=[False,False,False,11,"center",True]) # do the processing
# split frames and interleave them again
even = core.std.Crop(clip, left=0, right = clip.width/2)
odd = core.std.Crop(clip, left=clip.width/2, right = 0)
clip = core.std.Interleave([even,odd])
a. speed things up quite a bit
b. smooth the gpu usage
(I only tested this in vsViewer not for acctual encoding)
So general idea is to process two frames at a time by stacking them horizontally and split them after processing.
It might be worth some further testing whether
a. this effect can be produced by others
b. it might be worth adding this as an option to vs-deoldify
=> Can anyone reproduce the effect?
(I only expect this to work for SD content. I expect HD and higher resolutions to be too taxing for this to work.)
Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.