Files
ArtPlayer/docs/assets/websr/cnn-2x-s-3d.json
T
Harvey Zhao 7dffd99cfd Refactor code structure for improved readability and maintainability
Remove debugging border from the websr plugin's styling

Enhance canvas sizing logic in artplayer-plugin-websr

- Updated canvas positioning to center it within the player.
- Introduced a new function to calculate canvas size based on the video aspect ratio.
- Adjusted canvas dimensions during initialization and on resize events to maintain aspect ratio.
- Ensured canvas styles are updated to reflect the calculated dimensions.

feat: add comparison mode to artplayer-plugin-websr

- Updated README.md to reflect new comparison feature and simplified content.
- Modified package.json to remove unnecessary keywords.
- Enhanced index.js to implement comparison functionality, allowing users to compare original and upscaled video.
- Added new methods for enabling, disabling, and toggling comparison mode, as well as setting and getting the comparison position.
- Updated TypeScript definitions to include new comparison options and methods.
2026-02-10 23:02:31 +08:00

1 line
13 KiB
JSON

{"name": "anime4k/cnn-2x-s", "layers": {"conv2d_tf": {"name": "conv2d_tf", "type": "conv", "inputs": ["input_image"], "output": "conv2d_tf", "weights": [-0.0022612927, 0.056973718, -0.018455653, 0.14739583, -0.122750364, 0.23741247, 0.15598795, 0.05692804, 0.18175821, 0.13481095, -0.08827108, 0.05554242, 0.0, 0.0, 0.0, 0.0, 0.04206811, 0.23834495, 0.13003352, -0.077002496, 0.17685443, -0.20654015, 0.06842113, 0.2903542, -0.26250055, 0.13811174, 0.26133212, -0.02114791, 0.0, 0.0, 0.0, 0.0, 0.093419984, -0.07030613, 0.29529554, -0.04851454, -0.18972242, 0.14136502, -0.04747689, -0.06364426, 0.22331561, -0.10553665, 0.16183273, 0.05455794, 0.0, 0.0, 0.0, 0.0, 0.24077286, 0.23530032, -0.058636595, -0.37148198, -0.06763021, 0.3874437, 0.15182178, -0.5923735, -0.13545403, 0.15376179, 0.21833488, -0.2147259, 0.0, 0.0, 0.0, 0.0, -0.2060378, 0.20107107, -0.57699513, 0.17214543, 0.26857927, 0.21768239, -0.54763824, 0.022310967, 0.24290903, 0.0074973702, -0.73197544, 0.16953811, 0.0, 0.0, 0.0, 0.0, -0.53420544, -0.09096746, -0.25905782, 0.13050057, -0.21312474, -0.046465185, -0.19382372, -0.079869874, -0.48216957, 0.036481928, -0.2352641, -0.059043337, 0.0, 0.0, 0.0, 0.0, -0.030450007, -0.10884538, 0.18111393, -0.1775848, 0.27219498, -0.09239544, -0.026854752, -0.14357966, -0.1850866, 0.1308016, 0.028251573, -0.21514907, 0.0, 0.0, 0.0, 0.0, -0.10568889, 0.15597937, 0.27339727, 0.0804553, 0.04280254, -0.08279245, 0.20513073, 0.055260282, 0.31278867, -0.24821152, 0.29145843, 0.10567111, 0.0, 0.0, 0.0, 0.0, 0.25927135, -0.16821514, 0.005973275, -0.11551916, -0.49868804, 0.103718266, 0.1801412, 0.06371136, -0.06251711, 0.058491655, 0.08287211, -0.04250653, 0.0, 0.0, 0.0, 0.0], "bias": [0.42747816, -0.50199944, -0.008679179, 0.002979711]}, "conv2d_1_tf": {"name": "conv2d_1_tf", "type": "conv", "inputs": ["conv2d_tf"], "output": "conv2d_1_tf", "weights": [0.14501162, 0.08745608, 0.047154814, 0.11138436, -0.030867573, -0.0009166872, 0.055052515, -0.12617113, -0.104578145, 0.0068466533, 0.013762538, 0.111968696, 0.07529147, 0.006874992, 0.15803319, 0.19343081, 0.10959786, -0.057358194, 0.061577655, -0.008993094, 0.048110843, -0.0864788, 0.01113672, -0.22644496, -0.12960532, 0.030239241, -0.08421794, -0.13423525, -0.07145387, 0.044097863, 0.009972901, 0.04685787, -0.023261277, 0.03164763, 0.028907845, -0.0102096815, 0.1474105, -0.03114013, 0.15159902, -0.086211964, 0.04718239, 0.0018872966, 0.03155034, 0.028671373, 0.08148231, 0.17568494, 0.047075186, 0.34778616, 0.036335807, -0.094797246, -0.4159549, 0.24694933, 0.24209529, -0.07121227, 0.1532561, 0.3843501, -0.07694775, 0.19775048, -0.32267457, -0.09720791, 0.020951513, -0.09151028, 0.3170201, 0.1605608, -0.07707157, 0.043557756, 0.05671068, -0.01463445, -0.26492572, 0.18719704, -0.095243685, 0.4080296, 0.41637594, 0.11404859, -0.033315994, 0.066214, 0.021033298, 0.18487465, -0.18571156, -0.54635674, 0.068084195, -0.096393734, 0.0035257551, 0.012287477, -0.07196971, 0.025817184, -0.07986198, 0.07784954, -0.16452111, 0.031261202, 0.023056887, -0.0522975, -0.009634468, -0.31535807, -0.12919909, 0.033792194, 0.10813535, -0.05337902, 0.06076626, 0.07202521, 0.09736061, -0.08541826, -0.027104156, 0.10542381, -0.005607362, -0.11555167, 0.14021239, 0.18931355, -0.017547207, -0.108811274, -0.03125718, 0.14564131, -0.1093017, 0.013502633, 0.018116413, 0.018391598, -0.18378423, -0.401403, 0.012552945, 0.15719055, -0.0228895, 0.02655741, -0.043465126, -0.044321306, 0.23494045, -0.15205893, 0.18678686, 0.3955797, -0.02278326, 0.039361916, 0.011373453, 0.013933539, 0.11071886, 0.11702748, -0.12705022, 0.19540352, -0.07263767, 0.041922275, 0.009229501, 0.024164628, 0.10296556, 0.16725765, -0.0818962, -0.0047961213, 0.29457232, 0.13599043, -0.008714703, -0.16847761, 0.040908597, -0.04422869, 0.011877597, 0.075768694, 0.14954948, 0.040835135, 0.0846475, -0.22214502, -0.056186993, 0.0638945, -0.0042281435, -0.23239982, -0.06668496, 0.1756623, 0.007815604, -0.25763178, -0.04470249, 0.06488682, 0.028682206, 0.16186592, -0.011941624, -0.06400568, 0.10282864, 0.039630037, 0.19423516, -0.031500183, 0.106168106, 0.036937393, 0.09141408, -0.010553094, 0.1342473, -0.043508966, -0.17903467, 0.08791904, -0.036400225, 0.028037839, -0.029616812, -0.026422223, -0.022944598, -0.010333497, -0.031189896, 0.03240508, -0.0785576, 0.015098909, -0.041526146, 0.26786005, -0.46808454, -0.22427405, -0.22540379, 0.1254596, 0.08504417, -0.4350252, 0.008509114, -0.11203634, -0.26448494, 0.08993352, -0.06692775, 0.0062625394, -0.1925751, -0.19362088, 0.018179841, -0.05096496, 0.0597967, -0.05776889, 0.035965182, -0.065931715, -0.37168455, -0.10637159, -0.23258503, 0.09219399, 0.12451923, -0.04139515, 0.11661162, -0.40143165, -0.19453132, 0.16580793, -0.12704377, -0.058811054, -0.030635664, 0.040619805, 0.18785484, 0.019730633, 0.0033181638, 0.03790057, 0.073501006, 0.006731647, 0.028191924, -0.010616595, -0.29848912, 0.10158166, 0.059347004, 0.0060802675, -0.15607527, 0.13109104, 0.11584357, -0.20041798, -0.08759147, 0.2311201, -0.10415703, -0.17287001, -0.13570547, -0.0013140697, 0.031969193, -0.06712297, 0.03109821, 0.07168353, -0.02632724, -0.04616807, -0.11833851, 0.06912322, 0.06699686, -0.045669388, -0.27883604, -0.2241475, 0.023967598, 0.012623573, 0.061143085, 0.04902685, 0.0778742, 0.021383097, -0.08681259, 0.10467826, -0.065506324, -0.049228683, -0.0019070295, 0.029631872, 0.060760606, -0.030946832, 0.2994689, -0.12840995, 0.21215108, -0.0053534615, -0.0021973972, 0.017675998, -0.034374226, -0.024978062, -0.0024610686, 0.06933817, -0.017244197, 0.02603358], "bias": [-0.02344713, -0.019138234, 0.027307548, -0.016841773]}, "conv2d_2_tf": {"name": "conv2d_2_tf", "type": "conv", "inputs": ["conv2d_1_tf"], "output": "conv2d_2_tf", "weights": [-0.039890725, -0.043177314, -0.048805468, 0.09799249, -0.10349542, -0.0062729074, 0.039693516, -0.30216882, -0.042738833, 0.0037364126, -0.30656242, 0.062134158, -0.114294335, 0.016868334, 0.09991796, -0.16585416, -0.007722792, 0.0026812176, 0.17971657, -0.113222905, 0.082076594, -0.17681628, 0.04895819, -0.019178009, 0.0021760853, 0.007935037, 0.085299194, 0.5795741, 0.12266421, -0.02705999, 0.10337303, 0.008091079, 0.107033685, -0.114926584, 0.120950684, 0.08321136, 0.110764876, -0.18382913, 0.055194996, 0.0058637825, 0.0027986306, 0.023781013, -0.09152976, -0.004664087, -0.030794349, 0.19648388, -0.106206514, 0.011675214, 0.16479693, 0.02723046, -0.33223322, 0.2810804, -0.026157184, -0.06415624, -0.27675617, 0.12207766, -0.12737454, 0.060046714, -0.25152156, -0.34489653, -0.09127256, 0.0072614057, -0.11668148, 0.043664586, -0.32403904, -0.04402432, -0.0707074, -0.34870082, -0.32919306, 0.122477666, 0.046921723, 0.060934648, 0.1780341, 0.06262362, 0.27952728, -0.49787056, 0.12264163, 0.26361758, 0.040308613, -0.021964962, 0.15004724, 0.1592199, 0.105700396, -0.0025329862, 0.23848045, -0.21546772, -0.044658013, -0.15791084, 0.14626935, -0.378461, -0.49246082, -0.34476835, -0.20195667, 0.40457812, 0.020117834, 0.0108911805, -0.1275007, -0.031887986, -0.105828516, -0.09993916, -0.0789705, 0.02988785, -0.100113094, 0.124891564, 0.012250016, -0.06847648, -0.08420542, -0.03661604, 0.021004545, -0.014452873, -0.2746848, 0.14506856, -0.14512329, 0.026058046, 0.14578882, 0.071553744, 0.20983543, 0.066319995, -0.04972493, 0.122568, 0.28537628, -0.16746223, 0.19239922, 0.24576762, 0.0882917, -0.058981728, 0.04752188, 0.10322665, 0.021030637, -0.003970932, 0.06960414, 0.12663887, 0.09693644, -0.03999947, 0.0800375, 0.030332638, -0.07900574, -0.22498104, 0.19432296, 0.054668345, -0.01763416, -0.15721561, 0.10118607, 0.11219367, -0.009966864, 0.09320021, -0.07938437, -0.06566463, 0.09310864, 0.0053221164, -0.2099144, 0.05373579, 0.027946053, -0.023884319, 0.04834163, -0.0780051, 0.0857735, 0.012755161, 0.01023881, -0.00383303, -0.016435744, 0.018559936, -0.2176067, -0.0054557296, -0.07195422, 0.0692162, 0.075846516, 0.27307245, 0.07175624, -0.114486076, 0.25018236, -0.03749313, -0.06727194, 0.07871246, -0.0007490986, -0.03001509, -0.032647822, 0.023190917, -0.01774768, 0.030920718, -0.07061917, 0.09621561, -0.06816064, 0.068008244, 0.0014368364, -0.14475296, 0.17289262, -0.038543962, -0.027464092, -0.01796397, -0.044793665, -0.011956431, 0.054812565, -0.053032372, 0.30748066, -0.08687006, 0.10202706, 0.0029041155, -0.115486674, -0.2645544, 0.015263432, 0.031279057, 0.08800576, -0.019194532, 0.11362799, 0.075985774, 0.19539891, -0.18878466, 0.09173534, -0.04460677, -0.07309785, -0.24413848, 0.12608801, -0.271749, 0.13912252, -0.17045498, -0.12514752, 0.12182009, -0.1299306, 0.17265181, -0.06879836, -0.18997647, -0.20725493, 0.31907147, 0.033339124, -0.14780758, -0.1370739, 0.0036579582, -0.060550068, -0.0691961, -0.057228908, 0.0072487923, -0.0023379368, 0.24429576, -0.07613118, 0.03434058, -0.03181958, 0.28133467, 0.030435372, 0.19488539, 0.019704228, 0.010165714, -0.16066891, -0.00033899263, 0.031808436, -0.078739755, 0.017008947, -0.13978824, 0.0050396374, 0.020338936, 0.04410693, 0.0062177656, 0.08468023, -0.03923981, 0.079581976, -0.13034168, 0.059460845, -0.13999806, 0.0931573, 0.058956064, 0.024247985, -0.11563655, 0.2314946, -0.03302071, 0.07996316, 0.036187988, -0.10050295, -0.079407915, -0.31566983, -0.12541561, 0.23554285, 0.015490853, 0.007953412, -0.03289111, -0.0072260373, -0.012021925, 0.05149689, -0.08714197, -0.027808966, -0.11511536, -0.03929646, 0.009873328, -0.046901885, 0.0073965453, -0.14423016, 0.19622529, -0.05005727, 0.033949886], "bias": [-0.019906262, 0.08126011, -0.075884655, 0.077329986]}, "conv2d_last_tf": {"name": "conv2d_last_tf", "type": "conv", "inputs": ["conv2d_2_tf"], "output": "conv2d_last_tf", "weights": [0.07133183, 0.0016752428, 0.030318232, -0.004665937, -0.008498871, -0.004686025, -0.0049808132, 0.01026427, 0.040732212, -0.025563983, 0.009165312, -0.023605285, -0.0027995454, -0.014552136, 0.0018952736, -0.007138619, 0.35493535, -0.051033985, -0.025372216, -0.13312422, 0.06611496, -0.06637084, -0.037630543, -0.098976664, 0.10229619, -0.058466848, 0.006023955, -0.05835095, -0.046110857, -0.019532626, -0.022395106, -0.0156295, 0.0827311, -0.12388043, 0.20617028, -0.08633087, -0.00845795, -0.05211151, 0.07228622, -0.024161061, -0.15596767, -0.032723315, 0.0824215, -0.018796502, 0.04874821, 0.029739998, -0.026829267, 0.0032474198, -0.18656045, -0.061627988, -0.0131399855, 0.022818392, -0.16671775, -0.12671314, -0.030139195, -0.07633152, -0.049449783, 0.060048047, -0.041132163, 0.018467933, 0.00706779, 0.0071395696, -0.0031093734, -0.0017418416, -0.02175176, 0.42608225, -0.38475314, -0.17486429, 0.08835236, 0.26913866, -0.052896827, 0.10517906, 0.03877792, 0.3373339, -0.21059902, 0.045664266, 0.06415432, 0.023228332, 0.021828908, 0.023149688, -0.019138306, 0.16306506, -0.0053943414, 0.31638545, 0.018365094, 0.010707725, 0.048904505, 0.120486036, 0.02113893, -0.10962796, 0.33141395, 0.37216178, -0.07611497, -0.060026426, -0.08608253, -0.11521967, 0.0040507875, -0.06653388, 0.0328962, 0.028937623, 0.008927692, -0.04355819, 0.045102023, 0.04109595, 0.0652753, 0.015634527, 0.0053549972, -0.011333132, 0.01361146, -0.005396795, 0.004093436, 0.0060322816, -0.0036383586, -0.02336341, -0.017201578, -0.09791569, -0.04473304, -0.01203167, -0.041311555, -0.04416123, -0.036245298, -0.15497433, 0.07333805, -0.10112623, 0.020933554, -0.041745007, 0.012103272, -0.023739012, -0.008241564, -0.020595504, -0.0006782346, -0.048773807, 0.032936696, 0.047348764, 0.014033427, 0.011907407, 0.009618167, -0.018901952, 0.0070362766, 0.012340666, 0.0007619144, -0.054605827, -3.5334226e-05, -0.11021157, -0.048151687, -0.00899592, -0.004861141, 0.0056142793, 0.24385378, -0.08306673, -0.077574156, -0.14646773, -0.028775515, 0.007798171, -0.0075264857, 0.010917652, 0.005639496, 0.019948693, -0.0059442986, 0.006675507, -0.14258675, 0.034797378, -0.030165274, 0.05438797, -0.13830562, -0.05885979, 0.472122, 0.12036084, 0.0038416793, 0.013200719, -0.007353924, 0.009592606, -0.093894, 0.04937326, 0.035649754, 0.063901626, -0.039864738, 0.11054946, -0.2538933, 0.037129845, 0.050585154, 0.03805274, -0.07598586, -0.005057814, -0.06129648, 0.023126397, 0.017604494, 0.0459354, -0.048549283, 0.032077175, -0.19834857, 0.031708207, -0.0026005239, 0.061327945, 0.016378205, 0.043482546, 0.10108919, 0.5256725, -0.12822926, 0.06952174, 0.0119123, -0.036401983, 0.010400451, -0.008723761, 0.03431269, -0.009913041, 0.02409113, -0.000766891, 0.11117759, 0.07032405, 0.003704779, 0.11167844, -0.62188756, -0.3739269, 0.0055819405, 0.53674835, -0.04958438, -0.09760491, -0.017153075, -0.070211254, -0.005483809, -0.27343768, 0.080283344, -0.052245308, -0.02541872, -0.099812746, 0.018636622, -0.23931229, 0.010976857, 0.065530084, -0.23205467, -0.15788494, -0.076372266, -0.1713204, -0.03509762, -0.11451107, 0.47551468, 0.044099037, 0.26833785, -0.2527794, 0.0069955545, -0.031639207, 0.015470223, 0.007268053, 0.019889759, 0.016428472, -0.037464887, -0.08534919, -0.004240394, 0.00026963078, -0.0024600318, -0.011556767, 0.0037855022, 0.049952496, -0.024932005, 0.0048597357, 0.042872604, 0.115187086, -0.02432247, -0.051830772, 0.079605766, -0.119161814, 0.11996451, 0.060810324, 0.013078134, 0.0399184, -0.004383816, 0.015711276, -0.064008184, -0.0558677, 0.052412614, 0.08316313, 0.004131363, -0.0018747074, 0.043883406, 0.1256532, -0.0029544404, -0.0032028174, 0.029340198, -0.048101995, -0.033351574, -0.010286912, 0.010283533, 0.06574089, -0.008085968, 0.18071443, -0.096568786, 0.0052498854], "bias": [0.013215065, 0.015816139, 0.008702354, 0.0117013585]}, "pixel_shuffle": {"name": "pixel_shuffle", "type": "pixel_shuffle", "inputs": ["conv2d_last_tf"], "output": "canvas"}}}