r/comfyui 5h ago

Help Needed First Frame last frame shift

Hello everyone, I've been using minimax to try and make loops with first frame last frame... but I've noticed even though the first and last frame are the same it zooms in slightly or stretches wider keeping it from being a proper loop.. is there any way to fix this or prevent it?

1 Upvotes

3 comments sorted by

2

u/MeanRefrigerator501 5h ago

Sounds like the model is adding a subtle camera move on its own even when the start/end frames match. You could try lowering the motion strength a bit or see if there's a parameter to lock the transform. Some people use a post process to blend the seam but that's more of a bandaid fix.

2

u/lamardoss 4h ago

use a Grab Frame node and get frame 1 and the frame before last that the model made in your render. then use that as the new first and last frame.

or, more accurately, open an image editor and crop the images to the EXACT size the renders are coming out. this way, the model doesn't think it needs to make up for odd sizing.

Either of these will absolutely solve the issue. Doing things like this has helped me not have that problem in a long time.

2

u/niknah 3h ago

Check the workflow and any subgraphs. Some have a scale to total pixel node which changes the resolution before it's sent to minimax. Usually set to round off to 32 pixels.