moim-pose: walk-cycle sprites from one picture

Open source · ComfyUI · Wan 2.2 · FLUX.2 [klein]

moim-pose (formerly marearts-spritestride) turns one side-view picture of a character into a walk cycle: 12 frames that loop, the same person in every frame, checked automatically, with the height and head size locked and a stride that keeps the feet from sliding. It runs on an 8 GB GPU through ComfyUI: a video model draws the whole cycle at once, an image model makes each frame sharp, and every model it uses is Apache-2.0 or MIT.

Rin and Otto, each drawn from one sentence, walking and carrying a box in 12-frame loops
Rin and Otto, each drawn from one sentence: a walk and a walk with a box, 12 frames each, the same person in every frame. The far leg is drawn darker. These are checked drafts: some frames still need a person's look and a redraw, see "It is not 100 %".

Why drawn frames drift

An image model draws each frame on its own. Ask for a walk and the sleeves, the hem and the colours change from frame to frame, a hand appears where none can be, and very often the character walks "on the same foot". That last one has a simple cause: seen from the side, the two legs of a pose skeleton lie on one line, so the model cannot tell which leg is in front.

Two pose skeletons half a step apart look almost the same; two depth mannequins clearly show the near leg in front, then behind
Left: the skeleton at two steps half a cycle apart — almost the same shape, only the colours swap. Right: the depth mannequin at the same two steps. Near limbs are bright, far ones dark, and the model follows it.

How it works

ProblemWhat moim-pose does
The character changes between frames (sleeves, hem, pockets)The cycle is drawn as one video (Wan 2.2 Fun Control 14B over the depth mannequins), so each frame follows the one before. It is drawn twice: the second time from the video's own first frame made sharp, and every frame is made sharp from that frame, not from the standing picture
Walking on the same footA depth mannequin instead of a skeleton, and in the finished frames the far leg drawn darker, as sprite artists do
A third hand or foot now and then, a hand lost, or arms that stand still while the legs walkEach frame is told where its arms are. Measured checks against the mannequin, and an optional vision-model judge: it draws a box around each hand and counts the boxes, says yes or no where the mannequin has a hand, and counts the shoes. A lost hand is drawn again in its place only, a hand too many is drawn over, the rest of the frame stays
The coat ends at the hip at the backThe mannequin's seat covers the top of the near thigh, so the model does not read trousers where a coat hangs
The face turns to the viewer and becomes someone elseThe mannequin's head has a nose, the face in profile; with the judge each head is compared with the picture's and another person is drawn again
Height and head size wobble, the figure wandersA lock: one master frame sets head and floor, the height follows the walk's own smooth wave, the legs are laid on the mannequin's
The sprite skates in a game, or the arms move in jumpsThe standing leg is solved so the planted foot goes back the same distance at even time steps, and each arm swings on one smooth wave; that distance is in the JSON

It is not 100 %

The checks catch a lot, not everything. In 0.3.0 the 48 example frames are drawn as videos: 73 % passed the automatic checks at the first try and the rest by the sixth; ten had a hand the video lost drawn again in its place. One frame in each cycle still leads with a faint leg, marked in the review sheet. A person still finds something: in one review of 12 walk cycles, 4 passed at first look. The others had a leg or a hand drawn oddly, a hat or a pocket that changed, or a mouth open. A leg the model drew on the wrong side of its mannequin is not caught automatically yet: the far leg is darkened from the mannequin, so a cycle drawn right reads left-right, and one drawn wrong still needs your eye.

So you get drafts that are checked, not finished art. Every cycle comes with a review sheet: each frame with its number, seed and what was measured, the failed ones boxed in red. Draw the frames you do not like again by number. They get seeds they have not had before. Most fixes that stick are words: name the piece that changed in --look.

Get it

The five ComfyUI workflows are free under Apache-2.0 on MareArts Open Lab: download one and drag it into ComfyUI, and it opens with every node in place.

Get the three workflows on MareArts Open Lab (free sign-up)

The Python package that makes the depth mannequins, runs the checks and the lock, and writes the sprite sheets is on GitHub:

pip install git+https://github.com/MareArts/marearts-moim-pose

# no picture yet? candidates from words
moim-pose person --out people/rin --look "a young woman with a short black bob, a yellow raincoat, dark jeans, red sneakers"

# a walk, then the same character carrying a box
moim-pose draw people/rin/person_7.png --out out/rin --gait lively --look "..."
moim-pose draw people/rin/person_7.png --out out/rin --kind carry --look "..."

# look at out/rin/walk_review.png, then draw frames 3 and 7 again (or go back to an earlier seed)
moim-pose draw people/rin/person_7.png --out out/rin --only 3 7
moim-pose draw people/rin/person_7.png --out out/rin --only 3 --use-seed 7

You need ComfyUI (0.4x, its own nodes only) with FLUX.2 [klein] 4B fp8, its Qwen 3 4B text encoder and VAE, the RefControl depth LoRA for klein 4B, BiRefNet, and for the video Wan 2.2 Fun Control 14B (fp8, with the lightx2v 4-step LoRAs, the UMT5 text encoder and the Wan 2.1 VAE, about 30 GB); the GitHub README lists where each comes from and its licence. A cycle of 12 takes about 20 minutes on an 8 GB card. The judge is optional: Qwen3.5-9B through transformers, or any vision model behind an OpenAI-compatible server.

What we made with it

The people in Moim, our next app, walk and carry boxes drawn this way, one character after another. More about Moim soon.

moim-pose 0.3.0 (formerly marearts-spritestride) · Apache License 2.0 · measured on an RTX 2080 Super (8 GB) with ComfyUI 0.4x. FLUX.2 is a trademark of Black Forest Labs; ComfyUI, Wan, Qwen and BiRefNet belong to their owners. · Pictures by MareArts: every picture here was drawn with the tool itself.