+ Reply to Thread
Results 1 to 8 of 8

Thread: Stabilize temporal flickering?

  1. #1
    Member
    Join Date
    Jun 2011
    Location
    Germany
    Posts
    8,038

    Stabilize temporal flickering?

    Hi, I'm playing a bit around with vsCodeFormer.
    I start out with suzie_lossless and then apply 'SwinIR-L x4' and vsCodeFormer, which frame-by-frame looks nice (see: SwinIR+CodeFormer_lossless).
    The problem is the temporal instability of the process.

    Anyone got suggestions on how to stabilize this flickering?
    (QTGMC maybe?)

    Cu Selur
    Attached Files
    Last edited by Selur; 21st Jun 2025 at 06:08.
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  

  2. #2
    Member
    Join Date
    Sep 2007
    Location
    Canada
    Posts
    28,719

    Re: Stabilize temporal flickering?

    The temporal aliasing is a common problem with single image algorithms, especially upscaling ones

    The differences in prediction each frame are too large in that example. QTGMC inputtype 1/2/3 can only do so much, and there are usually side effects incl. detail loss, possible ghosting . If you stack some temporal filters to combat the temporal aliasing/inconsistencies , you begin losing too much detail and blurring everything to mush

    Another approach is to pre scale with something temporally consistent. You can experiment BasicVSR++ or Tecogan somewhere in the chain, either before /after codeformer, +/- downscaling

    Here is an experiment with BasicVSR++ 4x => bicubic downscale /2 => GPEN *2 => QTGMCp inputtype=1 , compared to lanczos3 at 1/2 speed. I like the finer hair details improved on BasicVSR++ . I don't like that the BG textures are smoothed away, eye specular reflections are way too enhanced, contrast and saturation changed (in this example, they were crudely matched back) , other small details smoothed away compared to BasicVSR++ alone

    Not a fan overall of the "look" of codeformer , or most "face" upscalers - I find that they change the "facts" and actual details too much. In that codeformer example, the hair (e.g. hair style changes, curls are straighened), eyes (eyes change, look almost transplanted), nose & lip shape change too much

    My cutoff for acceptable tolerance is if the image is "plausible" and similar in underlying structure compared to say a lanczos4x
    Attached Files
    Quote Quote  

  3. #3
    Member
    Join Date
    Jun 2011
    Location
    Germany
    Posts
    8,038

    Re: Stabilize temporal flickering?

    Yeah, BasicVSR++ often simply is too smooth/aggressive and codeFormer for normal content only is useful when the weight is near 1.
    Here's an example of what weight 0 can do: https://imgsli.com/MTY2NDI2 *gig*

    Cu Selur
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  

  4. #4
    Member
    Join Date
    Sep 2007
    Location
    Canada
    Posts
    28,719

    Re: Stabilize temporal flickering?

    What would be ideal is training a model with the same person for inference. e.g. if you were doing a family member or some famous person - train a specific model using other videos of the same family member or famous person . The temporal flicker would still be there for single image algorithms to some extent, but at least the face would match
    Quote Quote  

  5. #5
    Member
    Join Date
    Jun 2011
    Location
    Germany
    Posts
    8,038

    Re: Stabilize temporal flickering?

    For those interested in temporal stabilization, I just stumbled over: https://github.com/pifroggi/vs_temporalfix
    Haven't tested it yet, but I hope for the best.

    Cu Selur
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  

  6. #6
    Member
    Join Date
    Sep 2007
    Location
    Canada
    Posts
    28,719

    Re: Stabilize temporal flickering?

    I just played with it for a bit and vs_temporalfix tends not to do that well on live action content like "suzie's" moving hair and other types of live action where there are moving details . It does better when there are static textures like some types of anime
    Quote Quote  

  7. #7
    Member
    Join Date
    Jun 2011
    Location
    Germany
    Posts
    8,038

    Re: Stabilize temporal flickering?

    Damn, I feared something like that.
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  

  8. #8
    Member
    Join Date
    Jun 2011
    Location
    Germany
    Posts
    8,038

    Re: Stabilize temporal flickering?

    Added another file to the first post.
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  

+ Reply to Thread

Similar Threads

  1. Replies: 8
    Last Post: 16th Feb 2023, 09:08
  2. Struggling to Deflicker/Stabilize
    By stephenjosey in forum Restoration
    Replies: 3
    Last Post: 21st Nov 2022, 09:46
  3. Deshake/Stabilize Suggestions Needed
    By RABinMS in forum Restoration
    Replies: 7
    Last Post: 30th May 2021, 11:26
  4. Remove stabilize from script
    By lordsmurf in forum Restoration
    Replies: 9
    Last Post: 22nd Sep 2020, 00:39
  5. How to stabilize this video?
    By TeNSoR in forum Newbie / General discussions
    Replies: 2
    Last Post: 28th Jul 2020, 05:00

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts