0x1d0171d9…aa9asent to0x99a9b7c1…b069·#16,157,794·view on Etherscan
,2,187,-168,-346,-363,-285,-84,148,-342,-288],[6,1,0,3,-2,1,-3,-0,-2,5,-4,-0,3,1,-3,5,-5,1,2,-1,2,5,-5,-5,1,3,6,0,-0,1,4,-2],[-5,-3,5,-6,1,-6,6,-2,4,-5,6,-4,-0,6,-2,2,-4,-0,-3,2,4,-1,-1,-4,2,-4,-2,-4,1,3,-6,-2],[-6,-1,5,-6,3,2,-5,3,-5,5,-3,-4,-5,4,1,5,7,3,1,2,-5,-4,-5,6,-4,4,-4,2,-0,3,-3,1],[-114,-18,35,7,-29,2,96,222,215,-130,67,95,5,-50,-64,43,191,-3,108,-89,-90,61,7,-45,-79,-169,143,-146,-238,76,87,-83],[-97,-332,223,-31,-187,7,143,-119,-282,92,-9,152,3,193,-212,88,278,1,136,-131,405,-282,-1,224,-385,-27,-35,-153,115,205,98,-308],[180,6,-27,151,-340,-4,-236,198,44,-160,-59,350,-6,-185,305,-19,32,6,113,-44,219,-211,0,275,-122,-166,79,-150,93,226,182,-286],[-229,-101,169,318,-2,-2,-261,59,303,430,67,34,5,158,104,272,-31,2,29,90,294,24,7,-250,365,45,48,-1,123,-187,40,-128],[326,140,190,150,-277,-4,273,-360,-67,-260,134,-166,4,-237,61,-29,53,1,165,-167,-171,-37,5,231,-267,4,-391,-410,-70,190,-248,-6]]
Weights[4] = [[-5,-41,-370,-95,45,-22,262,-120,-146,243,-78,-2,136,186,316,-9,4,-7,-277,425,147,387,-186,222,4,-1,-3,52,29,89,-116,1],[2,-4,6,-4,-0,-6,4,-7,-3,-4,5,-5,-6,-1,4,-6,-2,-3,3,-3,-5,-2,4,0,6,4,2,5,6,7,5,-1],[4,-73,234,-230,174,26,-387,-215,226,-308,18,-4,308,-73,-183,7,-13,32,445,-94,-79,-110,335,-655,-1,-4,5,-279,-466,-249,106,-112],[4,-7,86,-83,-43,36,-32,36,-238,221,-15,1,-10,-15,-58,-34,-7,-187,121,-94,89,-92,104,35,2,-6,6,-82,-67,-42,-12,-91],[-1,16,-89,-66,-5,-29,125,-104,-61,106,-34,-1,94,66,48,-12,8,-29,-239,199,105,96,-72,28,6,-3,1,62,-45,-20,-10,0],[3,-4,5,-2,-4,-2,-6,-4,0,3,0,4,-3,-2,-7,-0,-1,-4,0,3,1,-3,1,-4,4,-6,4,-6,6,1,-6,-5],[6,-23,43,-17,80,82,-122,88,-134,63,61,0,-101,3,-49,56,-1,103,161,-92,-28,-168,-27,10,-3,-3,3,-33,19,161,-25,4],[-1,-19,9,84,-13,58,-32,108,-27,113,35,-3,-108,19,-79,34,-0,59,66,-43,-7,76,-36,92,-6,0,-6,19,97,193,-27,1],[-6,5,2,-0,-2,0,-3,0,-3,3,4,-3,3,2,-7,1,0,-6,1,-1,4,-6,-3,-5,-3,-6,5,2,1,-3,0,3],[1,112,383,-175,108,115,128,-430,63,-213,-140,-5,136,13,-218,150,-21,-94,-105,319,363,-75,25,-324,5,1,4,26,-196,-5,131,-468],[2,61,17,49,-89,-38,51,-282,98,2,-110,-0,101,-76,31,-13,-8,-217,-275,42,135,226,36,-122,-4,-0,-3,94,-27,-182,-44,-94],[-4,69,-306,119,-113,36,324,-100,360,-3,-56,-5,358,149,-85,-163,-7,150,-256,215,15,279,182,159,4,5,-3,-1,17,188,202,186],[3,37,1,-39,-25,-31,49,-73,-31,-13,-46,-6,44,-15,-0,12,-6,-72,-160,46,54,58,11,-88,4,-2,-6,48,-52,-141,6,-24],[1,69,-5,234,149,-257,-345,297,263,-181,40,3,-41,142,-290,34,1,299,-15,320,-157,-77,50,2,-6,1,5,97,131,-371,112,-239],[-5,-0,-1,-1,1,4,-5,-6,4,7,4,5,1,1,-2,-0,4,-3,-4,-1,3,-5,-6,-1,0,-6,6,-5,4,-4,-2,6],[2,2,3,6,1,4,2,3,-0,-4,2,2,4,-5,-3,-3,-2,6,2,-6,-5,0,-0,-4,-1,4,-1,0,2,5,6,-6],[-4,-16,-6,-15,-3,4,4,-9,-22,23,-7,-4,-4,6,-5,-17,-4,-24,-8,-2,2,-5,-1,8,6,6,2,-1,-7,-24,-0,-1],[-1,50,-41,-173,81,44,17,81,-45,-125,-17,-6,8,27,0,146,-3,-85,70,2,94,19,-84,-209,-1,4,-2,70,-148,-214,40,-23],[-3,-111,-306,162,-100,-25,55,50,-7,200,55,4,-174,-52,104,-33,7,-59,119,-66,-163,95,-91,354,6,3,-4,-7,212,147,-272,132],[1,41,-29,-112,-87,-16,165,-146,30,-4,-104,4,118,26,93,-37,-13,-169,-283,200,144,183,-13,-69,-2,6,-3,84,-148,-197,-4,-64],[6,-144,102,-52,176,-124,-79,-51,158,-187,87,-4,-330,145,-358,-46,-5,197,251,-115,-53,2,245,-480,5,2,-4,-138,-378,77,138,-458],[2,-81,-446,103,-124,-64,235,149,-100,289,37,-4,-106,1,124,-130,9,10,-40,-77,-284,184,-30,404,-0,3,3,2,179,220,-301,216],[1,2,3,-4,-1,2,-4,-6,-4,3,-0,1,-3,-3,-3,-0,3,0,-2,6,0,0,-3,3,-3,-2,-5,2,1,1,-1,2],[-1,79,59,-99,-74,51,-39,121,-348,45,-9,1,-12,72,149,87,-4,-97,-202,40,0,101,-220,-41,-5,2,4,230,-67,4,39,-48],[-2,112,32,-328,259,-17,-77,-307,-101,-124,-83,6,85,-94,-26,161,-14,-84,-310,252,122,-102,-52,-88,6,-5,-4,108,302,29,5,-12],[3,-28,-556,170,-148,-56,193,-59,-317,161,67,-3,18,116,159,-288,9,-111,314,-48,-13,292,-155,278,1,6,-1,92,381,332,-514,132],[-1,-134,-129,176,-13,-39,-9,25,-175,-10,33,-5,-161,-2,205,-45,3,-38,-223,20,-94,31,-40,132,-7,2,-3,-47,-123,71,-3,58],[4,-87,91,154,-90,-9,-138,147,250,14,70,0,-102,46,-47,-118,9,100,349,-24,-48,-56,55,59,2,-4,5,-67,-25,152,48,13],[-2,-24,8,-92,-21,52,49,5,67,-2,-14,-7,46,107,21,-36,-1,53,141,99,149,116,-23,4,-5,-4,-4,-11,-76,-32,-70,-2],[-5,-130,-337,-51,28,62,-49,66,-171,88,68,-3,-56,138,-71,-80,14,310,87,163,-82,-165,-213,270,-4,2,-4,-107,34,211,-251,156],[5,-9,-279,105,-71,-96,220,176,-237,117,-33,5,75,140,176,-122,-2,-202,-285,169,49,385,-60,153,2,-3,7,97,-21,126,-75,188],[-0,0,7,1,2,-6,2,-1,-6,-0,-2,-1,-4,-3,1,-4,0,-6,-5,4,-3,-4,-2,3,-3,-1,1,3,3,3,0,-2]]
Weights[5] = [[-27,-7,-23,22,-59,0,-92,30,-4,-29,82,-129,-12,306,-0,1,-5,-116,78,-30,6,69,2,-213,14,123,-55,129,-5,-122,85,4],[-51,-5,247,263,50,4,-143,-131,-6,355,250,200,86,-190,-0,-3,16,173,-337,214,208,-330,3,171,369,-464,-240,-30,111,-443,34,1],[-2,6,187,-73,-46,-4,73,62,4,-185,-129,-89,-93,10,3,-1,-4,2,34,-101,180,-15,2,-151,-98,1,71,197,131,136,-49,-1],[3,-3,5,6,-5,6,-5,2,3,2,6,3,-6,-3,-3,3,4,-2,-1,-4,4,-2,3,-3,4,6,-4,-3,-4,-2,5,0],[-4,1,6,-5,-5,-6,-6,6,-6,6,1,-2,4,2,-3,5,-2,-2,4,-5,4,-2,-3,-5,-1,-5,2,-5,-2,-4,-6,-2],[45,-1,-17,116,51,-1,-68,-82,-4,187,109,101,65,-94,5,2,12,82,-47,105,-138,-13,-0,120,160,-12,-105,-101,8,-97,81,-6],[160,2,-660,-49,116,-1,-3,47,4,-360,6,243,22,66,-0,-6,18,-209,125,39,-428,129,-2,44,-167,274,90,-100,-73,42,69,-6],[-94,-6,103,105,-19,5,-75,-36,6,143,97,20,22,13,-6,-5,1,49,-134,62,53,-155,-5,27,104,-278,-106,27,-1,-215,-41,5],[-44,0,-256,-151,-17,-1,75,95,-6,-327,-118,-117,-45,146,5,-6,-9,-182,95,-104,43,45,-2,-96,-259,103,152,34,-120,117,-94,2],[82,1,-283,18,67,-4,-14,13,-3,-72,27,111,20,24,6,-1,2,-69,54,25,-230,72,-2,56,-27,148,-1,-36,-14,-2,73,6],[3,-4,-2,5,4,4,-3,-6,2,1,-3,-5,-3,-7,2,-1,2,-1,-1,3,-4,5,-5,-6,7,-5,-5,3,-3,-7,1,4],[5,-0,-7,4,2,1,-4,1,0,0,1,5,2,-5,-6,-0,-4,1,-3,-5,-5,-6,3,-1,-6,2,5,-7,-4,3,-3,7],[-5,-4,-4,-1,-1,7,-3,1,7,-2,3,-7,-3,-6,-6,3,-3,1,-2,-4,1,4,2,0,-1,1,-6,5,2,-1,-5,5],[-13,3,-39,-12,17,6,14,5,2,-11,3,13,5,-98,-1,-4,2,-14,6,10,-3,15,-1,32,-30,40,23,-18,-24,3,22,-4],[99,6,-136,66,75,-2,-29,-43,-3,70,98,166,43,-204,1,-6,6,30,12,97,-223,34,-6,83,120,136,-44,-76,55,-5,103,5],[15,5,-41,82,31,-0,-54,-65,2,158,96,68,58,-54,3,-5,10,55,-45,79,-113,-1,2,108,118,-22,-83,-105,-27,-100,59,-2],[3,-6,4,-0,5,4,-4,0,3,1,3,2,-4,5,4,5,-4,1,2,1,3,-2,-5,3,-3,3,-2,-6,-4,-1,-2,1],[-387,5,247,53,-116,-4,92,58,-3,-48,-98,-272,-14,445,-3,-5,-14,-47,-151,-161,262,-278,2,-86,-201,-168,-78,151,-55,-44,-274,4],[-17,3,123,-7,-16,3,32,16,5,-36,-69,-44,-18,-37,1,4,-5,23,-7,-52,55,-33,-6,-28,-4,28,-6,88,70,64,-53,2],[-331,7,280,105,-131,-4,-32,3,-3,91,48,-138,-28,208,-2,1,-13,9,-220,-50,257,-312,-1,-82,10,-525,-124,173,-48,-313,-263,7],[-379,4,380,58,-116,-3,136,56,-6,-75,-161,-366,-49,349,-1,1,-23,-5,-249,-167,379,-368,-2,-105,-124,-374,-78,172,26,-18,-267,-0],[70,7,-197,-13,-14,-5,84,35,4,-463,-104,164,-64,-159,2,5,15,-63,90,-66,-60,71,2,5,-62,215,93,74,100,104,57,-5],[155,-7,-62,183,110,7,-111,-135,6,278,198,283,115,-278,5,2,17,163,-52,203,-296,20,-1,220,278,87,-179,-146,102,-105,184,-1],[1,1,-36,35,-50,-3,-85,22,3,-12,79,-64,-14,262,-3,-2,-6,-101,61,-22,-3,74,0,-169,27,117,-53,107,0,-110,96,-2],[64,4,-121,98,68,-2,-69,-75,2,178,128,141,89,-107,-1,1,10,45,-27,122,-197,21,2,142,137,50,-86,-137,-24,-99,93,4],[38,3,78,42,44,4,-39,-50,-1,127,77,62,49,-67,-5,4,5,53,-27,77,-25,-22,-1,24,44,-38,-48,-69,34,-52,18,1],[-39,3,-10,-20,-22,4,9,3,6,-9,-44,-50,-5,154,5,2,-1,-6,-16,-43,8,-50,-2,-19,-0,-23,1,8,-14,10,-68,5],[72,1,242,163,83,-4,-96,-156,6,233,152,137,89,-228,-1,-1,10,147,-286,180,93,-272,-6,141,363,-366,-176,-120,123,-259,29,3],[-6,-2,-4,-1,0,4,3,3,-5,-2,4,-1,-5,-6,-6,3,-5,-5,-5,-4,-3,-4,-2,1,1,-3,2,-2,3,-6,-4,3],[-4,-7,-6,6,2,2,-5,-6,4,2,-1,1,-2,-5,4,4,-2,-2,-0,-5,-6,-2,6,-6,6,-6,-5,6,0,-6,-0,5],[49,1,-92,-27,-9,-2,102,65,6,-383,-138,-21,-62,-65,-0,-1,0,-13,78,-90,38,32,1,-41,-77,163,73,96,113,140,19,2],[-351,-1,330,-84,-135,6,171,83,6,-232,-212,-530,-84,238,1,-4,-24,-65,-169,-226,381,-286,4,-207,-151,-341,40,113,-35,93,-398,0]]
Weights[6] = [[239,-372,224,2,-5,-326,-384,51,322,-242,0,8,-9,12,-474,-228,7,905,-45,637,921,-349,-768,153,-384,-235,162,-354,-1,-3,-128,967],[-367,375,304,-7,-7,-30,-746,195,-306,-350,-8,7,-2,-124,-92,-75,-5,138,123,471,551,-66,-34,-319,-173,30,-115,274,-5,-7,110,545],[258,1054,-355,0,-4,322,-507,456,-504,-92,2,9,8,46,34,289,-8,101,-195,520,76,-538,408,252,292,128,31,835,-3,-6,-509,-318]]
Bias[0] = [-77,-55,-0,57,117,242,42,70,-185,260,231,97,29,111,113,-232,-73,39,89,82,135,51,-4,-169,-146,60,-31,61,153,-215,258,188]
Bias[1] = [-42,-83,-127,-11,130,-344,-4,106,-136,181,-241,220,-6,-289,-194,455,94,-318,188,-95,218,-118,-48,-15,-56,-115,17,133,171,126,-30,22]
Bias[2] = [-159,28,-57,240,407,-41,403,323,-65,282,40,100,-32,16,-325,-112,244,-31,-8,-211,377,-178,-32,55,-111,-230,-148,257,410,-201,95,-193]
Bias[3] = [-39,46,-298,204,130,37,-77,287,152,188,-86,-57,-2,39,87,100,-11,113,-15,75,-31,66,143,-15,-103,-20,-27,52,95,-99,-184,181]
Bias[4] = [-32,-4,145,82,58,-1,65,-52,-72,88,121,-346,99,-207,-29,-75,8,66,4,171,111,-3,-7,103,-16,4,93,-1,23,42,31,-1]
Bias[5] = [-1,56,53,-55,-51,72,105,74,108,31,-4,0,-9,12,-8,77,-71,128,-27,211,160,45,8,-6,84,-15,15,11,-0,-14,40,213]
Bias[6] = [428,390,299]
min_noise = [-500,-272,-255]
max_noise = [500,339,236]
white = [244, 244, 246];
black = [19, 19, 19];
bg_black_stroke = [19, 19, 19, 20];
bg_white_stroke = [255-bg_black_stroke[0], 255-bg_black_stroke[1], 255-bg_black_stroke[2], 20];
bg_red_stroke = [349, 100, 35];
min_luminance = 0.5;
precision = 1000; // model file has been written to three decimal places, and without the "0." to save space. So need to divide by precision to get the right weights, biases, min_noise, max_noise
/*************************************************************************/
/*************************************************************************
* Features
*************************************************************************/
Nx = Ny = Math.sqrt(masks[0].length);
num_prototypes = masks.length; // number of shapes the generative model samples from
CLR_FROM_MODEL = "AI", CLR_UNIFORM = "random"; // do colors come from the model or uniform?
SAMPLE_COLOR_OPS = [CLR_FROM_MODEL, CLR_UNIFORM];
_C = calculateFeatures(tokenData);
use_colors = palettes[pale