18.09.2024, 18:45
Hello Selur,
I attached the new RC4.
I tried to solve the problem related to the long term memory model used by ColorMNent which is XMem
I found a solution but I had to disable almost totally Vapoursynth, because first I have to color all the frames in python (not using ModifyFrame) and only after this step I can use ModifyFrame that being multi-thread and asynchronous will not allow to use the XMen saving memory capabilities.
So I introduced a new parameter encode_mode:
Also the meaning of parameter max_memory_frames has changed as following:
If is used encode_mode=2 and the clip has more than 200 frams the preview should be disabled because it could take minutes to show (or even hours).
I don't know if you would to support this encode mode in Hybrid.
I attached also a small sample to test the 3 encode mode.
Dan
I attached the new RC4.
I tried to solve the problem related to the long term memory model used by ColorMNent which is XMem
I found a solution but I had to disable almost totally Vapoursynth, because first I have to color all the frames in python (not using ModifyFrame) and only after this step I can use ModifyFrame that being multi-thread and asynchronous will not allow to use the XMen saving memory capabilities.
So I introduced a new parameter encode_mode:
Quote::param encode_mode: Parameter used by ColorMNet to define the encode mode strategy.
Available values are:
0: batch encoding. The frames in the same batch will be encoded syncronously.
1: asyncronous encoding. This is the standard Vapoursynth mode.
2: syncronous encoding. This option will allow to fully use the long term frame memory
and will speed up the encoding. As side effect it will be disabled the Preview.
Also the meaning of parameter max_memory_frames has changed as following:
Quote::param max_memory_frames: Parameter used by ColorMNet model, specify the max number of encoded frames to keep in memory.
Its value depend on encode mode.
encode_mode=0, represent the batch size, suggested value are:
6 or 8 : for 8GB GPU
12 or 14 : for 12GB GPU
24 or 28: for 24GB GPU
encode_mode=1, suggested values are:
4 or 5 : for 8GB GPU
8 or 9 : for 12GB GPU
15 or 16: for 24GB GPU
encode_mode=2, there is no limit to this value, it can be set = 0 (all the frames in the clip)
If is used encode_mode=2 and the clip has more than 200 frams the preview should be disabled because it could take minutes to show (or even hours).
I don't know if you would to support this encode mode in Hybrid.
I attached also a small sample to test the 3 encode mode.
Dan