This is a motion transfer with tweaks to optimize looping videos. To use it, make the first frame, last frame, and reference frame the same image. Adjust the prompt as necessary. The closer the frame is to the the first frame of the reference video, the better the results will be. To get the first frame close to the to the first frame of the reference video, I also use the Reference Image Redraw workflow that is also on my profile. It may take iterations to get the first frame correct. You may need to generate something bad that at least maintains the pose, and then load that generation back in and redraw again until the pose is close enough. The loop may not be perfect the first time, but as long as it's close, if you run it a few times you should get a good one.