/* glimmer_golden.h -- GENERATED by mkglimmergolden.py from transformers 5.23.0.dev0 (MuseGlimmerImageProcessor, MuseGlimmerVideoProcessor, torch 2.15.0+cpu, torchvision 0.29.2+cpu); do not edit. */ #pragma once #include static const int32_t kGoldMusePatch = 14, kGoldMuseTemporal = 2, kGoldMuseMerge = 2; static const int32_t kGoldMuseTokImage = 200092, kGoldMuseTokVideo = 200091; static const int32_t kGoldMuseTokStart = 200080, kGoldMuseTokEnd = 200081; static const int32_t kGoldMuseVidStart = 200082, kGoldMuseVidEnd = 200083; static const int32_t kGoldMuseVidSep = 200087; /* A h x w picture's resize target, in pixels. */ struct GoldMuseResize { int64_t h, w, oh, ow; }; static const GoldMuseResize kGoldMuseResize[] = { { 256, 320, 252, 308 }, { 100, 100, 112, 112 }, { 84, 84, 84, 84 }, { 10, 10, 28, 28 }, { 28, 28, 28, 28 }, { 27, 27, 28, 28 }, { 1, 1, 28, 28 }, { 8000, 8000, 1792, 1792 }, { 2000, 50, 2016, 56 }, { 50, 2000, 56, 2016 }, { 300, 500, 308, 504 }, { 640, 427, 616, 420 }, { 1920, 1080, 1932, 1092 }, { 3, 5000, 28, 5012 }, { 500, 3, 504, 28 }, { 1234, 5678, 812, 3836 }, { 7, 9, 28, 28 }, { 112, 224, 112, 224 }, { 224, 112, 224, 112 }, }; /* A h x w picture: the grid (in patches), the plane's first 16 bf16 values and the FNV-1a of every bf16 value's bytes, patches in the reference's raster order, each row (temporal, channel, y, x) as the reference lays it out. */ struct GoldMuseImage { int64_t h, w; int32_t gh, gw; uint16_t head[16]; uint64_t fnv; }; static const GoldMuseImage kGoldMuseImage[] = { { 100, 100, 8, 8, {0xbebf, 0xbf56, 0xbeaf, 0x3f50, 0x3db9, 0xbf10, 0x3ea7, 0x3f26, 0x3eef, 0xbeff, 0xbe75, 0xbf7e, 0x3f02, 0x3e2d, 0x3f08, 0xbe55}, 2422471396853671097ull }, { 256, 320, 18, 22, {0xbec7, 0xbf54, 0x3e4d, 0x3f22, 0xbf18, 0x3e7d, 0x3f28, 0x3e45, 0xbeef, 0xbf22, 0xbd71, 0x3ec7, 0xbf1e, 0x3ebb, 0x3f28, 0x3ca1}, 116533246137817081ull }, }; /* The clip: 37 source frames at 6 fps sampled at 2 fps; the sampled indices, the grid (groups x patches), the plane's first 16 bf16 values and FNV-1a, and each group's stamp. */ static const int64_t kGoldMuseVideoTotal = 37; static const double kGoldMuseVideoFps = 6.0; static const int32_t kGoldMuseVideoN = 12; static const int64_t kGoldMuseVideoIndex[] = { 0, 3, 6, 9, 13, 16, 19, 22, 26, 29, 32, 36}; static const int32_t kGoldMuseVideoGrid[] = { 6, 4, 6 }; static const uint16_t kGoldMuseVideoHead[16] = { 0xbebf, 0xbf38, 0x3f08, 0x3d89, 0xbe93, 0x3f02, 0x3ee3, 0xbef3, 0xbf12, 0xbd11, 0x3e83, 0xbedf, 0x3e15, 0xbf08, 0x3f30, 0x3e9b}; static const uint64_t kGoldMuseVideoFnv = 11707344584801435184ull; static const char* const kGoldMuseVideoStamps[] = { "Time: 0.0s", "Time: 1.0s", "Time: 2.2s", "Time: 3.2s", "Time: 4.3s", "Time: 5.3s", }; /* A source of `total` frames at `fps` sampled at 2 fps: the frame count and the FNV-1a of every int64 index's bytes (mm_test's fnv over int64). */ struct GoldMuseSample { int64_t total; double fps; int32_t n; uint64_t fnv; }; static const GoldMuseSample kGoldMuseSample[] = { { 37, 6.0, 12, 7586201493087669970ull }, { 6, 2.0, 6, 505324669386248260ull }, { 96, 24.0, 8, 5899556429423025984ull }, { 1, 2.0, 1, 12161962213042174405ull }, { 2, 2.0, 2, 7576559462502111812ull }, { 5, 12.0, 2, 879613241599343585ull }, { 600, 30.0, 40, 14808218070874272101ull }, { 1000, 24.0, 82, 13092565161413813425ull }, { 13, 7.0, 2, 291392423630507241ull }, { 4, 1.0, 4, 7267626464946418085ull }, };