Generate clean 2D game sprites & animation atlases — component-row pipeline: state rows, alpha cleanup, frame extraction, runtime atlases. Codex/Claude skill.
test(rife): three public loop cuts are the default interpolator's regression set, filled 24 -> 60 fps through the binary and the torch backend
Soohong Kimd279d02a2e7c
diff --git a/tests/fixtures/rife-cuts/cuts.json b/tests/fixtures/rife-cuts/cuts.jsonnew file mode 100644index 0000000..2e90631--- /dev/null+++ b/tests/fixtures/rife-cuts/cuts.json@@ -0,0 +1,894 @@+{+ "about": "tests/fixtures/rife-cuts: the three public regression cuts' frames (lossless WebP, exact), each frame's RGBA sha256,\nand what was measured on them (3.14.0's judge, held_fill.upsample 24 -> 60 fps): rife-v4.6 -x -z (nihui 20221029, the\nTNTwise 20250112 binary giving the same bytes), rife-v4.25 through the TNTwise binary each image padded to 128 (Apple\nM4 Max GPU), and Practical-RIFE 4.25 in PyTorch (flownet.pkl, padded to 128, Apple GPU); and the drag keys with the keys\nrife-v4.6's frame was caught at by the feet windows, dragged 2 px sideways (h2) and 2 px up (v2).",+ "cuts": {+ "knight-walk": {+ "clip": "spritegen-app landing sample knight/side-walk/clip.mp4, keyed by video-frames 3.14.0 (--spill auto --reference canvas.png), keyed frames 8..33 (0-based), cropped to the figure's union box and 8 px",+ "ring": true,+ "size": [+ 562,+ 780+ ],+ "sha256": [+ "684f21c1168b9e747a43fcd65e959061cca32d92fc7358cdae8f343be85f05c2",+ "a0577ea000a0ec62119e3a17637ba5e9397fa18ed21d5f350dedf679c4ebcd92",+ "1b7d3b6998c8bc175e07c5260d7445758bdc96b1b6d839a051ab86d9403b8de8",+ "ae867718b5fea348785c59abdbc72301743832674cbb8434f04527d536da3882",+ "88506568a521e60ac145a6a67dc75e5855c126785b051bd9f0a28a787776d2ad",+ "7438c1b0534cac3fc5e9c75b710edc319bee5f4f68d5045a3c219f4ace1001f0",+ "4468397977673f325b084c07c4473363671ce3550dd72fc032c041a6d2c4748a",+ "0bdc9d90bbc75613fd2f35874dd044799cb840ff500f2ae899419cb24af57705",+ "eeed90297533092cfe61eb5bcab974dfc62f43493d11d95ab18ac39b0b29f902",+ "dfcc0307ccbe70406aa9bd0ddc3f3a52b2a12d96c0cb9ce990dabce0cacca83f",+ "df8eb85847a1892afe959d5ebbe8a3164b6678e7f57a435b29bf1980789c4d5a",+ "611aecb7b679b58c7d44209e3f6ee56e7ef28005109782b56d5cd13f1d1c472e",+ "e6fe5f938843eec1ad7d37031b53473e3d2fd512c440a28d58a36b3b3980a073",+ "897e2f12f6fd2cbcb6af4f8d969e66b3edea966c92a82e4de62f62e5f93e453b",+ "1694591b65310da7c4325f73b53d8a98049f16bcfc0a317b30a7998d83a51b12",+ "d67ea2d35a168028ef491ab5eb7cfd6c0dd4ebd6cfa032769eae77e11223846b",+ "de5b6018806acbe275e7badc44d62ffc93e181569ffae39953b2075b1a0383a2",+ "11bc11b6a84476742874ac5af543190d42d2681d10d461769d7d8d5aa3bab170",+ "14a0b6b9d2900c54cf2c0d1e0a5a323300f3361110e6f2115cff1ca3cbb380b0",+ "f30a6fced5499055a1253ad1077c3d629bc73b8f8aecb229f0049cbfe07cca1e",+ "e854cfe0def2c3f6d27f79e0d711f590eb59b10686db9f2eb153204d480d1865",+ "e0b05f4138b2996e7ed4bc65b33b36c738251f55141068f88a91f6d538169dd3",+ "cfc564040e80230b8b14cf263a271e0d50bd0bdc2530da5e069bbabbaf803cc0",+ "ee2cab81be3fd415e126bad3856ed659ad7772bb41d36378c03f5e0f5ab43fb8",+ "6cd3f053acd3dc834e1be4af20ac23206205cec393ac30b9bc45b1d7b9ecdb69",+ "5dde16bfb107b69c1edd39d32361930e6d8afb8a81c769998f09aedf60746df5"+ ],+ "measured": {+ "rife-v4.6": {+ "poses": 42,+ "cells": 65,+ "taken": [+ 2,+ 4,+ 6,+ 12,+ 14,+ 24,+ 32,+ 34,+ 36,+ 41,+ 44,+ 46,+ 47,+ 54,+ 62,+ 63,+ 64+ ]+ },+ "rife-v4.25": {+ "poses": 40,+ "cells": 65,+ "taken": [+ 4,+ 12,+ 14,+ 24,+ 31,+ 32,+ 41,+ 44,+ 46,+ 47,+ 52,+ 54,+ 62,+ 63,+ 64+ ]+ },+ "rife-v4.25-torch": {+ "poses": 41,+ "cells": 65,+ "taken": [+ 4,+ 6,+ 12,+ 14,+ 24,+ 31,+ 32,+ 41,+ 44,+ 46,+ 47,+ 52,+ 54,+ 62,+ 63,+ 64+ ]+ }+ },+ "drag": {+ "keys": [+ "01-02-0.200000",+ "01-02-0.250000",+ "01-02-0.300000",+ "01-02-0.350000",+ "01-02-0.500000",+ "01-02-0.550000",+ "01-02-0.600000",+ "03-04-0.200000",+ "03-04-0.250000",+ "03-04-0.300000",+ "03-04-0.350000",+ "03-04-0.400000",+ "03-04-0.550000",+ "03-04-0.600000",+ "05-06-0.200000",+ "05-06-0.250000",+ "05-06-0.300000",+ "05-06-0.350000",+ "05-06-0.400000",+ "05-06-0.500000",+ "05-06-0.550000",+ "05-06-0.600000",+ "07-08-0.200000",+ "07-08-0.250000",+ "07-08-0.300000",+ "07-08-0.350000",+ "07-08-0.400000",+ "07-08-0.450000",+ "07-08-0.500000",+ "07-08-0.550000",+ "07-08-0.600000",+ "09-10-0.200000",+ "09-10-0.250000",+ "09-10-0.300000",+ "09-10-0.350000",+ "09-10-0.500000",+ "09-10-0.550000",+ "09-10-0.600000",+ "11-12-0.200000",+ "11-12-0.250000",+ "11-12-0.300000",+ "11-12-0.350000",+ "11-12-0.550000",+ "11-12-0.600000",+ "13-14-0.200000",+ "13-14-0.250000",+ "13-14-0.300000",+ "13-14-0.350000",+ "13-14-0.450000",+ "13-14-0.500000",+ "13-14-0.550000",+ "13-14-0.600000",+ "15-16-0.200000",+ "15-16-0.250000",+ "15-16-0.300000",+ "15-16-0.350000",+ "15-16-0.550000",+ "15-16-0.600000",+ "17-18-0.200000",+ "17-18-0.250000",+ "17-18-0.300000",+ "17-18-0.350000",+ "17-18-0.500000",+ "17-18-0.550000",+ "17-18-0.600000",+ "19-20-0.200000",+ "19-20-0.250000",+ "19-20-0.300000",+ "19-20-0.350000",+ "19-20-0.450000",+ "19-20-0.500000",+ "19-20-0.550000",+ "19-20-0.600000",+ "21-22-0.200000",+ "21-22-0.250000",+ "21-22-0.300000",+ "21-22-0.350000",+ "21-22-0.500000",+ "21-22-0.550000",+ "21-22-0.600000",+ "23-24-0.200000",+ "23-24-0.250000",+ "23-24-0.300000",+ "23-24-0.350000",+ "23-24-0.550000",+ "23-24-0.600000",+ "25-00-0.200000",+ "25-00-0.600000"+ ],+ "caught_by_rife_v4_6": {+ "h2": [+ "07-08-0.200000",+ "07-08-0.250000",+ "07-08-0.300000",+ "07-08-0.350000",+ "07-08-0.400000",+ "07-08-0.450000",+ "07-08-0.500000",+ "07-08-0.550000",+ "07-08-0.600000",+ "09-10-0.200000",+ "09-10-0.250000",+ "09-10-0.300000",+ "09-10-0.350000",+ "09-10-0.500000",+ "09-10-0.550000",+ "09-10-0.600000",+ "11-12-0.200000",+ "11-12-0.250000",+ "11-12-0.300000",+ "11-12-0.350000",+ "11-12-0.550000",+ "11-12-0.600000",+ "19-20-0.200000",+ "19-20-0.250000",+ "19-20-0.300000",+ "19-20-0.350000",+ "19-20-0.450000",+ "19-20-0.500000",+ "19-20-0.550000",+ "19-20-0.600000",+ "21-22-0.200000",+ "21-22-0.250000",+ "21-22-0.300000",+ "21-22-0.350000",+ "21-22-0.500000",+ "21-22-0.550000",+ "21-22-0.600000",+ "23-24-0.200000",+ "23-24-0.250000",+ "23-24-0.300000",+ "23-24-0.350000",+ "23-24-0.550000",+ "23-24-0.600000"+ ],+ "v2": [+ "01-02-0.200000",+ "01-02-0.250000",+ "01-02-0.300000",+ "01-02-0.350000",+ "01-02-0.500000",+ "01-02-0.550000",+ "01-02-0.600000",+ "03-04-0.200000",+ "03-04-0.250000",+ "03-04-0.300000",+ "03-04-0.350000",+ "03-04-0.400000",+ "03-04-0.550000",+ "03-04-0.600000",+ "05-06-0.200000",+ "05-06-0.250000",+ "05-06-0.300000",+ "05-06-0.350000",+ "05-06-0.400000",+ "07-08-0.200000",+ "07-08-0.250000",+ "07-08-0.300000",+ "07-08-0.350000",+ "07-08-0.400000",+ "07-08-0.450000",+ "07-08-0.500000",+ "07-08-0.550000",+ "07-08-0.600000",+ "09-10-0.200000",+ "09-10-0.250000",+ "09-10-0.300000",+ "09-10-0.350000",+ "09-10-0.500000",+ "09-10-0.550000",+ "09-10-0.600000",+ "13-14-0.200000",+ "13-14-0.250000",+ "13-14-0.300000",+ "13-14-0.350000",+ "13-14-0.450000",+ "13-14-0.500000",+ "13-14-0.550000",+ "13-14-0.600000",+ "15-16-0.200000",+ "15-16-0.250000",+ "15-16-0.300000",+ "15-16-0.350000",+ "15-16-0.550000",+ "15-16-0.600000",+ "17-18-0.200000",+ "17-18-0.250000",+ "17-18-0.300000",+ "17-18-0.350000",+ "17-18-0.500000",+ "17-18-0.550000",+ "17-18-0.600000",+ "19-20-0.200000",+ "19-20-0.250000",+ "19-20-0.300000",+ "19-20-0.350000",+ "19-20-0.450000",+ "19-20-0.500000",+ "19-20-0.550000",+ "19-20-0.600000",+ "21-22-0.200000",+ "21-22-0.250000",+ "21-22-0.300000",+ "21-22-0.350000",+ "21-22-0.500000",+ "21-22-0.550000",+ "21-22-0.600000",+ "23-24-0.200000",+ "23-24-0.250000",+ "23-24-0.300000",+ "23-24-0.350000",+ "23-24-0.550000",+ "23-24-0.600000"+ ]+ }+ }+ },+ "pip-run": {+ "clip": "spritegen-app landing sample pip/side-run/clip.mp4, keyed by video-frames 3.14.0 (--spill auto --reference canvas.png), keyed frames 21..46 (0-based), cropped to the figure's union box and 8 px",+ "ring": true,+ "size": [+ 548,+ 752+ ],+ "sha256": [+ "c70d1ddb3fede72557c2c9a0748db2faf1dbe5994f31c8e32b526fb3ecc99a1a",+ "dad1b55e35f124456abd8d82f55b6f8fa8f5cbfceeede24edbd60f1e5acc32c7",+ "71b2a102ccbba14d38e83273e1de2a0933a8ff2e6a9c04e8b33869fc86c3b23f",+ "0baca0d28b289e9fa1eb517e520156773d343d11d687e69a542798bbc2739d0d",+ "d2371fbeafd54ddf930437c19f1c49c0c21c6618c49e9a50d541aa83947f18f0",+ "4ff369c1977d6339a9d11166d81a5ad864f503f451b36d3f55640c3243bbf16e",+ "8b2c64e5f64ff6f72ceb957cc92168cafc2ad76d5cd6e8a779305072f5d215f4",+ "a5796e30991951147ae3fdb034c14a1fb3b7965fb795b06a56a6fe66d503090e",+ "3e17ebf7c7ea35f337a8303ca534bdd88b0c08643061552ca627a1497cd66128",+ "fc0c71a398123cb2f21ec577308cbef79813b92a600855b3b126f63bb64a4fd6",+ "6fca55e332fea35f30b0cbd9d5ee521da0acd4678129a3b093739fb1d040ba46",+ "29dcd8ab36474ea112f1a99712e8d1643ea7b1115eb272b7ab1b09be85e1c974",+ "7c608a9833fa7d242a3d43491488d8545ab31422b43568a26fb151334d4a17c3",+ "6ac7da5f508789a64daede20ea507fe9f371e8c643fff44c8a8b225495277d17",+ "f6114c709b918f7d21e7ad05688aa8b20d96f6048e324b57ba6f7bb9a093f518",+ "91f8e0ea805a3216187122a8299a72867a463855b8bc6671e8abfe7a1a292a90",+ "cd6420cf69c065999e8fd1cbb4234580dfb4238e9ed5ab1a317fb2115efaca22",+ "8df73b5a20510aa854e0bbbb795f670ec62e4d8bb1e431a48b75578c9801fed5",+ "713aa8e4d4c470719b3c79b00db22197a8a5a726de8d9bee63c868d11efe6c9e",+ "158442e537acd91907ad731cde5a4c343fc0a2764805271943528a6a4dea03e0",+ "90ff2cc5e253f7c445f4b9b76d76a13174e786955cf068a12727d17551a5b9de",+ "5c0eeffcfe978f1b8a72296d02d490182d8984f4fefcdda0f4701ddf2e83d64e",+ "c63467fbf45b38d96505d3bd5c0a1951728a670a29aec80a3cc9350921b5cca9",+ "02322ff84b7d6fcc1b57672ed81aaf8202c26213e620acae4bf7372c6feefc59",+ "4ff14b39f468dc55082f4f31e972ca84746c3a2913590463e84d932ac96df44f",+ "671a845c537fbab4d35856c94f4ea3fbfe79dcb8fe820ad7e5a4b288f6d55fba"+ ],+ "measured": {+ "rife-v4.6": {+ "poses": 40,+ "cells": 65,+ "taken": [+ 1,+ 2,+ 3,+ 12,+ 13,+ 17,+ 18,+ 23,+ 31,+ 32,+ 33,+ 37,+ 38,+ 46,+ 47,+ 48,+ 56,+ 61,+ 63,+ 64+ ]+ },+ "rife-v4.25": {+ "poses": 39,+ "cells": 65,+ "taken": [+ 1,+ 2,+ 3,+ 12,+ 17,+ 18,+ 31,+ 32,+ 33,+ 37,+ 38,+ 46,+ 47,+ 48,+ 56,+ 61,+ 62,+ 63,+ 64+ ]+ },+ "rife-v4.25-torch": {+ "poses": 39,+ "cells": 65,+ "taken": [+ 1,+ 2,+ 3,+ 12,+ 17,+ 18,+ 31,+ 32,+ 33,+ 37,+ 38,+ 46,+ 47,+ 48,+ 56,+ 61,+ 62,+ 63,+ 64+ ]+ }+ },+ "drag": {+ "keys": [],+ "caught_by_rife_v4_6": {+ "h2": [],+ "v2": []+ }+ }+ },+ "pip-jump": {+ "clip": "spritegen-app landing sample pip-idle/side-jump/clip.mp4, keyed by video-frames 3.14.0 (--spill auto --reference canvas.png), keyed frames 16..44 (0-based), cropped to the figure's union box and 8 px",+ "ring": true,+ "size": [+ 400,+ 771+ ],+ "sha256": [+ "9735339c5a25b9b717ece6f68b1d451a051802534967f929cb90a1bac98ef989",+ "840129a6cc57ab447c08a756fed081a3ebba5823a3a60ef6aed7d45ee908461e",+ "c8474f6b68101dc8e6cdc5f6ef18315fe583324355976cf4829e72adb58d8e78",+ "5e9a46a384f6fb8c357f4e7293bcba84c6538f8d0a89c6bd5f72b770a6630f5f",+ "7e392a23317cf89c382c7c55cbfb7718fd89405dccc7a9fa0447a1575d2e0868",+ "bd449173954aef4103078746baa99e2911e0d98028c94796007318b8c23feeef",+ "b3ecf6bf410517cf2c7dac6deb15dd5f26b74f5f20c7fc981ed10df4907f5433",+ "d9fd94bf646314586b7eaa13b7a55d8508527e77ea76ccf04934fbc29e1c2b94",+ "cb0ba955749d5123f0cb2793f3c152b53c0eb40d0a95e81844509bb03657d7fe",+ "83427545e01cc2c3e05ebb2de63bb8b01f45eda5b9105d28438a0a58f1f78f4b",+ "f52c688ae4e3e87fac92a363da5e4c026e2d8b91188c44a3141f9007dde06f1a",+ "961e4a098fecb25bd3077bd3f755a54b23de82e5380014c3f2ff11a0ff9790f8",+ "7e3f1e4d3c3c8f136d43fc2c4964f3d0eca82e099779634e68f215442d6fbc91",+ "3233eccde652fff67da5167fc91a7392552e113ac8349bcd56f99af82bf2576e",+ "7817cd60042a3f7a035670c99b37a38729c5ae92e9660654d082cb944453ea49",+ "ff9994e3e994466c1b2173cb41a3dae4d8b59256102031fbc06ad945b6b327f6",+ "d11ea17389ade4f853095f8fc0bb3e04ccaab4eadc44113e0f6b5784e71d1b66",+ "81290f8d0a85d166428b554f5221b4b73c5d679370b46d2f318fab088e9e234c",+ "a6d3fdc9fbf0cc45b4c62313765cff6ae15a93fbe968cbe875cd44584f7ca604",+ "015ec452a7e9bcb22c663217760d7ab2625997ca0074771ff2356d10eb15eb0b",+ "38ce331f1a38746e207125ea33b4f9a9050d29a857283aab3b8411a0160434d4",+ "a0886f7c3654cfe07d5d583592b33baebf00d987cbcfff1434d7dd5ffcf5ea78",+ "f1d236806421f103526554c6a8d7a61bcf05b9bc15f5462aecd1ab44d8fda424",+ "a21b27f546a4ffdc0b6138eb558e52e1dbac792f607f7957c7da4963d7eac824",+ "05db99fa67ab3439b8c65d0a6d21eab2522486831cd425b96421fd4e07487479",+ "3ee80cac5ac0188c58c11051997b77bddbf2396cb6c71781520f58e1106906d5",+ "cd55d25a01a13423574ce50942e99ee706dc4272dcba64cdfac8673c7788312b",+ "cda96bb1429b5159dba8e511e54edf728909cc0422d1f785ec95b7332e576368",+ "6ec2d295569f4674371b9f4bc623f15ca1b9f94dfcea0027ca80b4905ce42483"+ ],+ "measured": {+ "rife-v4.6": {+ "poses": 67,+ "cells": 72,+ "taken": [+ 3,+ 4,+ 7,+ 8,+ 9,+ 11,+ 12,+ 13,+ 14,+ 17,+ 20,+ 21,+ 22,+ 25,+ 26,+ 27,+ 28,+ 29,+ 30,+ 31,+ 32,+ 33,+ 34,+ 36,+ 37,+ 38,+ 39,+ 40,+ 41,+ 42,+ 43,+ 44,+ 45,+ 46,+ 47,+ 48,+ 49,+ 50,+ 51,+ 52,+ 53,+ 54,+ 55,+ 57,+ 58,+ 59,+ 60,+ 65,+ 66,+ 68,+ 70,+ 71+ ]+ },+ "rife-v4.25": {+ "poses": 67,+ "cells": 72,+ "taken": [+ 2,+ 3,+ 4,+ 7,+ 8,+ 9,+ 11,+ 12,+ 13,+ 14,+ 20,+ 21,+ 22,+ 25,+ 26,+ 27,+ 28,+ 29,+ 30,+ 31,+ 32,+ 33,+ 34,+ 35,+ 37,+ 38,+ 39,+ 40,+ 41,+ 42,+ 43,+ 44,+ 45,+ 46,+ 47,+ 48,+ 49,+ 50,+ 51,+ 52,+ 53,+ 54,+ 55,+ 56,+ 57,+ 58,+ 59,+ 63,+ 65,+ 66,+ 68,+ 70,+ 71+ ]+ },+ "rife-v4.25-torch": {+ "poses": 67,+ "cells": 72,+ "taken": [+ 2,+ 3,+ 4,+ 7,+ 8,+ 9,+ 11,+ 12,+ 13,+ 14,+ 20,+ 21,+ 22,+ 25,+ 26,+ 27,+ 28,+ 29,+ 30,+ 31,+ 32,+ 33,+ 34,+ 35,+ 37,+ 38,+ 39,+ 40,+ 41,+ 42,+ 43,+ 44,+ 45,+ 46,+ 47,+ 48,+ 49,+ 50,+ 51,+ 52,+ 53,+ 54,+ 55,+ 56,+ 57,+ 58,+ 59,+ 63,+ 65,+ 66,+ 68,+ 70,+ 71+ ]+ }+ },+ "drag": {+ "keys": [+ "03-04-0.222222",+ "03-04-0.550000",+ "03-04-0.600000",+ "03-04-0.625000",+ "03-04-0.650000",+ "11-12-0.277778",+ "11-12-0.680556",+ "12-13-0.083333",+ "12-13-0.150000",+ "12-13-0.200000",+ "12-13-0.350000",+ "12-13-0.400000",+ "12-13-0.450000",+ "12-13-0.486111",+ "12-13-0.500000",+ "12-13-0.550000",+ "12-13-0.600000",+ "12-13-0.888889",+ "13-14-0.150000",+ "13-14-0.200000",+ "13-14-0.250000",+ "13-14-0.291667",+ "13-14-0.300000",+ "13-14-0.350000",+ "13-14-0.400000",+ "13-14-0.550000",+ "13-14-0.600000",+ "13-14-0.650000",+ "13-14-0.694444",+ "13-14-0.700000",+ "13-14-0.750000",+ "13-14-0.800000",+ "13-14-0.850000",+ "14-15-0.097222",+ "14-15-0.150000",+ "14-15-0.200000",+ "14-15-0.250000",+ "14-15-0.350000",+ "14-15-0.400000",+ "14-15-0.450000",+ "14-15-0.500000",+ "14-15-0.550000",+ "14-15-0.600000",+ "14-15-0.650000",+ "14-15-0.850000",+ "14-15-0.902778",+ "15-16-0.305556",+ "15-16-0.708333",+ "16-17-0.111111",+ "16-17-0.150000",+ "16-17-0.513889",+ "16-17-0.850000",+ "16-17-0.916667",+ "17-18-0.300000",+ "17-18-0.319444",+ "17-18-0.722222",+ "18-19-0.125000",+ "18-19-0.150000",+ "18-19-0.527778",+ "18-19-0.850000",+ "18-19-0.930556",+ "19-20-0.333333",+ "19-20-0.736111",+ "20-21-0.138889",+ "20-21-0.541667",+ "20-21-0.800000",+ "20-21-0.850000",+ "20-21-0.944444",+ "21-22-0.300000",+ "21-22-0.347222",+ "21-22-0.350000",+ "21-22-0.600000",+ "21-22-0.650000",+ "21-22-0.700000",+ "21-22-0.750000",+ "21-22-0.800000",+ "21-22-0.850000",+ "22-23-0.152778",+ "22-23-0.400000",+ "22-23-0.450000",+ "22-23-0.500000",+ "22-23-0.550000",+ "22-23-0.555556",+ "22-23-0.600000",+ "22-23-0.650000",+ "22-23-0.700000",+ "22-23-0.750000",+ "22-23-0.850000",+ "22-23-0.958333",+ "23-24-0.361111",+ "23-24-0.763889"+ ],+ "caught_by_rife_v4_6": {+ "h2": [+ "11-12-0.277778",+ "11-12-0.680556",+ "12-13-0.083333",+ "12-13-0.150000",+ "12-13-0.200000",+ "12-13-0.350000",+ "12-13-0.400000",+ "12-13-0.450000",+ "12-13-0.486111",+ "12-13-0.500000",+ "12-13-0.550000",+ "12-13-0.600000",+ "12-13-0.888889",+ "13-14-0.150000",+ "13-14-0.200000",+ "13-14-0.250000",+ "13-14-0.291667",+ "13-14-0.300000",+ "13-14-0.350000",+ "13-14-0.400000",+ "13-14-0.550000",+ "13-14-0.600000",+ "13-14-0.650000",+ "13-14-0.694444",+ "13-14-0.700000",+ "13-14-0.750000",+ "13-14-0.800000",+ "13-14-0.850000",+ "14-15-0.097222",+ "14-15-0.150000",+ "14-15-0.200000",+ "14-15-0.250000",+ "14-15-0.350000",+ "14-15-0.400000",+ "14-15-0.450000",+ "14-15-0.500000",+ "14-15-0.550000",+ "14-15-0.600000",+ "14-15-0.650000",+ "14-15-0.850000",+ "14-15-0.902778",+ "15-16-0.305556",+ "15-16-0.708333",+ "16-17-0.111111",+ "16-17-0.150000",+ "16-17-0.513889",+ "16-17-0.850000",+ "16-17-0.916667",+ "17-18-0.300000",+ "17-18-0.319444",+ "17-18-0.722222",+ "18-19-0.125000",+ "18-19-0.150000",+ "18-19-0.527778",+ "18-19-0.850000",+ "18-19-0.930556",+ "19-20-0.333333",+ "19-20-0.736111",+ "20-21-0.138889",+ "20-21-0.541667",+ "20-21-0.800000",+ "20-21-0.850000",+ "20-21-0.944444",+ "21-22-0.300000",+ "21-22-0.347222",+ "21-22-0.350000",+ "21-22-0.600000",+ "21-22-0.650000",+ "21-22-0.700000",+ "21-22-0.750000",+ "21-22-0.800000",+ "21-22-0.850000",+ "22-23-0.152778",+ "22-23-0.400000",+ "22-23-0.450000",+ "22-23-0.500000",+ "22-23-0.550000",+ "22-23-0.555556",+ "22-23-0.600000",+ "22-23-0.650000",+ "22-23-0.700000",+ "22-23-0.750000",+ "22-23-0.850000",+ "22-23-0.958333",+ "23-24-0.361111",+ "23-24-0.763889"+ ],+ "v2": [+ "03-04-0.550000",+ "03-04-0.600000",+ "03-04-0.625000",+ "03-04-0.650000",+ "11-12-0.277778",+ "13-14-0.150000",+ "13-14-0.200000",+ "13-14-0.250000",+ "13-14-0.291667",+ "13-14-0.300000",+ "13-14-0.350000",+ "13-14-0.400000",+ "13-14-0.550000",+ "13-14-0.600000",+ "13-14-0.650000",+ "13-14-0.694444",+ "13-14-0.700000",+ "13-14-0.750000",+ "13-14-0.800000",+ "13-14-0.850000",+ "16-17-0.111111",+ "16-17-0.150000",+ "16-17-0.513889",+ "16-17-0.850000",+ "16-17-0.916667",+ "17-18-0.300000",+ "17-18-0.319444",+ "17-18-0.722222",+ "22-23-0.152778",+ "22-23-0.400000",+ "22-23-0.450000",+ "22-23-0.500000",+ "22-23-0.550000",+ "22-23-0.555556",+ "22-23-0.600000",+ "22-23-0.650000",+ "22-23-0.700000",+ "22-23-0.750000",+ "22-23-0.850000",+ "22-23-0.958333",+ "23-24-0.361111",+ "23-24-0.763889"+ ]+ }+ }+ }+ }+}diff --git a/tests/fixtures/rife-cuts/knight-walk/00.webp b/tests/fixtures/rife-cuts/knight-walk/00.webpnew file mode 100644index 0000000..f992bf8Binary files /dev/null and b/tests/fixtures/rife-cuts/knight-walk/00.webp differdiff --git a/tests/fixtures/rife-cuts/knight-walk/01.webp b/tests/fixtures/rife-cuts/knight-walk/01.webpnew file mode 100644index 0000000..d05e6cfBinary files /dev/null and b/tests/fixtures/rife-cuts/knight-walk/01.webp differdiff --git a/tests/fixtures/rife-cuts/knight-walk/02.webp b/tests/fixtures/rife-cuts/knight-walk/02.webpnew file mode 100644index 0000000..a379f58Binary files /dev/null and b/tests/fixtures/rife-cuts/knight-walk/02.webp differdiff --git a/tests/fixtures/rife-cuts/knight-walk/03.webp b/tests/fixtures/rife-cuts/knight-walk/03.webpnew file mode 100644index 0000000..611151eBinary files /dev/null and b/tests/fixtures/rife-cuts/knight-walk/03.webp differdiff --git a/tests/fixtures/rife-cuts/knight-walk/04.webp b/tests/fixtures/rife-cuts/knight-walk/04.webpnew file mode 100644index 0000000..9cd473dBinary files /dev/null and b/tests/fixtures/rife-cuts/knight-walk/04.webp differdiff --git a/tests/fixtures/rife-cuts/knight-walk/05.webp b/tests/fixtures/rife-cuts/knight-walk/05.webpnew file mode 100644index 0000000..04f5445Binary files /dev/null and b/tests/fixtures/rife-cuts/knight-walk/05.webp differdiff --git a/tests/fixtures/rife-cuts/knight-walk/06.webp b/tests/fixtures/rife-cuts/knight-walk/06.webpnew file mode 100644index 0000000..05de107Binary files /dev/null and b/tests/fixtures/rife-cuts/knight-walk/06.webp differdiff --git a/tests/fixtures/rife-cuts/knight-walk/07.webp b/tests/fixtures/rife-cuts/knight-walk/07.webpnew file mode 100644index 0000000..9e6002cBinary files /dev/null and b/tests/fixtures/rife-cuts/knight-walk/07.webp differdiff --git a/tests/fixtures/rife-cuts/knight-walk/08.webp b/tests/fixtures/rife-cuts/knight-walk/08.webpnew file mode 100644index 0000000..29f391cBinary files /dev/null and b/tests/fixtures/rife-cuts/knight-walk/08.webp differdiff --git a/tests/fixtures/rife-cuts/knight-walk/09.webp b/tests/fixtures/rife-cuts/knight-walk/09.webpnew file mode 100644index 0000000..2f6b1e0Binary files /dev/null and b/tests/fixtures/rife-cuts/knight-walk/09.webp differdiff --git a/tests/fixtures/rife-cuts/knight-walk/10.webp b/tests/fixtures/rife-cuts/knight-walk/10.webpnew file mode 100644index 0000000..6245c62Binary files /dev/null and b/tests/fixtures/rife-cuts/knight-walk/10.webp differdiff --git a/tests/fixtures/rife-cuts/knight-walk/11.webp b/tests/fixtures/rife-cuts/knight-walk/11.webpnew file mode 100644index 0000000..c8ddc94Binary files /dev/null and b/tests/fixtures/rife-cuts/knight-walk/11.webp differdiff --git a/tests/fixtures/rife-cuts/knight-walk/12.webp b/tests/fixtures/rife-cuts/knight-walk/12.webpnew file mode 100644index 0000000..4a305c2Binary files /dev/null and b/tests/fixtures/rife-cuts/knight-walk/12.webp differdiff --git a/tests/fixtures/rife-cuts/knight-walk/13.webp b/tests/fixtures/rife-cuts/knight-walk/13.webpnew file mode 100644index 0000000..472aef4Binary files /dev/null and b/tests/fixtures/rife-cuts/knight-walk/13.webp differdiff --git a/tests/fixtures/rife-cuts/knight-walk/14.webp b/tests/fixtures/rife-cuts/knight-walk/14.webpnew file mode 100644index 0000000..d5e0169Binary files /dev/null and b/tests/fixtures/rife-cuts/knight-walk/14.webp differdiff --git a/tests/fixtures/rife-cuts/knight-walk/15.webp b/tests/fixtures/rife-cuts/knight-walk/15.webpnew file mode 100644index 0000000..cc93372Binary files /dev/null and b/tests/fixtures/rife-cuts/knight-walk/15.webp differdiff --git a/tests/fixtures/rife-cuts/knight-walk/16.webp b/tests/fixtures/rife-cuts/knight-walk/16.webpnew file mode 100644index 0000000..1779b6bBinary files /dev/null and b/tests/fixtures/rife-cuts/knight-walk/16.webp differdiff --git a/tests/fixtures/rife-cuts/knight-walk/17.webp b/tests/fixtures/rife-cuts/knight-walk/17.webpnew file mode 100644index 0000000..5cfa7e1Binary files /dev/null and b/tests/fixtures/rife-cuts/knight-walk/17.webp differdiff --git a/tests/fixtures/rife-cuts/knight-walk/18.webp b/tests/fixtures/rife-cuts/knight-walk/18.webpnew file mode 100644index 0000000..7616174Binary files /dev/null and b/tests/fixtures/rife-cuts/knight-walk/18.webp differdiff --git a/tests/fixtures/rife-cuts/knight-walk/19.webp b/tests/fixtures/rife-cuts/knight-walk/19.webpnew file mode 100644index 0000000..dcf1951Binary files /dev/null and b/tests/fixtures/rife-cuts/knight-walk/19.webp differdiff --git a/tests/fixtures/rife-cuts/knight-walk/20.webp b/tests/fixtures/rife-cuts/knight-walk/20.webpnew file mode 100644index 0000000..d2a3fc3Binary files /dev/null and b/tests/fixtures/rife-cuts/knight-walk/20.webp differdiff --git a/tests/fixtures/rife-cuts/knight-walk/21.webp b/tests/fixtures/rife-cuts/knight-walk/21.webpnew file mode 100644index 0000000..0a42fbdBinary files /dev/null and b/tests/fixtures/rife-cuts/knight-walk/21.webp differdiff --git a/tests/fixtures/rife-cuts/knight-walk/22.webp b/tests/fixtures/rife-cuts/knight-walk/22.webpnew file mode 100644index 0000000..e9ffb9cBinary files /dev/null and b/tests/fixtures/rife-cuts/knight-walk/22.webp differdiff --git a/tests/fixtures/rife-cuts/knight-walk/23.webp b/tests/fixtures/rife-cuts/knight-walk/23.webpnew file mode 100644index 0000000..d313b8cBinary files /dev/null and b/tests/fixtures/rife-cuts/knight-walk/23.webp differdiff --git a/tests/fixtures/rife-cuts/knight-walk/24.webp b/tests/fixtures/rife-cuts/knight-walk/24.webpnew file mode 100644index 0000000..35369cbBinary files /dev/null and b/tests/fixtures/rife-cuts/knight-walk/24.webp differdiff --git a/tests/fixtures/rife-cuts/knight-walk/25.webp b/tests/fixtures/rife-cuts/knight-walk/25.webpnew file mode 100644index 0000000..795827bBinary files /dev/null and b/tests/fixtures/rife-cuts/knight-walk/25.webp differdiff --git a/tests/fixtures/rife-cuts/pip-jump/00.webp b/tests/fixtures/rife-cuts/pip-jump/00.webpnew file mode 100644index 0000000..41d491fBinary files /dev/null and b/tests/fixtures/rife-cuts/pip-jump/00.webp differdiff --git a/tests/fixtures/rife-cuts/pip-jump/01.webp b/tests/fixtures/rife-cuts/pip-jump/01.webpnew file mode 100644index 0000000..f16c07cBinary files /dev/null and b/tests/fixtures/rife-cuts/pip-jump/01.webp differdiff --git a/tests/fixtures/rife-cuts/pip-jump/02.webp b/tests/fixtures/rife-cuts/pip-jump/02.webpnew file mode 100644index 0000000..1554c46Binary files /dev/null and b/tests/fixtures/rife-cuts/pip-jump/02.webp differdiff --git a/tests/fixtures/rife-cuts/pip-jump/03.webp b/tests/fixtures/rife-cuts/pip-jump/03.webpnew file mode 100644index 0000000..e45091bBinary files /dev/null and b/tests/fixtures/rife-cuts/pip-jump/03.webp differdiff --git a/tests/fixtures/rife-cuts/pip-jump/04.webp b/tests/fixtures/rife-cuts/pip-jump/04.webpnew file mode 100644index 0000000..d0eb67fBinary files /dev/null and b/tests/fixtures/rife-cuts/pip-jump/04.webp differdiff --git a/tests/fixtures/rife-cuts/pip-jump/05.webp b/tests/fixtures/rife-cuts/pip-jump/05.webpnew file mode 100644index 0000000..6b9380cBinary files /dev/null and b/tests/fixtures/rife-cuts/pip-jump/05.webp differdiff --git a/tests/fixtures/rife-cuts/pip-jump/06.webp b/tests/fixtures/rife-cuts/pip-jump/06.webpnew file mode 100644index 0000000..b582017Binary files /dev/null and b/tests/fixtures/rife-cuts/pip-jump/06.webp differdiff --git a/tests/fixtures/rife-cuts/pip-jump/07.webp b/tests/fixtures/rife-cuts/pip-jump/07.webpnew file mode 100644index 0000000..f456eefBinary files /dev/null and b/tests/fixtures/rife-cuts/pip-jump/07.webp differdiff --git a/tests/fixtures/rife-cuts/pip-jump/08.webp b/tests/fixtures/rife-cuts/pip-jump/08.webpnew file mode 100644index 0000000..ab9cba4Binary files /dev/null and b/tests/fixtures/rife-cuts/pip-jump/08.webp differdiff --git a/tests/fixtures/rife-cuts/pip-jump/09.webp b/tests/fixtures/rife-cuts/pip-jump/09.webpnew file mode 100644index 0000000..b5e1825Binary files /dev/null and b/tests/fixtures/rife-cuts/pip-jump/09.webp differdiff --git a/tests/fixtures/rife-cuts/pip-jump/10.webp b/tests/fixtures/rife-cuts/pip-jump/10.webpnew file mode 100644index 0000000..fe46a6dBinary files /dev/null and b/tests/fixtures/rife-cuts/pip-jump/10.webp differdiff --git a/tests/fixtures/rife-cuts/pip-jump/11.webp b/tests/fixtures/rife-cuts/pip-jump/11.webpnew file mode 100644index 0000000..c78e83fBinary files /dev/null and b/tests/fixtures/rife-cuts/pip-jump/11.webp differdiff --git a/tests/fixtures/rife-cuts/pip-jump/12.webp b/tests/fixtures/rife-cuts/pip-jump/12.webpnew file mode 100644index 0000000..27a4427Binary files /dev/null and b/tests/fixtures/rife-cuts/pip-jump/12.webp differdiff --git a/tests/fixtures/rife-cuts/pip-jump/13.webp b/tests/fixtures/rife-cuts/pip-jump/13.webpnew file mode 100644index 0000000..4cc2367Binary files /dev/null and b/tests/fixtures/rife-cuts/pip-jump/13.webp differdiff --git a/tests/fixtures/rife-cuts/pip-jump/14.webp b/tests/fixtures/rife-cuts/pip-jump/14.webpnew file mode 100644index 0000000..d71d7ccBinary files /dev/null and b/tests/fixtures/rife-cuts/pip-jump/14.webp differdiff --git a/tests/fixtures/rife-cuts/pip-jump/15.webp b/tests/fixtures/rife-cuts/pip-jump/15.webpnew file mode 100644index 0000000..e9a36c6Binary files /dev/null and b/tests/fixtures/rife-cuts/pip-jump/15.webp differdiff --git a/tests/fixtures/rife-cuts/pip-jump/16.webp b/tests/fixtures/rife-cuts/pip-jump/16.webpnew file mode 100644index 0000000..eb8c803Binary files /dev/null and b/tests/fixtures/rife-cuts/pip-jump/16.webp differdiff --git a/tests/fixtures/rife-cuts/pip-jump/17.webp b/tests/fixtures/rife-cuts/pip-jump/17.webpnew file mode 100644index 0000000..59c0402Binary files /dev/null and b/tests/fixtures/rife-cuts/pip-jump/17.webp differdiff --git a/tests/fixtures/rife-cuts/pip-jump/18.webp b/tests/fixtures/rife-cuts/pip-jump/18.webpnew file mode 100644index 0000000..32e296dBinary files /dev/null and b/tests/fixtures/rife-cuts/pip-jump/18.webp differdiff --git a/tests/fixtures/rife-cuts/pip-jump/19.webp b/tests/fixtures/rife-cuts/pip-jump/19.webpnew file mode 100644index 0000000..c9ebb0dBinary files /dev/null and b/tests/fixtures/rife-cuts/pip-jump/19.webp differdiff --git a/tests/fixtures/rife-cuts/pip-jump/20.webp b/tests/fixtures/rife-cuts/pip-jump/20.webpnew file mode 100644index 0000000..f08885eBinary files /dev/null and b/tests/fixtures/rife-cuts/pip-jump/20.webp differdiff --git a/tests/fixtures/rife-cuts/pip-jump/21.webp b/tests/fixtures/rife-cuts/pip-jump/21.webpnew file mode 100644index 0000000..3512d8aBinary files /dev/null and b/tests/fixtures/rife-cuts/pip-jump/21.webp differdiff --git a/tests/fixtures/rife-cuts/pip-jump/22.webp b/tests/fixtures/rife-cuts/pip-jump/22.webpnew file mode 100644index 0000000..0e35243Binary files /dev/null and b/tests/fixtures/rife-cuts/pip-jump/22.webp differdiff --git a/tests/fixtures/rife-cuts/pip-jump/23.webp b/tests/fixtures/rife-cuts/pip-jump/23.webpnew file mode 100644index 0000000..c2e6124Binary files /dev/null and b/tests/fixtures/rife-cuts/pip-jump/23.webp differdiff --git a/tests/fixtures/rife-cuts/pip-jump/24.webp b/tests/fixtures/rife-cuts/pip-jump/24.webpnew file mode 100644index 0000000..078cfc7Binary files /dev/null and b/tests/fixtures/rife-cuts/pip-jump/24.webp differdiff --git a/tests/fixtures/rife-cuts/pip-jump/25.webp b/tests/fixtures/rife-cuts/pip-jump/25.webpnew file mode 100644index 0000000..0bb4a55Binary files /dev/null and b/tests/fixtures/rife-cuts/pip-jump/25.webp differdiff --git a/tests/fixtures/rife-cuts/pip-jump/26.webp b/tests/fixtures/rife-cuts/pip-jump/26.webpnew file mode 100644index 0000000..16d962aBinary files /dev/null and b/tests/fixtures/rife-cuts/pip-jump/26.webp differdiff --git a/tests/fixtures/rife-cuts/pip-jump/27.webp b/tests/fixtures/rife-cuts/pip-jump/27.webpnew file mode 100644index 0000000..9aff48cBinary files /dev/null and b/tests/fixtures/rife-cuts/pip-jump/27.webp differdiff --git a/tests/fixtures/rife-cuts/pip-jump/28.webp b/tests/fixtures/rife-cuts/pip-jump/28.webpnew file mode 100644index 0000000..d30f3f2Binary files /dev/null and b/tests/fixtures/rife-cuts/pip-jump/28.webp differdiff --git a/tests/fixtures/rife-cuts/pip-run/00.webp b/tests/fixtures/rife-cuts/pip-run/00.webpnew file mode 100644index 0000000..f672e66Binary files /dev/null and b/tests/fixtures/rife-cuts/pip-run/00.webp differdiff --git a/tests/fixtures/rife-cuts/pip-run/01.webp b/tests/fixtures/rife-cuts/pip-run/01.webpnew file mode 100644index 0000000..a282ce9Binary files /dev/null and b/tests/fixtures/rife-cuts/pip-run/01.webp differdiff --git a/tests/fixtures/rife-cuts/pip-run/02.webp b/tests/fixtures/rife-cuts/pip-run/02.webpnew file mode 100644index 0000000..6cfcb96Binary files /dev/null and b/tests/fixtures/rife-cuts/pip-run/02.webp differdiff --git a/tests/fixtures/rife-cuts/pip-run/03.webp b/tests/fixtures/rife-cuts/pip-run/03.webpnew file mode 100644index 0000000..144b961Binary files /dev/null and b/tests/fixtures/rife-cuts/pip-run/03.webp differdiff --git a/tests/fixtures/rife-cuts/pip-run/04.webp b/tests/fixtures/rife-cuts/pip-run/04.webpnew file mode 100644index 0000000..85692ceBinary files /dev/null and b/tests/fixtures/rife-cuts/pip-run/04.webp differdiff --git a/tests/fixtures/rife-cuts/pip-run/05.webp b/tests/fixtures/rife-cuts/pip-run/05.webpnew file mode 100644index 0000000..13d8701Binary files /dev/null and b/tests/fixtures/rife-cuts/pip-run/05.webp differdiff --git a/tests/fixtures/rife-cuts/pip-run/06.webp b/tests/fixtures/rife-cuts/pip-run/06.webpnew file mode 100644index 0000000..292de72Binary files /dev/null and b/tests/fixtures/rife-cuts/pip-run/06.webp differdiff --git a/tests/fixtures/rife-cuts/pip-run/07.webp b/tests/fixtures/rife-cuts/pip-run/07.webpnew file mode 100644index 0000000..b2cc88eBinary files /dev/null and b/tests/fixtures/rife-cuts/pip-run/07.webp differdiff --git a/tests/fixtures/rife-cuts/pip-run/08.webp b/tests/fixtures/rife-cuts/pip-run/08.webpnew file mode 100644index 0000000..fec7accBinary files /dev/null and b/tests/fixtures/rife-cuts/pip-run/08.webp differdiff --git a/tests/fixtures/rife-cuts/pip-run/09.webp b/tests/fixtures/rife-cuts/pip-run/09.webpnew file mode 100644index 0000000..33b8238Binary files /dev/null and b/tests/fixtures/rife-cuts/pip-run/09.webp differdiff --git a/tests/fixtures/rife-cuts/pip-run/10.webp b/tests/fixtures/rife-cuts/pip-run/10.webpnew file mode 100644index 0000000..a352bb0Binary files /dev/null and b/tests/fixtures/rife-cuts/pip-run/10.webp differdiff --git a/tests/fixtures/rife-cuts/pip-run/11.webp b/tests/fixtures/rife-cuts/pip-run/11.webpnew file mode 100644index 0000000..dc99d20Binary files /dev/null and b/tests/fixtures/rife-cuts/pip-run/11.webp differdiff --git a/tests/fixtures/rife-cuts/pip-run/12.webp b/tests/fixtures/rife-cuts/pip-run/12.webpnew file mode 100644index 0000000..18f83abBinary files /dev/null and b/tests/fixtures/rife-cuts/pip-run/12.webp differdiff --git a/tests/fixtures/rife-cuts/pip-run/13.webp b/tests/fixtures/rife-cuts/pip-run/13.webpnew file mode 100644index 0000000..011f883Binary files /dev/null and b/tests/fixtures/rife-cuts/pip-run/13.webp differdiff --git a/tests/fixtures/rife-cuts/pip-run/14.webp b/tests/fixtures/rife-cuts/pip-run/14.webpnew file mode 100644index 0000000..501ddccBinary files /dev/null and b/tests/fixtures/rife-cuts/pip-run/14.webp differdiff --git a/tests/fixtures/rife-cuts/pip-run/15.webp b/tests/fixtures/rife-cuts/pip-run/15.webpnew file mode 100644index 0000000..28a837cBinary files /dev/null and b/tests/fixtures/rife-cuts/pip-run/15.webp differdiff --git a/tests/fixtures/rife-cuts/pip-run/16.webp b/tests/fixtures/rife-cuts/pip-run/16.webpnew file mode 100644index 0000000..a572471Binary files /dev/null and b/tests/fixtures/rife-cuts/pip-run/16.webp differdiff --git a/tests/fixtures/rife-cuts/pip-run/17.webp b/tests/fixtures/rife-cuts/pip-run/17.webpnew file mode 100644index 0000000..40cc90cBinary files /dev/null and b/tests/fixtures/rife-cuts/pip-run/17.webp differdiff --git a/tests/fixtures/rife-cuts/pip-run/18.webp b/tests/fixtures/rife-cuts/pip-run/18.webpnew file mode 100644index 0000000..db1a6c3Binary files /dev/null and b/tests/fixtures/rife-cuts/pip-run/18.webp differdiff --git a/tests/fixtures/rife-cuts/pip-run/19.webp b/tests/fixtures/rife-cuts/pip-run/19.webpnew file mode 100644index 0000000..6b29d02Binary files /dev/null and b/tests/fixtures/rife-cuts/pip-run/19.webp differdiff --git a/tests/fixtures/rife-cuts/pip-run/20.webp b/tests/fixtures/rife-cuts/pip-run/20.webpnew file mode 100644index 0000000..38c3235Binary files /dev/null and b/tests/fixtures/rife-cuts/pip-run/20.webp differdiff --git a/tests/fixtures/rife-cuts/pip-run/21.webp b/tests/fixtures/rife-cuts/pip-run/21.webpnew file mode 100644index 0000000..55fb186Binary files /dev/null and b/tests/fixtures/rife-cuts/pip-run/21.webp differdiff --git a/tests/fixtures/rife-cuts/pip-run/22.webp b/tests/fixtures/rife-cuts/pip-run/22.webpnew file mode 100644index 0000000..5855e9aBinary files /dev/null and b/tests/fixtures/rife-cuts/pip-run/22.webp differdiff --git a/tests/fixtures/rife-cuts/pip-run/23.webp b/tests/fixtures/rife-cuts/pip-run/23.webpnew file mode 100644index 0000000..c99a0c7Binary files /dev/null and b/tests/fixtures/rife-cuts/pip-run/23.webp differdiff --git a/tests/fixtures/rife-cuts/pip-run/24.webp b/tests/fixtures/rife-cuts/pip-run/24.webpnew file mode 100644index 0000000..4ebedffBinary files /dev/null and b/tests/fixtures/rife-cuts/pip-run/24.webp differdiff --git a/tests/fixtures/rife-cuts/pip-run/25.webp b/tests/fixtures/rife-cuts/pip-run/25.webpnew file mode 100644index 0000000..a247489Binary files /dev/null and b/tests/fixtures/rife-cuts/pip-run/25.webp differdiff --git a/tests/video/test_rife_cuts.py b/tests/video/test_rife_cuts.pynew file mode 100644index 0000000..f6c208d--- /dev/null+++ b/tests/video/test_rife_cuts.py@@ -0,0 +1,174 @@+# SPDX-License-Identifier: Apache-2.0+"""The default interpolator on three public cuts (docs/loop-repair.md section 1, "Which setting"): the regression set+that chose rife-v4.25, padded to 128 with no augmentation, over rife-v4.6 with `-x -z`.++tests/fixtures/rife-cuts holds three loop cuts of the spritegen-app landing samples, drawn with thick lines (a knight's+walk, Pip's run, Pip's jump), keyed and cropped as `cuts.json` says, each frame's RGBA sha256 pinned, and what was+measured on them: each cut's frames filled 24 -> 60 fps by `held_fill.upsample` and the poses of what came out+(`held_fill.reading`), for rife-v4.6 (-x -z), rife-v4.25 through the binary (each image padded to 128, Apple GPU) and+Practical-RIFE 4.25 in PyTorch (padded to 128). Two more cuts the choice was measured on, drawn with thin lines, are+private and measured outside this repository.++What holds, wherever RIFE runs (the binary on a GPU or on llvmpipe, `real_rife`; the torch backend, `torch_rife`):++- poses: the knight's walk at least 40 (two under rife-v4.6's 42, measured: its frames 2, 34 and 36 are refused by+ rife-v4.25 in PyTorch as by the binary, and the binary refuses 6 as well, which PyTorch takes at t 0.2 — a frame on+ the bar, its ghost band made off its time 0.00602 through the binary, `align.RETIME_WINDOW_MAX` 0.006); Pip's run+ and jump within one of what rife-v4.25 took (39, 67);+- Pip's jump takes the very cells PyTorch took from the published weights padded to 128: padded to 64, as the binary pads+ this model itself, it took 48 of them (`rife.MODELS`);+- the feet: where a planted pair's feet stand still, each frame rife-v4.6 made there and the feet windows caught dragged+ 2 px sideways or 2 px up (`held_fill.still_kept`'s windows over the feet band) is caught for the default model's frame+ too.++Each is many runs of RIFE at about 550 x 780 (padded to 640 x 896): minutes on a GPU, tens of minutes on llvmpipe or a+CPU's PyTorch. So they are `slow`, run by `--full` (the lanes)."""++from __future__ import annotations++import hashlib+import json+from functools import lru_cache+from pathlib import Path++import numpy as np+import pytest+from PIL import Image, ImageFilter++from sprite_gen.video import held_fill, legs, rife++CUTS = Path(__file__).resolve().parents[1] / "fixtures" / "rife-cuts"+# poses each cut must take with the default model: (at least, at most), None where only a floor is held+BOUNDS = {"knight-walk": (40, None), "pip-run": (38, 40), "pip-jump": (66, 68)}+++@lru_cache(maxsize=None)+def _record() -> dict:+ return json.loads((CUTS / "cuts.json").read_text())["cuts"]+++def _frames(cut: str) -> list[Image.Image]:+ """A cut's frames, each the pixels recorded."""+ rec = _record()[cut]+ frames = []+ for k, sha in enumerate(rec["sha256"]):+ im = Image.open(CUTS / cut / f"{k:02d}.webp").convert("RGBA")+ assert hashlib.sha256(im.tobytes()).hexdigest() == sha, (cut, k)+ frames.append(im)+ return frames+++def _interpolator(request: pytest.FixtureRequest, backend: str, monkeypatch: pytest.MonkeyPatch) -> rife.Rife:+ """The default model through the binary, or through the torch backend on SPRITE_GEN_RIFE_DEVICE."""+ if backend == "torch":+ monkeypatch.setenv("SPRITE_GEN_RIFE_BACKEND", "torch")+ made = rife.Rife()+ assert made.model_name == rife.MODEL == "rife-v4.25" and made.tta == ()+ return made+++BACKENDS = [pytest.param("ncnn", marks=pytest.mark.real_rife), pytest.param("torch", marks=pytest.mark.torch_rife)]+++def test_the_fixture_is_what_was_measured():+ """The three cuts, their frames whole, and the numbers the bounds come from: rife-v4.25 took fewer poses than+ rife-v4.6 only on the knight's walk, and on Pip's jump the binary padded to 128 took PyTorch's cells."""+ measured = {cut: rec["measured"] for cut, rec in _record().items()}+ assert sorted(measured) == sorted(BOUNDS)+ for cut, m in measured.items():+ assert len(_frames(cut)) == len(_record()[cut]["sha256"])+ low, high = BOUNDS[cut]+ assert low <= m["rife-v4.25"]["poses"] and (high is None or m["rife-v4.25"]["poses"] <= high)+ assert low <= m["rife-v4.25-torch"]["poses"] and (high is None or m["rife-v4.25-torch"]["poses"] <= high)+ assert measured["knight-walk"]["rife-v4.6"]["poses"] - measured["knight-walk"]["rife-v4.25"]["poses"] == 2+ lost = set(measured["knight-walk"]["rife-v4.6"]["taken"]) - set(measured["knight-walk"]["rife-v4.25"]["taken"])+ assert lost == {2, 6, 34, 36} and 6 in measured["knight-walk"]["rife-v4.25-torch"]["taken"]+ assert measured["pip-jump"]["rife-v4.25"]["taken"] == measured["pip-jump"]["rife-v4.25-torch"]["taken"]++[email protected](5400) # 450 to 550 runs of RIFE at 640 x 896: minutes on a GPU, tens of minutes on llvmpipe or a CPU[email protected]("backend", BACKENDS)[email protected]("cut", sorted(BOUNDS))+def test_a_public_cut_takes_as_many_poses_with_the_default_model_as_measured(request, monkeypatch, cut, backend):+ """The cut filled 24 -> 60 fps by the default model: its poses within the cut's bounds (BOUNDS); Pip's jump takes the+ cells PyTorch took from the published weights padded to 128."""+ rec = _record()[cut]+ interpolate = _interpolator(request, backend, monkeypatch)+ out, record = held_fill.upsample(_frames(cut), interpolate, ring=rec["ring"], fps=24, out_fps=60)+ reading = held_fill.reading(held_fill.same_steps(out))+ low, high = BOUNDS[cut]+ assert reading["cells"] == rec["measured"]["rife-v4.25"]["cells"]+ assert low <= reading["poses"] and (high is None or reading["poses"] <= high), held_fill.said(reading)+ if cut == "pip-jump":+ taken = sorted(r["cell"] for r in record["frames"] if "taken" not in r)+ assert taken == rec["measured"]["rife-v4.25-torch"]["taken"]+++def _band(a: Image.Image, b: Image.Image) -> tuple[int, int]:+ """The feet band of a pair: (its top, the lowest solid row of either): the lowest `rife.GHOST_BAND` of their body+ rows, at least 8, and 4 px over it."""+ sa, sb = (np.asarray(x)[..., 3] >= legs.LOW_ALPHA for x in (a, b))+ rows = np.nonzero((sa | sb).any(axis=1))[0]+ top, bottom = int(rows[0]), int(rows[-1])+ win = max(8, round((bottom - top + 1) * rife.GHOST_BAND))+ return bottom - win + 1 - 4, bottom+++def _dragged(frame: np.ndarray, top: int, bottom: int, dx: int, dy: int) -> np.ndarray:+ """`frame` with its feet band moved `dx` px right, or `-dy` px up."""+ out = frame.copy()+ band = frame[top:bottom + 1].copy()+ out[top:bottom + 1] = 0+ moved = np.zeros_like(band)+ if dx:+ moved[:, dx:] = band[:, :-dx]+ else:+ moved[:band.shape[0] + dy] = band[-dy:]+ out[top:bottom + 1] = moved+ return out+++def _feet_kept(frame: Image.Image, a: Image.Image, b: Image.Image, top: int) -> float | None:+ """The least share of the still outline `held_fill.still_kept` reads a window keeps, among its windows over the feet+ band (from `top`); None where none reads."""+ A, B, F = (np.asarray(im.convert("RGBA"), dtype=np.int16) for im in (a, b, frame))+ sa, sb, sf = (x[..., 3] >= legs.LOW_ALPHA for x in (A, B, F))+ still = held_fill._edge(sa) & held_fill._edge(sb) & (np.abs(A[..., :3] - B[..., :3]).max(axis=-1) <= held_fill.STILL_RGB)+ drawn = sf & (np.abs(F[..., :3] - A[..., :3]).max(axis=-1) <= held_fill.STILL_RGB)+ near = np.asarray(Image.fromarray(np.uint8(drawn) * 255).filter(ImageFilter.MaxFilter(3))) > 0+ rows = np.nonzero((sa | sb).any(axis=1))[0]+ first, last = int(rows[0]), int(rows[-1])+ win = max(8, round((last - first + 1) * rife.GHOST_BAND))+ sr, kr = still.sum(axis=1), (still & near).sum(axis=1)+ kept = [float(kr[y:y + win].sum()) / int(sr[y:y + win].sum())+ for y in range(first, max(first, last - win + 1) + 1, max(1, win // 4))+ if int(sr[y:y + win].sum()) >= held_fill.STILL_MIN_PX and y + win > top]+ return min(kept, default=None)++[email protected](3600) # 88 and 91 frames, two runs each, at 640 x 896[email protected]("backend", BACKENDS)[email protected]("cut", ["knight-walk", "pip-jump"])+def test_the_default_model_s_frame_dragged_off_still_feet_is_caught_wherever_rife_v4_6_s_was(request, monkeypatch, cut,+ backend):+ """Each recorded key — a planted pair whose feet stand still (their feet bands' solid pixels overlapping 0.9 and over)+ and a t either model made there — made by the default model, its feet band dragged 2 px sideways (h2) and 2 px up+ (v2): every key whose rife-v4.6 frame the feet windows caught (kept under `held_fill.STILL_KEPT_MIN`) is caught for+ this one too."""+ rec = _record()[cut]+ frames = _frames(cut)+ interpolate = _interpolator(request, backend, monkeypatch)+ caught: dict[str, set[str]] = {"h2": set(), "v2": set()}+ for key in rec["drag"]["keys"]:+ i, j, t = key.split("-")+ a, b = frames[int(i)], frames[int(j)]+ made = np.asarray(interpolate(a, b, float(t)))+ top, bottom = _band(a, b)+ for kind, dx, dy in (("h2", 2, 0), ("v2", 0, -2)):+ kept = _feet_kept(Image.fromarray(_dragged(made, top, bottom, dx, dy)), a, b, top)+ if kept is not None and kept < held_fill.STILL_KEPT_MIN:+ caught[kind].add(key)+ for kind, wanted in rec["drag"]["caught_by_rife_v4_6"].items():+ assert not set(wanted) - caught[kind], (kind, sorted(set(wanted) - caught[kind]))