1337 lines
205 KiB
Plaintext
1337 lines
205 KiB
Plaintext
|
// Revised 02/02/24
|
||
|
// https://github.com/Artoriuz/ArtCNN
|
||
|
|
||
|
// MIT License
|
||
|
|
||
|
// Copyright (c) 2024 Joao Chrisostomo
|
||
|
|
||
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||
|
// of this software and associated documentation files (the "Software"), to deal
|
||
|
// in the Software without restriction, including without limitation the rights
|
||
|
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||
|
// copies of the Software, and to permit persons to whom the Software is
|
||
|
// furnished to do so, subject to the following conditions:
|
||
|
|
||
|
// The above copyright notice and this permission notice shall be included in all
|
||
|
// copies or substantial portions of the Software.
|
||
|
|
||
|
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||
|
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||
|
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||
|
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||
|
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||
|
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||
|
// SOFTWARE.
|
||
|
|
||
|
//!DESC ArtCNN C4F16 (Conv-0)
|
||
|
//!HOOK LUMA
|
||
|
//!BIND LUMA
|
||
|
//!SAVE conv2d_tf
|
||
|
//!WIDTH LUMA.w
|
||
|
//!HEIGHT LUMA.h
|
||
|
//!COMPONENTS 4
|
||
|
//!WHEN OUTPUT.w LUMA.w / 1.3 > OUTPUT.h LUMA.h / 1.3 > *
|
||
|
#define input_0(x_off, y_off) (LUMA_texOff(vec2(x_off, y_off)))
|
||
|
vec4 hook() {
|
||
|
vec4 result = mat4(-0.0344318, -0.18078314, 0.015049368, 0.004280265, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0) * input_0(-1.0, -1.0);
|
||
|
result += mat4(0.026365899, 0.094916604, 0.010920062, 0.17550132, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0) * input_0(-1.0, 0.0);
|
||
|
result += mat4(0.015443156, 0.1940094, -0.055331036, 0.10077051, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0) * input_0(-1.0, 1.0);
|
||
|
result += mat4(0.008600319, 0.18487647, 0.17361028, 0.13435346, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0) * input_0(0.0, -1.0);
|
||
|
result += mat4(-0.046105247, -0.07612645, -0.38553324, 0.3334207, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0) * input_0(0.0, 0.0);
|
||
|
result += mat4(0.06354227, -0.17214447, 0.2824285, -0.05709272, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0) * input_0(0.0, 1.0);
|
||
|
result += mat4(0.0027095554, 0.07522423, -0.12748435, 0.0560561, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0) * input_0(1.0, -1.0);
|
||
|
result += mat4(-0.24130277, -0.12270764, 0.11759724, 0.115722485, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0) * input_0(1.0, 0.0);
|
||
|
result += mat4(0.22084256, 0.035910502, -0.030909348, 0.10805552, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0) * input_0(1.0, 1.0);
|
||
|
result += vec4(-0.00788432, -0.015982246, 0.0014580011, -0.0787582);
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
//!DESC ArtCNN C4F16 (Conv-0)
|
||
|
//!HOOK LUMA
|
||
|
//!BIND LUMA
|
||
|
//!SAVE conv2d_tf1
|
||
|
//!WIDTH LUMA.w
|
||
|
//!HEIGHT LUMA.h
|
||
|
//!COMPONENTS 4
|
||
|
//!WHEN OUTPUT.w LUMA.w / 1.3 > OUTPUT.h LUMA.h / 1.3 > *
|
||
|
#define input_0(x_off, y_off) (LUMA_texOff(vec2(x_off, y_off)))
|
||
|
vec4 hook() {
|
||
|
vec4 result = mat4(0.07630089, -0.109104894, -0.056332972, 0.048516314, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0) * input_0(-1.0, -1.0);
|
||
|
result += mat4(-0.05873391, 0.096255705, 0.028540753, -0.044371724, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0) * input_0(-1.0, 0.0);
|
||
|
result += mat4(0.061662868, 0.028661782, 0.033012826, 0.0034995994, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0) * input_0(-1.0, 1.0);
|
||
|
result += mat4(-0.11077748, -0.027771331, -0.020878842, -0.22079797, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0) * input_0(0.0, -1.0);
|
||
|
result += mat4(0.14797594, -0.207446, 0.12863205, 0.18078731, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0) * input_0(0.0, 0.0);
|
||
|
result += mat4(0.10867847, -0.24690239, -0.11676006, 0.030556457, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0) * input_0(0.0, 1.0);
|
||
|
result += mat4(0.079862714, 0.12113046, 0.08282269, 0.17149088, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0) * input_0(1.0, -1.0);
|
||
|
result += mat4(-0.12760092, 0.27198592, -0.16575593, -0.13514367, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0) * input_0(1.0, 0.0);
|
||
|
result += mat4(-0.07669048, 0.08440439, 0.09040478, -0.030830164, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0) * input_0(1.0, 1.0);
|
||
|
result += vec4(-0.05846052, -0.00836867, 0.0009703153, 0.000678133);
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
//!DESC ArtCNN C4F16 (Conv-0)
|
||
|
//!HOOK LUMA
|
||
|
//!BIND LUMA
|
||
|
//!SAVE conv2d_tf2
|
||
|
//!WIDTH LUMA.w
|
||
|
//!HEIGHT LUMA.h
|
||
|
//!COMPONENTS 4
|
||
|
//!WHEN OUTPUT.w LUMA.w / 1.3 > OUTPUT.h LUMA.h / 1.3 > *
|
||
|
#define input_0(x_off, y_off) (LUMA_texOff(vec2(x_off, y_off)))
|
||
|
vec4 hook() {
|
||
|
vec4 result = mat4(-0.03361707, 0.115808256, -0.18414906, -0.096526586, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0) * input_0(-1.0, -1.0);
|
||
|
result += mat4(-0.1810052, 0.3616793, 0.36699176, 0.14841634, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0) * input_0(-1.0, 0.0);
|
||
|
result += mat4(0.099875614, 0.10717938, -0.19971868, -0.06466119, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0) * input_0(-1.0, 1.0);
|
||
|
result += mat4(0.14633138, -0.033763472, 0.18019238, 0.03754667, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0) * input_0(0.0, -1.0);
|
||
|
result += mat4(-0.3734624, -0.85920167, -0.33048797, -0.10320476, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0) * input_0(0.0, 0.0);
|
||
|
result += mat4(0.2711651, 0.17318748, 0.16604401, 0.08777103, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0) * input_0(0.0, 1.0);
|
||
|
result += mat4(0.06484845, -0.025148371, 0.010894599, 0.07569198, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0) * input_0(1.0, -1.0);
|
||
|
result += mat4(0.18577154, 0.20522597, -0.04021007, -0.029188823, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0) * input_0(1.0, 0.0);
|
||
|
result += mat4(-0.2502008, -0.01265762, 0.025856482, -0.053587556, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0) * input_0(1.0, 1.0);
|
||
|
result += vec4(0.042431127, 0.000666922, 0.00095471984, -0.0021739434);
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
//!DESC ArtCNN C4F16 (Conv-0)
|
||
|
//!HOOK LUMA
|
||
|
//!BIND LUMA
|
||
|
//!SAVE conv2d_tf3
|
||
|
//!WIDTH LUMA.w
|
||
|
//!HEIGHT LUMA.h
|
||
|
//!COMPONENTS 4
|
||
|
//!WHEN OUTPUT.w LUMA.w / 1.3 > OUTPUT.h LUMA.h / 1.3 > *
|
||
|
#define input_0(x_off, y_off) (LUMA_texOff(vec2(x_off, y_off)))
|
||
|
vec4 hook() {
|
||
|
vec4 result = mat4(0.08175446, -0.13054441, 0.25625625, -0.12896311, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0) * input_0(-1.0, -1.0);
|
||
|
result += mat4(0.048582144, -0.029526427, 0.07224649, -0.26419488, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0) * input_0(-1.0, 0.0);
|
||
|
result += mat4(-0.098395094, 0.109146126, -0.058907688, -0.12307214, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0) * input_0(-1.0, 1.0);
|
||
|
result += mat4(-0.20392899, 0.23330805, 0.42225167, 0.21529657, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0) * input_0(0.0, -1.0);
|
||
|
result += mat4(0.024363339, -0.11804162, -0.51805145, -0.009638481, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0) * input_0(0.0, 0.0);
|
||
|
result += mat4(0.12068929, -0.06757527, -0.16617517, -0.018518953, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0) * input_0(0.0, 1.0);
|
||
|
result += mat4(0.018397592, -0.06955144, 0.062205806, 0.023738263, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0) * input_0(1.0, -1.0);
|
||
|
result += mat4(0.06427145, 0.12990694, -0.16881876, 0.24747896, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0) * input_0(1.0, 0.0);
|
||
|
result += mat4(-0.03426582, -0.06298401, 0.046074223, 0.17177333, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0) * input_0(1.0, 1.0);
|
||
|
result += vec4(-0.012588948, 0.002721366, 0.013738457, -0.06171063);
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
//!DESC ArtCNN C4F16 (Conv-1-ReLU)
|
||
|
//!HOOK LUMA
|
||
|
//!BIND conv2d_tf
|
||
|
//!BIND conv2d_tf1
|
||
|
//!BIND conv2d_tf2
|
||
|
//!BIND conv2d_tf3
|
||
|
//!SAVE conv2d_1_tf
|
||
|
//!WIDTH LUMA.w
|
||
|
//!HEIGHT LUMA.h
|
||
|
//!COMPONENTS 4
|
||
|
//!WHEN OUTPUT.w LUMA.w / 1.3 > OUTPUT.h LUMA.h / 1.3 > *
|
||
|
#define input_0(x_off, y_off) (conv2d_tf_texOff(vec2(x_off, y_off)))
|
||
|
#define input_1(x_off, y_off) (conv2d_tf1_texOff(vec2(x_off, y_off)))
|
||
|
#define input_2(x_off, y_off) (conv2d_tf2_texOff(vec2(x_off, y_off)))
|
||
|
#define input_3(x_off, y_off) (conv2d_tf3_texOff(vec2(x_off, y_off)))
|
||
|
vec4 hook() {
|
||
|
vec4 result = mat4(0.23102085, 0.3667256, 0.062422123, -0.016479326, 0.11174099, 0.019678904, 0.053763542, -0.058722608, -0.71625376, 0.4019529, 0.0071369307, -0.0063044336, -0.2939305, -0.072275266, -0.19426529, 0.02468981) * input_0(-1.0, -1.0);
|
||
|
result += mat4(0.041480258, 0.020361068, 0.10379375, -0.17584099, -0.16123912, 0.19353612, 0.36551127, -0.18223771, 0.1816088, 0.2632076, 0.093869954, 0.041368578, 0.005886762, 0.12487783, -0.032530963, 0.011466818) * input_0(-1.0, 0.0);
|
||
|
result += mat4(0.06509767, 0.05004678, 0.0061875465, 0.24540287, -0.14180182, -0.22787207, 0.013387778, 0.33469334, 0.43722034, -0.29166433, -0.02132765, -0.041630436, -0.06029735, -0.09206117, -0.15710546, -0.023683863) * input_0(-1.0, 1.0);
|
||
|
result += mat4(-0.36304572, -0.127257, -0.019651702, 0.123599045, 0.9094681, 0.15687141, 0.021611053, 0.12035437, -0.8532541, -0.57352793, -0.030019095, -0.041869868, -0.91230506, 0.14779048, 0.03801047, 0.11780561) * input_0(0.0, -1.0);
|
||
|
result += mat4(-0.07599307, -0.16115505, -0.038359426, -0.09258247, -0.63750285, 0.45837379, -0.036910906, -0.018864991, -0.52065617, 0.9701053, 0.11160399, -0.45986903, -0.035932202, 0.044519756, 0.13171983, 0.13134283) * input_0(0.0, 0.0);
|
||
|
result += mat4(-0.025638364, -0.012952783, -0.0054089846, -0.07651621, 0.033888396, 0.026220191, -0.21533121, 0.4445904, 0.45314306, -0.2217389, -0.14757285, 0.9094385, -0.06517983, -0.08435639, -0.08006348, 0.028452639) * input_0(0.0, 1.0);
|
||
|
result += mat4(0.46368814, -0.07920139, 0.12376586, -0.046466436, 0.15384373, -0.00023572896, 0.105949156, -0.0892452, -0.6066053, -0.13000803, -0.12450223, 0.10507338, -0.46564347, -0.025439844, -0.17601565, -0.110528514) * input_0(1.0, -1.0);
|
||
|
result += mat4(-0.4831862, 0.04631266, -0.053037617, -0.07904607, -0.39301175, -0.054040115, -0.11590825, 0.055631615, 0.102882765, 0.3147772, 0.14307843, -0.17017566, -0.18420552, 0.091830835, 0.08456496, 0.014237895) * input_0(1.0, 0.0);
|
||
|
result += mat4(-0.27090788, 0.025150781, -0.056142338, -0.080115154, 0.24416752, -0.12941013, -0.18607505, -0.093451396, 0.06570437, -0.14147446, 0.08938883, -0.056229685, 0.060511056, -0.1288837, 0.04521636, -0.10070962) * input_0(1.0, 1.0);
|
||
|
result += mat4(0.958001, -0.11917081, 0.02948834, 0.13068093, -0.38614428, -0.03702043, 0.20287102, -0.018953318, -0.775785, 0.5333968, -0.14986658, -0.041062184, -0.53345966, 0.263917, -0.14115791, -0.062699996) * input_1(-1.0, -1.0);
|
||
|
result += mat4(-0.27031106, -0.14903031, 0.05201787, -0.055536985, -0.27323085, 0.1335721, -0.29237422, -0.000159528, 0.065754995, -0.16168645, 0.14074549, 0.32271343, -0.27186635, 0.31436163, -0.081247866, 0.22290573) * input_1(-1.0, 0.0);
|
||
|
result += mat4(0.047747154, 0.087880105, -0.080229975, 0.01694664, 0.19118759, -0.06429459, 0.107921325, 0.08601122, 0.35068178, -0.014905597, -0.1936079, -0.017416304, -0.06023213, 0.06050189, 0.4498534, 0.052081086) * input_1(-1.0, 1.0);
|
||
|
result += mat4(-0.45672786, 0.32178056, 0.22262652, -0.002164721, 0.591333, -0.44196433, 0.052751113, -0.2700018, 1.0429035, -0.42649457, -0.20800413, -0.045273375, -0.22278692, -0.027024172, -0.17420666, 0.087286375) * input_1(0.0, -1.0);
|
||
|
result += mat4(0.2052261, -0.37836382, -0.0022982792, 0.1376647, -0.14170541, 0.4165179, 0.07634652, 0.061207596, -0.23148991, 0.13457325, 0.0788838, -0.23896386, 0.7808012, -1.0306547, -0.3494335, 0.31092286) * input_1(0.0, 0.0);
|
||
|
result += mat4(0.06387279, -0.055801682, 0.19141574, -0.23525518, 0.033907752, 0.06290166, -0.07854284, 0.33186775, -0.20524701, 0.11877506, -0.10527987, 0.33476698, -0.2729123, 0.2873864, 0.28428382, -0.6392432) * input_1(0.0, 1.0);
|
||
|
result += mat4(0.4818009, 0.38414353, -0.13813363, 0.0852642, 0.19977632, -0.0015558511, 0.08996572, 0.094142534, -0.7237521, -0.0014716417, 0.18851145, 0.2494337, 0.08499397, 0.02087723, -0.19918197, -0.074144684) * input_1(1.0, -1.0);
|
||
|
result += mat4(-0.30396387, 0.13956264, -0.23534441, -0.12367283, -0.29889992, -0.07328495, -0.19461557, 0.107140854, 0.0829154, -0.10420854, 0.04751198, -0.398132, 0.5071173, 0.1916854, -0.044436153, 0.12490022) * input_1(1.0, 0.0);
|
||
|
result += mat4(-0.05446919, 0.021743823, -0.33803183, 0.115073204, 0.24486868, 0.106978565, -0.009897207, -0.19002652, 0.2710077, -0.12194952, 0.175326, -0.17932464, -0.16501276, -0.33747825, 0.2525886, -0.28647333) * input_1(1.0, 1.0);
|
||
|
result += mat4(-0.03293153, -0.27736676, -0.0065127527, -0.03210839, -0.180015, 0.11778944, 0.039235506, -0.14770687, 0.29679877, 0.3181709, 0.16960411, -0.033722393, 0.8702213, -0.046333417, 0.10572627, -0.06321542) * input_2(-1.0, -1.0);
|
||
|
result += mat4(0.028635444, 0.35468572, 0.060956202, -0.046301186, 0.2691854, 0.08746016, -0.20409156, 0.013783987, 0.087102674, 0.08896387, 0.27014574, -0.020094272, -0.31487665, 0.12511939, 0.23501572, -0.02844609) * input_2(-1.0, 0.0);
|
||
|
result += mat4(0.14211841, 0.011456142, -0.07192511, 0.09781762, 0.12500869, 0.06985939, 0.07297525, -0.0668327, 0.05172649, -0.21555439, -0.11303633, 0.05155522, -0.14502986, 0.06042028, 0.045378447, 0.29547817) * input_2(-1.0, 1.0);
|
||
|
result += mat4(-0.49439806, -0.31370687, -0.07659236, 0.048723605, -0.03588605, -0.5940245, 0.106432326, -0.06614232, 0.2018615, -0.26474404, 0.053761464, 0.031998083, -1.0498749, 0.042053115, 0.16592905, 0.1404836) * input_2(0.0, -1.0);
|
||
|
result += mat4(-0.12831159, 0.71914333, 0.36071703, -0.34845918, -0.014322779, 0.2964962, 0.3969452, -0.7275337, -0.15734918, 0.84333384, 0.24039768, -0.20675051, 0.24033651, 0.18810317, -0.16342512, -0.21884578) * input_2(0.0, 0.0);
|
||
|
result += mat4(-0.2741385, 0.09838329, -0.27343825, 0.73882455, -0.28087577, 0.21540697, 0.13134158, 0.43787634, 0.34616482, -0.042676847, -0.28186828, 0.41095456, 0.3249814, -0.2985662, -0.031087456, 0.050230794) * input_2(0.0, 1.0);
|
||
|
result += mat4(0.02329128, 0.022861544, 0.15675643, -0.040367924, -0.46041727, -0.077296935, 0.049844887, -0.040123027, -1.7933652, -0.4880457, -0.23319495, -0.016469236, 0.013575881, 0.045874745, -0.017661527, -0.0596432) * input_2(1.0, -1.0);
|
||
|
result += mat4(-0.13937223, 0.3543, 0.20918648, 0.008811114, 0.07770109, -0.19499834, -0.1602611, -0.10361026, -0.034328584, -0.29267007, -0.11037403, 0.09655642, 0.009992693, -0.032436945, -0.109210216, -0.09064179) * input_2(1.0, 0.0);
|
||
|
result += mat4(-0.036751393, -0.040958054, 0.005831792, -0.18270929, -0.09946563, 0.07493419, 0.057131864, 0.2124298, 0.54686797, 0.05877136, 0.051176965, -0.18503857, -0.007367192, -0.05757058, -0.17066543, 0.016413597) * input_2(1.0, 1.0);
|
||
|
result += mat4(0.50434315, -0.11232266, 0.10636233, -0.10051886, 0.44439095, -0.45936745, 0.0827637, -0.02172231, 0.26759505, 0.0735054, 0.1301486, 0.013272378, -0.024616808, 0.2670065, -0.06378425, -0.01622901) * input_3(-1.0, -1.0);
|
||
|
result += mat4(-0.08785128, -0.2014086, -0.13705926, -0.023214042, 0.16039383, 0.009258228, -0.057540312, -0.094715185, -0.3246516, 0.31711632, 0.048174135, -0.044890266, 0.032310724, -0.03906917, -0.051073033, -0.12655851) * input_3(-1.0, 0.0);
|
||
|
result += mat4(-0.05284137, 0.15386364, -0.07908928, 0.03141916, -0.254807, 0.07350008, -0.0457829, 0.025454534, -0.18154582, -0.2021139, -0.03278127, 0.2952378, -0.083563104, 0.085908614, -0.035415407, 0.097205915) * input_3(-1.0, 1.0);
|
||
|
result += mat4(-0.47781548, -0.0039848564, 0.02890776, 0.020055734, -0.38334626, 0.26213354, 0.21009701, 0.020571876, 0.4162781, -0.068654105, -0.06375123, -0.029091457, -0.1144479, -0.1434175, -0.021664366, -0.024213271) * input_3(0.0, -1.0);
|
||
|
result += mat4(0.23831245, -0.23759198, 0.11139435, -0.0284253, -0.43435907, 0.5324811, 0.15932456, 0.051532976, -0.60140985, 0.81355417, 0.08318733, 0.0074902456, -0.2294655, 0.18985763, 0.02570988, 0.06185301) * input_3(0.0, 0.0);
|
||
|
result += mat4(0.047501266, 0.14135382, 0.13926902, -0.32995674, 0.15426145, -0.21769613, -0.056508873, 0.41739115, 0.4481696, -0.044667814, -0.22878727, 1.6120688, -0.068510436, 0.12816137, -0.087967746, 0.43456796) * input_3(0.0, 1.0);
|
||
|
result += mat4(0.045051854, -0.102203526, 0.014370132, -0.13558042, 0.6196902, 0.029837543, 0.09536526, -0.0960145, -0.008864092, 0.058682065, 0.018813694, -0.008384937, 0.50527394, -0.058582716, 0.024183787, -0.04252287) * input_3(1.0, -1.0);
|
||
|
result += mat4(0.046409126, -0.22342418, -0.23079188, -0.028213685, -0.3009733, 0.011288669, -0.21724658, -0.14358976, -0.2197082, 0.26434383, -0.024798447, 0.19448462, -0.13574658, 0.26962122, 0.09754527, 0.0033913897) * input_3(1.0, 0.0);
|
||
|
result += mat4(0.02019961, -0.13027382, -0.016620006, -0.1436932, 0.14364856, 0.02281683, -0.14592478, 0.09874495, -0.42183912, -0.046069555, -0.15400597, 0.35972577, 0.021659106, 0.06872093, -0.14871477, 0.25272465) * input_3(1.0, 1.0);
|
||
|
result += vec4(-0.04442445, 0.01224734, 0.3024753, 0.0012290358);
|
||
|
return max(result, vec4(0.0));
|
||
|
}
|
||
|
|
||
|
//!DESC ArtCNN C4F16 (Conv-1-ReLU)
|
||
|
//!HOOK LUMA
|
||
|
//!BIND conv2d_tf
|
||
|
//!BIND conv2d_tf1
|
||
|
//!BIND conv2d_tf2
|
||
|
//!BIND conv2d_tf3
|
||
|
//!SAVE conv2d_1_tf1
|
||
|
//!WIDTH LUMA.w
|
||
|
//!HEIGHT LUMA.h
|
||
|
//!COMPONENTS 4
|
||
|
//!WHEN OUTPUT.w LUMA.w / 1.3 > OUTPUT.h LUMA.h / 1.3 > *
|
||
|
#define input_0(x_off, y_off) (conv2d_tf_texOff(vec2(x_off, y_off)))
|
||
|
#define input_1(x_off, y_off) (conv2d_tf1_texOff(vec2(x_off, y_off)))
|
||
|
#define input_2(x_off, y_off) (conv2d_tf2_texOff(vec2(x_off, y_off)))
|
||
|
#define input_3(x_off, y_off) (conv2d_tf3_texOff(vec2(x_off, y_off)))
|
||
|
vec4 hook() {
|
||
|
vec4 result = mat4(-0.1813186, 0.14457881, -0.03285202, 0.10625247, -0.034537904, -0.09423509, 0.04032319, -0.0106237, 0.13617463, -0.056402784, -0.04132209, -0.038927894, 0.107420675, -0.074489474, -0.066603504, -0.15293011) * input_0(-1.0, -1.0);
|
||
|
result += mat4(0.04436455, 0.29687274, -0.06578418, 0.4569071, -0.0422027, 0.1141881, 0.13917413, 0.29896125, -0.006433028, 0.2603894, -0.06812439, -0.046775877, 0.08083408, -0.08875001, -0.054784674, -0.12844416) * input_0(-1.0, 0.0);
|
||
|
result += mat4(0.10113041, 0.11781055, 0.04797878, -0.18506636, 0.29967615, -0.58315396, -0.20992145, -0.19029093, 0.18608339, -0.06591385, -0.02324382, 0.21947722, -0.03412774, -0.03591434, 0.14981544, -0.0685279) * input_0(-1.0, 1.0);
|
||
|
result += mat4(0.10971085, -0.18300888, 0.14021935, -0.07268088, -0.3098056, 0.32267585, 0.22765242, 0.10786026, -0.06417881, -0.07611155, 0.015535563, 0.04273541, 0.1905248, -0.04656157, -0.094165124, -0.044614315) * input_0(0.0, -1.0);
|
||
|
result += mat4(0.15575494, -0.2870104, 0.12578495, -0.081686825, 0.1296782, -0.27232724, -0.00593195, -0.07884531, -0.06783681, 0.17994238, 0.8565036, -0.18181132, 0.23259215, 0.11447691, -0.11206914, -0.09683646) * input_0(0.0, 0.0);
|
||
|
result += mat4(-0.022358704, -0.15281272, -0.038962066, -0.0982614, 0.014937527, 0.046811845, -0.4599468, -0.1074946, 0.0068869228, -0.47092807, -0.59383893, -0.27260137, 0.11099441, 0.12222666, 0.11724718, 0.1124359) * input_0(0.0, 1.0);
|
||
|
result += mat4(-0.06878871, -0.06303179, 0.13031062, -0.09786611, -0.04976242, 0.21200065, 0.02219528, 0.056177232, 0.020114714, 0.21965441, -0.1644566, 0.19205166, -0.096762374, -0.051187064, -0.051847383, 0.1848608) * input_0(1.0, -1.0);
|
||
|
result += mat4(0.13214068, -0.15299338, -0.15010658, -0.16501431, 0.15889268, -0.21976121, 0.12237275, -0.08688595, 0.36257437, -0.13780302, 0.023816485, 0.086948514, -0.20479077, 0.11568382, -0.04229531, 0.018304596) * input_0(1.0, 0.0);
|
||
|
result += mat4(0.030958802, -0.014990242, 0.024548898, -0.0069568516, 0.066588424, 0.1794617, -0.11846301, -0.13533135, -0.018243484, -0.14508843, 0.0046493434, -0.072399355, -0.07689172, -0.12122376, 0.08659305, 0.12821996) * input_0(1.0, 1.0);
|
||
|
result += mat4(-0.4479181, -0.10487715, 0.11975699, -0.05036385, 0.26571256, 0.37924394, 0.06349244, 0.113233395, 0.33422673, 0.0912217, 0.036976732, -0.34377855, 0.110512234, 0.11475259, -0.22205257, -0.16497158) * input_1(-1.0, -1.0);
|
||
|
result += mat4(0.030030416, -0.58875006, -0.09375569, -0.28157952, 0.25307465, 0.23814103, 0.112507656, 0.3533498, -0.049066994, -0.06744866, -0.06512752, 0.23032121, -0.22702114, -0.4695838, -0.2465906, -0.14562622) * input_1(-1.0, 0.0);
|
||
|
result += mat4(-0.23549087, -0.46666875, -0.084069096, -0.54684913, 0.4932739, 0.32364902, -0.13301225, 0.88889474, -0.13769823, -0.039481394, -0.21883868, 0.29473147, 0.2711934, 0.21930045, -0.06803664, 0.099918514) * input_1(-1.0, 1.0);
|
||
|
result += mat4(0.08801093, 0.17804238, 0.03268937, -0.030014636, -0.24234685, 0.196082, 0.23016404, -0.16035768, 0.13880461, -0.00063575205, 0.14366803, 0.22639237, 0.07099834, -0.14343525, -0.044175845, -0.07226683) * input_1(0.0, -1.0);
|
||
|
result += mat4(0.36728323, 0.020997424, -0.18107092, 0.1762701, -0.281822, 0.024427796, -0.14229095, -0.39137533, -0.10393041, -0.22737439, -0.1760147, -0.285932, -0.0039243395, -0.04677041, -0.2217912, 0.12592377) * input_1(0.0, 0.0);
|
||
|
result += mat4(0.09045431, -0.020697087, 0.20803417, 0.14318052, -0.09799255, -0.058998402, -0.43568677, -0.03815049, -0.027888397, -0.04014361, 0.0064566275, -0.20425172, -0.20419954, 0.3615939, 0.763889, 0.0946408) * input_1(0.0, 1.0);
|
||
|
result += mat4(0.07069572, 0.03320023, 0.097170815, -0.053142495, 0.023290932, -0.101554304, 0.17851919, 0.030247288, -0.24490716, 0.34123218, -0.17821132, 0.104314856, 0.1282894, -0.031525392, -0.17258845, 0.025555274) * input_1(1.0, -1.0);
|
||
|
result += mat4(0.23303832, -0.13619566, 0.039310884, 0.04909438, -0.037246097, 0.015947154, 0.038354576, -0.19057538, 0.18679161, -0.26626557, 0.30705976, 0.10118448, 0.0029388464, -0.047836877, -0.13585375, -0.008158594) * input_1(1.0, 0.0);
|
||
|
result += mat4(0.32623914, -0.11744128, -0.21590304, -0.111534834, -0.1805817, 0.194799, -0.044037204, 0.0341725, -0.13791451, 0.17585805, 0.12182644, -0.0922833, -0.46181536, -0.16611756, 0.30335626, -0.03178384) * input_1(1.0, 1.0);
|
||
|
result += mat4(-0.045547694, -0.20415258, -0.15327035, -0.17310466, 0.263064, 0.36860424, 0.070836075, 0.13231003, -0.036017537, 0.36375234, 0.17537032, 0.066128, -0.27736133, 0.18543728, -0.054863777, 0.22075063) * input_2(-1.0, -1.0);
|
||
|
result += mat4(0.10546282, 0.22355258, 0.016002625, -0.2584522, 0.36249876, 0.20419033, -0.09647912, -0.25172108, -0.040911824, 0.0038743764, 0.016936503, 0.49274015, 0.037965454, -0.0022090308, 0.039035827, -0.20052963) * input_2(-1.0, 0.0);
|
||
|
result += mat4(0.3441342, -0.33506644, -0.11548419, 0.4602568, 0.11114756, 0.59828925, -0.1187811, 0.7865575, -0.03292712, -0.28330672, -0.16887254, 0.22769487, 0.13687603, -1.107309, -0.24131888, -0.17052723) * input_2(-1.0, 1.0);
|
||
|
result += mat4(-0.07876665, 0.17423095, -0.017934987, -0.0040133395, 0.15144774, 0.18570523, 0.23345162, -0.08259106, 0.029981062, -0.4027886, -0.06878253, -0.016724499, 0.06640895, 0.22623202, -0.094052434, -0.03892834) * input_2(0.0, -1.0);
|
||
|
result += mat4(-0.036437847, 0.562169, 0.88877124, -0.18232746, -0.08167595, -0.1342039, 1.0728049, -0.060068645, 0.051848155, 0.19406258, 0.0966441, -0.5190044, 0.012974724, 0.07771439, 0.46060973, 0.4213409) * input_2(0.0, 0.0);
|
||
|
result += mat4(-0.07392522, -0.331731, -0.52234054, -0.031839207, 0.2060309, -0.1154244, -0.5515788, -0.22183655, 0.5480396, -0.07748982, -0.35009676, -0.3046856, 0.042630613, 0.24506344, -0.19711658, -0.2621474) * input_2(0.0, 1.0);
|
||
|
result += mat4(-0.026529666, 0.077366754, -0.080463335, 0.03023021, 0.030847125, 0.18215261, -0.04596669, -0.037858404, -0.027413473, -0.07888417, 0.08800039, 0.060167592, 0.04862595, 0.19000472, 0.07022449, -0.052843615) * input_2(1.0, -1.0);
|
||
|
result += mat4(0.327826, 0.04583394, 0.07136629, 0.14427899, -0.23227592, -0.08114751, 0.12561196, -0.11497248, -0.42198977, 0.4687457, 0.38640603, 0.098157786, -0.2184617, 0.08357801, -0.06254379, 0.033690605) * input_2(1.0, 0.0);
|
||
|
result += mat4(0.075618215, -0.23334752, 0.00014328441, 0.05277411, -0.16813819, -0.1362569, -0.18503465, 0.094070874, -0.049053937, -0.40931728, -0.20206599, -0.015511155, 0.18948627, 0.08573332, 0.07980269, 0.09224847) * input_2(1.0, 1.0);
|
||
|
result += mat4(0.013549432, 0.08680989, 0.14009196, 0.083052166, -0.2757057, -0.3327928, 0.1921283, 0.14789608, -0.10803752, 0.26457715, 0.18166469, 0.10639019, 0.07496346, 0.16226974, 0.007701461, -0.06344391) * input_3(-1.0, -1.0);
|
||
|
result += mat4(-0.04845206, -0.010247987, -0.08136308, -0.044885762, 0.20626646, 0.15327181, 0.12005523, -0.564302, -0.28364387, 0.14351434, -0.012093124, 0.44706145, 0.22048931, 0.49626544, -0.034098323, 0.5098964) * input_3(-1.0, 0.0);
|
||
|
result += mat4(0.28979775, 0.19156924, 0.014443995, 0.01333447, -0.00625716, -0.0833051, -0.15233295, 0.37694246, -0.004653063, -0.80046195, -0.29824793, 0.24874036, 0.28144377, 0.15606311, -0.14871532, 0.4524993) * input_3(-1.0, 1.0);
|
||
|
result += mat4(-0.20121616, -0.013231958, -0.16990755, -0.00022619285, 0.08309952, 0.3257315, 0.04885429, 0.14338695, -0.014487696, -0.29758847, -0.11490041, -0.04389072, -0.2929464, -0.0855669, 0.069230594, 0.06196785) * input_3(0.0, -1.0);
|
||
|
result += mat4(-0.016927443, 0.0837688, -0.031203976, 0.08929343, 0.0221584, 0.061230343, 0.08802941, 0.13083339, -0.055889938, -0.107266665, -0.19096231, -0.23338324, -0.3276672, -0.022817403, 0.017047841, 0.005757793) * input_3(0.0, 0.0);
|
||
|
result += mat4(0.016535832, 0.14710982, 0.28396747, -0.093596555, -0.018213097, 0.083955206, -0.2533867, -0.103416905, 0.65413314, -0.61768776, -1.219503, -0.3292369, -0.2972223, -0.15927196, -0.12123384, 0.031794164) * input_3(0.0, 1.0);
|
||
|
result += mat4(-0.20547222, 0.038327247, 0.03583533, -0.06678343, -0.19666772, -0.12938274, 0.10443514, -0.088976994, 0.10385504, -0.04428264, 0.020901375, -0.04429233, 0.18029046, 0.0285291, -0.16100433, -0.08752411) * input_3(1.0, -1.0);
|
||
|
result += mat4(0.04147833, -0.08591577, 0.04830908, -0.07717542, 0.22325857, -0.18352616, -0.11003704, 0.024365963, -0.045350336, -0.109242134, 0.052501697, -0.10596917, 0.48513517, -0.10480992, -0.016565047, -0.0021286167) * input_3(1.0, 0.0);
|
||
|
result += mat4(-0.056964718, -0.08798149, 0.13383573, 0.07015682, 0.18592721, 0.22536194, -0.06466447, -0.010478167, 0.11279483, -0.30505362, -0.3196326, -0.050327707, 0.19592053, -0.1033447, -0.063046105, -0.019274758) * input_3(1.0, 1.0);
|
||
|
result += vec4(0.031955287, -0.018660989, -0.012473404, 0.0064324066);
|
||
|
return max(result, vec4(0.0));
|
||
|
}
|
||
|
|
||
|
//!DESC ArtCNN C4F16 (Conv-1-ReLU)
|
||
|
//!HOOK LUMA
|
||
|
//!BIND conv2d_tf
|
||
|
//!BIND conv2d_tf1
|
||
|
//!BIND conv2d_tf2
|
||
|
//!BIND conv2d_tf3
|
||
|
//!SAVE conv2d_1_tf2
|
||
|
//!WIDTH LUMA.w
|
||
|
//!HEIGHT LUMA.h
|
||
|
//!COMPONENTS 4
|
||
|
//!WHEN OUTPUT.w LUMA.w / 1.3 > OUTPUT.h LUMA.h / 1.3 > *
|
||
|
#define input_0(x_off, y_off) (conv2d_tf_texOff(vec2(x_off, y_off)))
|
||
|
#define input_1(x_off, y_off) (conv2d_tf1_texOff(vec2(x_off, y_off)))
|
||
|
#define input_2(x_off, y_off) (conv2d_tf2_texOff(vec2(x_off, y_off)))
|
||
|
#define input_3(x_off, y_off) (conv2d_tf3_texOff(vec2(x_off, y_off)))
|
||
|
vec4 hook() {
|
||
|
vec4 result = mat4(-0.08244544, -0.024511473, -0.1563133, -0.37106726, 0.035367787, 0.015258923, 0.010606762, -0.28748047, -0.14504077, -0.3297632, 0.07066317, -0.34631827, 0.024212427, -0.10365847, 0.041878328, 0.060065243) * input_0(-1.0, -1.0);
|
||
|
result += mat4(-0.054693937, -0.100320734, 0.2064598, -0.30696002, 0.14289075, -0.20270777, 0.24525502, -0.16297935, -0.08474527, -0.13578267, -0.2783534, 0.618479, 0.080877855, 0.121815994, -0.044330068, 0.117439985) * input_0(-1.0, 0.0);
|
||
|
result += mat4(-0.024500048, 0.06255667, -0.13617042, 0.13408296, -0.1064452, 0.01554033, -0.3618911, 0.45431286, 0.15683651, 0.025030097, 0.56963557, -0.124295294, -0.055543788, -0.016861886, -0.0032640512, -0.098132595) * input_0(-1.0, 1.0);
|
||
|
result += mat4(0.049651712, -0.015619624, 0.054220762, 0.08662367, 0.1416123, -0.018055644, -0.18806364, 0.0102259945, 0.08612002, 0.103218846, 0.47759798, -0.8005226, 0.07983904, 0.1584321, -0.0911237, -0.11578392) * input_0(0.0, -1.0);
|
||
|
result += mat4(-0.11337359, 0.04551646, 0.0676283, 0.07354767, -0.13629852, 0.093296655, 0.28424954, 0.13174945, -0.47839135, -0.04699561, 0.107811704, 0.06771121, 0.3021276, 0.10371984, 0.1766255, 0.11282248) * input_0(0.0, 0.0);
|
||
|
result += mat4(0.009718402, -0.11982437, -0.020046042, 0.11613216, 0.4214471, 0.04960368, 0.16880736, 0.046921916, 0.31204516, 0.07247148, -0.27609614, 0.038756073, -0.22726823, 0.15440345, -0.026919154, -0.15770294) * input_0(0.0, 1.0);
|
||
|
result += mat4(0.007133338, 0.2862571, -0.07435452, -0.23686804, -0.13203049, -0.11098623, 0.16818316, -0.70100105, 0.16242686, 0.14064458, -0.41274574, -0.14663015, -0.08304793, -0.21896985, -0.1511625, -0.03319275) * input_0(1.0, -1.0);
|
||
|
result += mat4(-0.20454238, 0.014603208, 0.19353466, -0.096985295, -0.017182147, 0.2571041, -0.071377814, 0.31914496, -0.06068535, 0.3485252, 0.20465992, 0.27082586, 0.12593354, -0.074842185, 0.1248664, 0.17485794) * input_0(1.0, 0.0);
|
||
|
result += mat4(0.04824986, 0.14027345, 0.02176443, -0.10907345, -0.09729938, 0.08221686, -0.16126585, 0.15913716, 0.021785498, -0.10393283, -0.024958936, -0.09150386, -0.06348421, -0.10812967, -0.03189501, -0.093186945) * input_0(1.0, 1.0);
|
||
|
result += mat4(-0.20416902, 0.10171751, 0.5459169, -0.2853912, 0.25266182, 0.17832461, -0.34719777, 0.61624163, -0.23737141, -0.050589032, -0.118288726, 0.13443506, -0.06251747, -0.07992853, 0.34568754, 0.20318447) * input_1(-1.0, -1.0);
|
||
|
result += mat4(-0.22192165, 0.1032586, -0.28965572, -0.42424542, 0.19960277, 0.040230803, -0.07635675, 0.48193726, 0.37478587, -0.24500939, 0.4074014, -0.051773272, -0.24060905, 0.04008451, 0.032335527, -0.016961437) * input_1(-1.0, 0.0);
|
||
|
result += mat4(-0.48478958, -0.18718407, 0.17342088, -0.034595363, 0.12856287, -0.08239986, -0.1068953, 0.46604472, -0.034955077, 0.018517844, -0.74769247, -0.063375674, 0.26858127, -0.29422715, -0.6625976, -0.27853718) * input_1(-1.0, 1.0);
|
||
|
result += mat4(-0.040203325, 0.114351854, 0.1923919, -0.044563875, -0.14501546, -0.23320669, 0.0062956014, -0.10848804, -0.17991242, 0.15562849, -0.20321722, 0.09341384, -0.038049124, -0.05200078, -0.10626301, 0.0562258) * input_1(0.0, -1.0);
|
||
|
result += mat4(0.050332535, 0.25532162, -0.39101952, -0.23868445, -0.12497383, -0.21720417, 0.01786643, 0.036228415, 0.14010297, -0.1432882, 0.4152234, 0.123722896, -0.025320835, 0.19837059, -0.37603804, -0.34942502) * input_1(0.0, 0.0);
|
||
|
result += mat4(0.11480581, 0.0074986815, 0.16723368, 0.23301122, 0.18294051, -0.20866658, 0.06493413, 0.060538806, -0.04781662, 0.011617245, 0.1978214, -0.1625163, -0.101153575, 0.14593159, 0.7529521, -0.4178) * input_1(0.0, 1.0);
|
||
|
result += mat4(-0.05702566, -0.020458022, 0.35411972, -0.14168516, 0.038666874, 0.033238746, 0.17865182, -0.019249154, 0.013367434, -0.0954898, -0.04769208, -0.16808861, 0.004902522, 0.07596095, 0.08766332, 0.5034525) * input_1(1.0, -1.0);
|
||
|
result += mat4(0.08911325, -0.23622228, -0.20580173, -0.07950702, 0.09588141, 0.25699744, 0.09275917, -0.16642517, 0.118355505, 0.23275557, -0.13246097, 0.11250887, -0.17322256, -0.080459625, -0.13146275, -0.012632894) * input_1(1.0, 0.0);
|
||
|
result += mat4(-0.2087898, 0.025893781, -0.0905368, 0.15410224, -0.046160027, -0.10393516, -0.13541365, -0.01572801, -0.10622964, 0.064867765, 0.21116525, -0.015439045, 0.14500257, -0.06758778, 0.12740108, 0.17549445) * input_1(1.0, 1.0);
|
||
|
result += mat4(-0.082465515, -0.09623023, 0.052955322, -0.006422542, 0.0308599, 0.08551292, 0.12179461, -0.24358673, -0.08230477, -0.025360107, 0.3809822, 0.19969243, -0.18972528, -0.065042265, 0.67815125, -0.4067177) * input_2(-1.0, -1.0);
|
||
|
result += mat4(0.019972026, -0.13127193, -0.12984493, 0.56227905, -0.21061918, 0.096702814, -0.21893445, 0.6399303, -0.06338047, 0.09013715, -0.0051230267, 0.17644414, 0.059144586, 0.07345809, -0.32709256, -0.26293942) * input_2(-1.0, 0.0);
|
||
|
result += mat4(0.040317267, -0.09017054, 0.25904247, 0.1721023, 0.13799606, 0.05609334, 0.14582808, 0.36229232, -0.12309598, -0.07191444, 0.58202726, 0.1745007, -0.17146309, 0.06099254, 0.1295576, 0.64363587) * input_2(-1.0, 1.0);
|
||
|
result += mat4(0.32390937, -0.11999322, 0.62372863, -1.0253154, 0.062694594, -0.0051892255, 0.08094208, -0.16240452, 0.11170284, -0.39491904, -0.3031303, -0.111340135, 0.15010029, -0.029209524, -0.31273958, -0.16510811) * input_2(0.0, -1.0);
|
||
|
result += mat4(-0.31467596, -0.13993546, -0.07524009, 0.021389335, -0.5519557, -0.6201507, -0.24475157, -0.17176315, -0.4698218, -0.6548806, -0.06821201, 0.27673328, -0.034359306, 0.078564115, 0.27736443, 0.07427987) * input_2(0.0, 0.0);
|
||
|
result += mat4(0.21157281, 0.054165863, -0.22666854, -0.04029902, 0.11566386, -0.2832392, -0.03680483, 0.09751591, 0.2169813, 0.08247218, -0.7898472, -0.09498089, -0.01239245, -0.2018876, -0.20937493, -0.1068879) * input_2(0.0, 1.0);
|
||
|
result += mat4(0.0013884066, 0.007871056, -0.087309815, -0.019111326, -0.054053016, -0.15759242, -0.271642, 0.026614256, 0.30871394, 0.35640207, -0.619848, -0.4255511, 0.087974146, -0.05774669, -0.17925283, -0.1136073) * input_2(1.0, -1.0);
|
||
|
result += mat4(-0.23074204, 0.03809855, 0.13457838, -0.06947553, 0.04790887, 0.7554334, 0.30442008, -0.002114464, 0.23318128, 1.2193109, 0.7928055, -0.05546594, 0.14024362, 0.009084898, 0.038057413, 0.014467305) * input_2(1.0, 0.0);
|
||
|
result += mat4(-0.0791745, -0.0688806, -0.072081216, -0.08360861, 0.0732819, 0.04125806, -0.303171, 0.0476809, 0.0587979, -0.32740408, -0.021780906, -0.12036498, -0.034540426, 0.26277828, -0.0858364, 0.2772523) * input_2(1.0, 1.0);
|
||
|
result += mat4(0.06910841, 0.1317287, 0.21041434, 0.3000619, 0.14173406, -0.026259035, 0.16492876, -0.012913351, 0.063834175, 0.034849565, -0.16591544, 0.39318815, -0.110567346, 0.071234874, -0.11045241, 0.58924043) * input_3(-1.0, -1.0);
|
||
|
result += mat4(-0.08088805, 0.21751194, -0.32237217, -0.046890866, -0.106608994, 0.35701987, -0.1375207, 0.55965245, 0.16815835, -0.15976176, -0.032419488, -0.13695048, 0.05660048, 0.1763526, -0.026687268, -0.024479035) * input_3(-1.0, 0.0);
|
||
|
result += mat4(-0.07928095, 0.039196093, 0.009511743, 0.35122317, -0.19515862, -0.027353287, 0.23374204, 0.15727128, 0.021661099, -0.036439393, 0.03307122, 0.25763726, 0.06078174, -0.029059589, 0.09575972, 0.16878763) * input_3(-1.0, 1.0);
|
||
|
result += mat4(0.13713466, -0.1918072, 0.195396, -0.17572287, 0.033425383, 0.08072999, -0.04989187, -0.21773233, -0.1575314, -0.08022627, 0.08141576, 0.04752984, -0.08445092, -0.09157276, -0.0808979, 0.02523146) * input_3(0.0, -1.0);
|
||
|
result += mat4(0.040600356, -0.12609279, -0.4485799, -0.33784097, 0.2651006, -0.3083702, 0.16872555, 0.19974138, -0.23732726, 0.08665063, -0.046895515, -0.058773123, 0.22944951, -0.31815407, 0.013978691, 0.1334388) * input_3(0.0, 0.0);
|
||
|
result += mat4(-0.26354432, -0.20643577, -0.12969796, 0.15402338, 0.33878416, -0.019620758, -0.22256988, -0.16216905, 0.42894518, 0.25187063, -0.056097966, 0.15803891, 0.08974538, -0.13130751, 0.21089844, -0.034392267) * input_3(0.0, 1.0);
|
||
|
result += mat4(0.25439686, 0.41911817, -0.05679641, 0.19568442, -0.17511019, -0.374574, 0.51850146, -0.77049005, 0.13670275, 0.1953563, -0.017109131, 0.12305461, 0.05036815, 0.09418666, 0.05680116, -0.07125914) * input_3(1.0, -1.0);
|
||
|
result += mat4(-0.011947396, -0.026536802, 0.001294313, -0.34260994, -0.099801145, 0.045623016, -0.3835918, 0.3592889, 0.11015504, 0.3260415, 0.18281083, -0.13451746, -0.10058661, -0.23935075, -0.1850689, 0.12927532) * input_3(1.0, 0.0);
|
||
|
result += mat4(-0.34652796, -0.0018505534, -0.0044029853, 0.07489237, -0.06711186, 0.25177667, -0.22622205, 0.024541752, 0.16344476, -0.2535651, -0.013137323, -0.055322457, -0.0051630293, 0.07448276, 0.10909277, 0.04308309) * input_3(1.0, 1.0);
|
||
|
result += vec4(-0.01270793, 0.057534076, 0.0020940362, 0.019516828);
|
||
|
return max(result, vec4(0.0));
|
||
|
}
|
||
|
|
||
|
//!DESC ArtCNN C4F16 (Conv-1-ReLU)
|
||
|
//!HOOK LUMA
|
||
|
//!BIND conv2d_tf
|
||
|
//!BIND conv2d_tf1
|
||
|
//!BIND conv2d_tf2
|
||
|
//!BIND conv2d_tf3
|
||
|
//!SAVE conv2d_1_tf3
|
||
|
//!WIDTH LUMA.w
|
||
|
//!HEIGHT LUMA.h
|
||
|
//!COMPONENTS 4
|
||
|
//!WHEN OUTPUT.w LUMA.w / 1.3 > OUTPUT.h LUMA.h / 1.3 > *
|
||
|
#define input_0(x_off, y_off) (conv2d_tf_texOff(vec2(x_off, y_off)))
|
||
|
#define input_1(x_off, y_off) (conv2d_tf1_texOff(vec2(x_off, y_off)))
|
||
|
#define input_2(x_off, y_off) (conv2d_tf2_texOff(vec2(x_off, y_off)))
|
||
|
#define input_3(x_off, y_off) (conv2d_tf3_texOff(vec2(x_off, y_off)))
|
||
|
vec4 hook() {
|
||
|
vec4 result = mat4(0.08864884, 0.13429815, 0.39783752, -0.16515727, 0.06730605, 0.085279755, 0.064728, -0.0018127563, -0.013240651, -0.08183458, -0.14963907, -0.10329563, -0.017241012, -0.106815845, 0.011435032, 0.17498651) * input_0(-1.0, -1.0);
|
||
|
result += mat4(0.13859732, 0.18268886, -0.3772755, 0.09636594, 0.22033255, -0.069077, 0.39237276, 0.21117857, 0.08375692, -0.13406023, -0.16297731, -0.4793157, -0.15056564, -0.28988728, 0.057206478, 0.10027231) * input_0(-1.0, 0.0);
|
||
|
result += mat4(0.097904555, 0.25685108, -0.06966565, -0.056595404, 0.06389566, 0.36399204, 0.15553112, 0.11643679, -0.28673208, 0.22841401, -0.015907371, -0.07112256, -0.09997531, -0.18837854, -0.021144673, 0.04077932) * input_0(-1.0, 1.0);
|
||
|
result += mat4(0.018938731, 0.014290457, -0.22892322, -0.03423295, -0.075299405, 0.15041941, 0.10279539, -0.12278014, 0.23473416, -0.1569497, -0.18674786, 0.16756791, -0.0037691065, -0.013658907, 0.013247363, -0.092984) * input_0(0.0, -1.0);
|
||
|
result += mat4(-0.10441064, -0.055991728, -0.06778766, -0.06803445, -0.4576025, 0.10767134, -0.127595, 0.27102268, 0.4014987, 0.09808458, 0.4825136, 0.22240236, -0.012195791, 0.01380704, -0.06753497, 0.018330028) * input_0(0.0, 0.0);
|
||
|
result += mat4(-0.063100085, -0.2506725, 0.10120431, -0.084447704, -0.0065880637, -0.16504408, -0.5943815, -0.1257539, -0.09702489, 0.8318613, -0.19077452, -0.015835682, 0.010398463, -0.089115165, 0.04577516, -0.014404727) * input_0(0.0, 1.0);
|
||
|
result += mat4(-0.06356469, 0.17846744, -0.0073307496, 0.13853574, 0.016992554, 0.04794324, 0.26229075, 0.09161935, 0.15553688, -0.37616688, 0.058284126, 0.13955349, 0.012305597, 0.041168135, 0.038210504, -0.123352416) * input_0(1.0, -1.0);
|
||
|
result += mat4(0.039834607, 0.065196194, -0.031128427, 0.07043504, -0.20372137, -0.19917497, -0.30924025, 0.03637621, -0.32643318, -0.47167817, 0.09258552, -0.0031152528, 0.19373085, -0.19636384, -0.11261829, -0.050735347) * input_0(1.0, 0.0);
|
||
|
result += mat4(-0.05652169, 0.23427385, -0.018242616, 0.08778385, 0.15016098, -0.059852663, -0.118126154, -0.18938762, -0.04906957, 0.3633075, -0.24396248, 0.003163585, 0.039628472, -0.15899809, 0.02620242, -0.002109501) * input_0(1.0, 1.0);
|
||
|
result += mat4(0.0056256335, 0.123770475, -0.024613189, -0.1121259, 0.015166911, 0.10218912, -0.008671066, -0.044961527, -0.18858896, -0.09103044, 0.24549548, 0.12174496, 0.002065176, -0.29878974, -0.6053191, -0.00855697) * input_1(-1.0, -1.0);
|
||
|
result += mat4(0.027208695, 0.34774578, 0.02495024, 0.30209118, 0.063495636, -0.12274566, 0.26778227, -0.66777354, 0.19788699, 0.069097936, -0.3004319, 0.32385752, -0.13058667, -0.033589393, -0.49472284, 0.5474817) * input_1(-1.0, 0.0);
|
||
|
result += mat4(0.10653183, 0.017912868, -0.06989631, -0.1122518, -0.1864531, -0.14107427, -0.0012789833, -0.03578437, -0.1748403, -0.028081115, 0.26369897, -0.17350774, 0.01079094, 0.11872659, 0.3210604, -0.032179605) * input_1(-1.0, 1.0);
|
||
|
result += mat4(0.065661624, -0.03660219, -0.19637173, 0.035502173, 0.09538228, 0.13489516, -0.008590227, 0.08692802, 0.3643521, 0.1843215, 0.30679455, -0.2591987, 0.15051243, 0.0053539006, -0.21754318, 0.005250999) * input_1(0.0, -1.0);
|
||
|
result += mat4(-0.54810256, -0.13047707, -0.27344722, -0.051214658, 0.52619857, 0.3640541, 0.13385372, 0.33580106, -0.24912524, -0.12296739, -0.022577878, -0.08958877, -0.4274856, -0.04868668, -0.2756714, -0.68271476) * input_1(0.0, 0.0);
|
||
|
result += mat4(-0.08323462, -0.38184908, 0.020747613, -0.13144244, 0.20506795, 0.2563945, -0.32386538, 0.14643608, -0.123003155, 0.1371108, -0.24412604, 0.025057627, 0.21604851, 0.35978305, 0.61837935, 0.33104488) * input_1(0.0, 1.0);
|
||
|
result += mat4(-0.06668907, 0.15453108, -0.16623281, 0.15295939, -0.20394714, -0.020488713, 0.048533678, 0.041048758, 0.09142495, -0.050084345, 0.053626303, -0.03699795, 0.082554035, -0.14991698, 0.24465163, 0.0494539) * input_1(1.0, -1.0);
|
||
|
result += mat4(0.0829152, 0.09830312, 0.26490137, -0.02035522, -0.16940708, 0.03302805, -0.089515716, 0.06504053, 0.1105938, -0.13291359, -0.16435862, 0.080367684, 0.20224632, -0.26706156, 0.43842933, -0.23301119) * input_1(1.0, 0.0);
|
||
|
result += mat4(0.055896323, -0.19891764, 0.21861409, 0.1449208, 0.05847585, -0.04149842, 0.0009521031, -0.06014341, 0.011896823, 0.12857221, -0.060872205, 0.03118813, -0.08845449, 0.5276816, 0.040637713, -0.007374064) * input_1(1.0, 1.0);
|
||
|
result += mat4(0.0324407, -0.1549014, -0.8033959, -0.22115396, 0.00015178249, 0.06595459, -0.40787205, -0.3029617, 0.038492586, -0.023100602, 0.052991193, 0.0023041188, 0.17957658, -0.2030922, -0.1425795, -0.23024401) * input_2(-1.0, -1.0);
|
||
|
result += mat4(-0.015975023, -0.009022016, -0.07128515, -0.9648172, 0.11201802, 0.1042889, -0.073455185, -0.46511877, -0.13317789, -0.16325456, 0.47192484, -0.30260074, -0.14486994, 0.26783115, 0.07028643, 0.47081035) * input_2(-1.0, 0.0);
|
||
|
result += mat4(-0.06942568, -0.040542956, 0.14181846, -0.32465288, 0.06899519, -0.080351524, 0.032700367, -0.22498864, -0.015628533, -0.14717789, 0.1622541, 0.04667101, 0.19373819, -0.1243875, 0.5021106, -0.18649575) * input_2(-1.0, 1.0);
|
||
|
result += mat4(0.19647568, -0.16397713, -0.10313638, 0.20157321, 0.3106438, 0.12881951, -0.14808479, 0.07307226, 0.104322836, -0.010444634, 0.041405626, 0.029525064, -0.08898637, 0.040205482, -0.4471618, 0.10871738) * input_2(0.0, -1.0);
|
||
|
result += mat4(0.5408508, 0.13894892, 0.24706183, 0.18351056, 0.50175315, -0.37464756, 0.5562308, 0.72683567, 0.48813623, 0.12309002, 0.4253691, 0.82183063, -0.3676362, -0.25068066, -0.00039198724, -0.11189374) * input_2(0.0, 0.0);
|
||
|
result += mat4(0.12134678, 0.52810264, 0.19998768, 0.19744186, 0.23878829, 0.72096634, -0.31123167, 0.33895078, -0.15966055, 0.12822986, -0.53392535, -0.3892478, 0.19685687, 0.086107194, -0.058621563, -0.23262689) * input_2(0.0, 1.0);
|
||
|
result += mat4(0.1152349, 0.119555086, 0.13956788, 0.020588666, 0.03868985, 0.052911844, 0.07827627, 0.17949478, -0.17396188, -0.10170469, -0.34352002, -0.0063448288, -0.0051030484, -0.17951299, -0.00053655246, 0.10467772) * input_2(1.0, -1.0);
|
||
|
result += mat4(-0.08292957, -0.27222618, -0.15614702, 0.25888878, -0.6634351, 0.15048642, -0.10993817, -0.15038939, -0.656418, 0.19048116, 0.068445876, -0.046933804, -0.09318807, 0.29410043, -0.021330606, -0.061576195) * input_2(1.0, 0.0);
|
||
|
result += mat4(0.016317723, 0.2538134, -0.16653465, -0.06442609, -0.08154757, -0.096712925, -0.1247941, 0.137881, 0.46836308, 0.004774882, -0.15230556, -0.15950197, 0.139458, 0.026968248, 0.14717624, 0.14230624) * input_2(1.0, 1.0);
|
||
|
result += mat4(0.015807632, -0.0013736484, -0.21555874, 0.082833484, -0.13959222, 0.025690166, -0.105555795, -0.045335397, 0.009247386, -0.048040017, 0.15355478, -0.047244914, -0.015644783, 0.08176033, -0.002535128, -0.12699349) * input_3(-1.0, -1.0);
|
||
|
result += mat4(-0.021930143, 0.24298546, 0.23170288, 0.014862426, 0.029200474, 0.23039514, 0.6078819, -0.20306782, 0.09533743, 0.041796457, -0.026667202, -0.25138575, 0.094901994, 0.2085063, -0.0604569, -0.38190767) * input_3(-1.0, 0.0);
|
||
|
result += mat4(0.028443472, -0.08912895, -0.15167156, -0.16904557, 0.035323195, -0.40503067, -0.06872163, -0.05092241, -0.0064231954, 0.29672408, -0.15114008, -0.09513205, 0.13953564, -0.21764238, -0.23365143, -0.16633424) * input_3(-1.0, 1.0);
|
||
|
result += mat4(0.111420386, -0.11497599, -0.10059006, 0.10732607, -0.294557, -0.16103896, 0.030365994, 0.029142095, -0.09859116, 0.27482522, 0.26454046, 0.07515671, 0.27564687, -0.034884732, -0.064440854, 0.044970643) * input_3(0.0, -1.0);
|
||
|
result += mat4(0.14864795, -0.01346813, -0.0047257766, 0.07158367, 0.52776575, -0.011130927, -0.035596494, 0.074914314, 0.09887375, 0.31417903, 0.28163815, 0.27087986, 0.041566823, 0.052460473, -0.032584354, -0.66429394) * input_3(0.0, 0.0);
|
||
|
result += mat4(0.054368835, -0.4202152, 0.16090946, -0.10909179, -0.08303782, -0.28342992, -0.46728504, -0.07595817, 0.1420095, 0.59713274, -0.43748918, 0.09982746, 0.12522115, -0.24632324, 0.13281842, -0.004089472) * input_3(0.0, 1.0);
|
||
|
result += mat4(-0.0028923163, 0.03889567, -0.08190885, 0.06594016, -0.20354098, 0.22257936, 0.11112567, 0.013242405, -0.06732801, -0.10834411, -0.16062976, 0.01577849, 0.18791485, -0.066161714, -0.15809582, 0.060603812) * input_3(1.0, -1.0);
|
||
|
result += mat4(-0.15795502, 0.17500411, 0.34565103, 0.0075697093, 0.037020836, 0.097722046, -0.13365151, 0.05733126, -0.32457173, 0.04129774, -0.3160622, 0.2214068, 0.0713686, 0.22592343, 0.26362157, 0.00016719435) * input_3(1.0, 0.0);
|
||
|
result += mat4(-0.1289152, -0.12713864, 0.12159512, 0.06439113, 0.11274599, 0.03195468, 0.00030328514, 0.17814633, -0.2747713, -0.09219329, -0.079267256, 0.00016906325, -0.009351746, 0.084883235, -0.040695474, 0.08255578) * input_3(1.0, 1.0);
|
||
|
result += vec4(0.025575044, -0.01549084, -0.0032530257, -0.025025042);
|
||
|
return max(result, vec4(0.0));
|
||
|
}
|
||
|
|
||
|
//!DESC ArtCNN C4F16 (Conv-2-ReLU)
|
||
|
//!HOOK LUMA
|
||
|
//!BIND conv2d_1_tf
|
||
|
//!BIND conv2d_1_tf1
|
||
|
//!BIND conv2d_1_tf2
|
||
|
//!BIND conv2d_1_tf3
|
||
|
//!SAVE conv2d_2_tf
|
||
|
//!WIDTH LUMA.w
|
||
|
//!HEIGHT LUMA.h
|
||
|
//!COMPONENTS 4
|
||
|
//!WHEN OUTPUT.w LUMA.w / 1.3 > OUTPUT.h LUMA.h / 1.3 > *
|
||
|
#define input_0(x_off, y_off) (conv2d_1_tf_texOff(vec2(x_off, y_off)))
|
||
|
#define input_1(x_off, y_off) (conv2d_1_tf1_texOff(vec2(x_off, y_off)))
|
||
|
#define input_2(x_off, y_off) (conv2d_1_tf2_texOff(vec2(x_off, y_off)))
|
||
|
#define input_3(x_off, y_off) (conv2d_1_tf3_texOff(vec2(x_off, y_off)))
|
||
|
vec4 hook() {
|
||
|
vec4 result = mat4(-0.070250675, -0.064555325, 0.0055875652, 0.013665419, -0.020371793, -0.07934171, -0.019257557, 0.016145073, -0.1246875, -0.14557518, -0.011456305, -0.082086086, -0.03546758, -0.07111718, 0.10057711, -0.01024379) * input_0(-1.0, -1.0);
|
||
|
result += mat4(0.3253677, 0.14576864, 0.0016586577, -0.2231161, 0.15570162, 0.08773072, -0.07159455, 0.012558793, -0.046078987, 0.19327486, 0.043696582, 0.14553994, 0.06746771, 0.048437856, -0.0268671, 0.05412222) * input_0(-1.0, 0.0);
|
||
|
result += mat4(-1.0006452, 0.78573596, -0.21649204, 0.6392501, 0.15350592, -0.09968317, 0.06068494, -0.09569535, 0.114810355, 0.12845065, -0.102412306, -0.068243235, 0.078136355, -0.10639303, 0.023868052, 0.018613424) * input_0(-1.0, 1.0);
|
||
|
result += mat4(0.038315646, -0.029802019, 0.0063055027, 0.016253728, -0.034852076, 0.019939965, -0.020228608, 0.026298283, 0.052905414, 0.12805091, -0.007353077, 0.06995443, -0.2473881, 0.29983908, 0.2549197, 0.14908777) * input_0(0.0, -1.0);
|
||
|
result += mat4(-0.30863178, -0.21975747, -0.33054247, 0.06368058, 0.17884134, 0.2507598, -0.2935948, 0.07128935, 0.28051922, 0.11669175, 0.14168528, -0.024640948, -0.8031321, 0.28284955, -0.2455082, 0.026518365) * input_0(0.0, 0.0);
|
||
|
result += mat4(0.89338917, 2.0591397, -0.057134435, 1.1472243, 0.3551509, -0.32555154, 0.046141807, -0.07562222, -0.12752691, -0.45627064, 0.08303637, -0.113360256, 0.09834267, -0.08388839, 0.0022953958, -0.06239821) * input_0(0.0, 1.0);
|
||
|
result += mat4(0.060123608, 0.018349156, 0.016806575, -0.057443745, 0.032638267, -0.031058563, -0.0043666223, -0.0121351695, 0.093246676, 0.12042413, 0.017385136, -0.04404228, -0.09690747, -0.0119758975, 0.061767925, 0.04193403) * input_0(1.0, -1.0);
|
||
|
result += mat4(0.035726927, -0.13475476, 0.3633074, 0.061828114, 0.10383674, 0.1099764, -0.06154769, 0.00070273574, -0.08766497, -0.4446943, -0.06968046, -0.021060845, -0.71000195, 0.1657275, -0.051945176, 0.11894423) * input_0(1.0, 0.0);
|
||
|
result += mat4(0.19498728, 0.063738935, -0.21550244, -0.28182957, 0.60004675, -0.18879782, -0.0547671, -0.0075668087, -0.13592349, 0.23701552, 0.026363654, 0.07025558, -0.3008532, 0.011372696, -0.01062149, -0.023431297) * input_0(1.0, 1.0);
|
||
|
result += mat4(-0.13818866, -0.16021085, 0.0371774, 0.028573368, -0.019974831, 0.027060684, 0.043729875, -0.020357143, 0.020167138, -0.059237245, -0.062871255, 0.011148257, 0.07833544, -0.18301637, 0.06992967, -0.03319132) * input_1(-1.0, -1.0);
|
||
|
result += mat4(-0.11560463, -0.04352659, 0.30896842, -0.058587246, -0.19511463, 0.13623622, 0.016589308, 0.05042807, 0.14343764, -0.36771998, 0.021457134, -0.11860027, 0.1338319, -0.19833675, 0.12880151, -0.062234357) * input_1(-1.0, 0.0);
|
||
|
result += mat4(-0.098736204, 0.1464554, 0.19053221, 0.045118276, -0.041139755, 0.092594646, -0.032208636, 0.013218817, -0.0223067, -0.12275442, 0.07909282, 0.02443674, -0.030828219, -0.038879942, 0.07127429, 0.036940694) * input_1(-1.0, 1.0);
|
||
|
result += mat4(0.21035509, -0.12404927, -0.19598685, -0.17256905, -0.1313136, 0.13184868, 0.15963084, 0.06360252, 0.07466142, -0.98865527, -0.17075878, 0.014876257, -0.24563289, 0.301307, -0.0893555, -0.0001625543) * input_1(0.0, -1.0);
|
||
|
result += mat4(0.06307468, 0.044329517, 0.06523954, 0.025638517, -0.3150573, 0.38837615, 0.08093637, 0.0718549, 0.46012887, -0.25434384, 0.5844477, 0.25599754, 0.06767366, -0.5913231, 0.21407242, -0.08154703) * input_1(0.0, 0.0);
|
||
|
result += mat4(-0.0047751325, 0.07297803, -0.1982587, 0.10710411, -0.021468481, 0.06780919, -0.026034081, -0.023932386, 0.17064925, 0.12605703, -0.06603309, 0.011421231, -0.05062889, 0.07819054, -0.017113116, -0.0011045552) * input_1(0.0, 1.0);
|
||
|
result += mat4(0.38511553, -0.036972478, 0.05345709, -0.07609652, -0.31424114, 0.16379282, -0.022209626, 0.0749239, 0.32018268, -0.215108, 0.031676818, -0.05568858, 0.18814774, 0.07613919, 0.33976752, -0.015773732) * input_1(1.0, -1.0);
|
||
|
result += mat4(-0.62141514, -0.081882514, -0.039554022, 0.033698928, -0.6711835, 0.14677347, 0.23083746, 0.114162244, 0.28922102, 0.040432163, -0.044539582, -0.06296361, 0.038879067, -0.2381332, 0.09768098, -0.09360624) * input_1(1.0, 0.0);
|
||
|
result += mat4(0.2618201, 0.011072779, -0.011822413, 0.009057616, -0.10893823, -0.053468082, 0.04975811, 0.03385816, 0.052764334, -0.020308515, -0.034825828, 0.0068398044, 0.04031352, 0.06522815, -0.06129971, -0.026757797) * input_1(1.0, 1.0);
|
||
|
result += mat4(-0.14951834, -0.0015281676, -0.05467369, -0.031829022, -0.26194534, -0.08464111, 0.10765457, -0.0038386618, -0.0039374996, -0.1031834, 0.014478384, 0.020845817, 0.044759877, -0.090479985, -0.019965157, 0.025729889) * input_2(-1.0, -1.0);
|
||
|
result += mat4(-0.24940227, 0.49363124, -0.028503634, 0.14926015, 0.051450763, 0.12187496, -0.3908865, 0.57048327, -0.0658294, -0.034032673, 0.024397794, 0.04630119, 0.06649158, -0.07857396, 0.026147636, -0.03654544) * input_2(-1.0, 0.0);
|
||
|
result += mat4(-0.13143374, 0.30948892, -0.004410545, -0.014899724, 0.26077712, 0.21058208, 0.28160268, -0.26843926, 0.0051304223, -0.018938448, 0.07244772, 0.008488509, 0.07673892, -0.12763472, -0.06632184, 0.032152858) * input_2(-1.0, 1.0);
|
||
|
result += mat4(0.009212626, -0.39023286, -0.07599106, -0.00069876754, 0.0075420747, 0.032170333, -0.029124118, 0.024717819, -0.12665945, -0.12825495, -0.03970484, 0.060654394, 0.01987766, -0.013909685, 0.02896767, 0.0074346354) * input_2(0.0, -1.0);
|
||
|
result += mat4(0.7127939, -0.4213136, 0.26235887, 0.026825964, 0.22816877, 0.09123721, 0.35202488, 0.20627853, 0.094651885, 0.21328028, 0.0057546417, 0.03580707, 0.12018957, -0.29299632, 0.07153637, -0.063620776) * input_2(0.0, 0.0);
|
||
|
result += mat4(-0.23183863, -0.07550788, -0.02153688, 0.098086774, -0.36729613, -0.043207474, -0.062184352, -0.16412784, 0.16119921, -0.040772595, -0.005291008, -0.04544663, 0.084584884, -0.2873868, 0.08411433, 0.1076006) * input_2(0.0, 1.0);
|
||
|
result += mat4(-0.19469552, 0.002846688, -0.03383882, -0.018170105, -0.08534647, 0.013687246, -0.027931761, -0.01618947, 0.14118527, -0.048655737, 0.003016336, 0.0076776682, -0.047241453, -0.05539009, 0.032978974, 0.011918604) * input_2(1.0, -1.0);
|
||
|
result += mat4(0.5955045, -0.30781147, 0.14075774, -0.080783464, -0.0087677, -0.00884359, 0.0042080074, 0.039858554, 0.1316781, 0.038613383, 0.004282624, 0.037862435, 0.3642399, -0.16680942, 0.001416012, 0.0023289789) * input_2(1.0, 0.0);
|
||
|
result += mat4(0.4895727, 0.06608398, -0.023232497, 0.021797689, 0.09574392, 0.071831234, 0.04853318, 0.027234877, -0.114328444, -0.015148545, -0.017762145, 0.013043628, 0.6622313, 0.13486308, 0.14171457, -0.059036396) * input_2(1.0, 1.0);
|
||
|
result += mat4(-0.21986535, 0.00776989, -0.057963863, 0.096132435, -0.028828118, 0.1545809, -0.033215042, 0.03250035, -0.050456032, 0.11275772, 0.0427854, -0.058141816, 0.089708924, -0.11435655, 0.047952462, 0.018452855) * input_3(-1.0, -1.0);
|
||
|
result += mat4(0.2743462, -0.70505196, 0.094819665, -0.39958528, 0.0789628, 0.077989995, -0.038592804, 0.037911665, -0.2706714, 0.28582227, -0.03454576, 0.04935541, -0.09206192, 0.049203407, -0.06847521, -0.064392924) * input_3(-1.0, 0.0);
|
||
|
result += mat4(-0.017011072, 0.22287089, -0.15119283, -0.00867462, 0.06582366, -0.01495119, 0.020513313, -0.111113906, -0.14462131, 0.12064894, -0.00566669, -0.029569913, 0.009787529, 0.046438158, 0.024138907, 0.025498528) * input_3(-1.0, 1.0);
|
||
|
result += mat4(0.19209626, -0.16208121, 0.07590561, 0.08353397, 0.26867896, 0.20443906, 0.010666154, 0.2534602, -0.17121747, 0.25450566, -0.008754005, 0.020042012, 0.25780827, -0.16371068, -0.13263172, 0.04394275) * input_3(0.0, -1.0);
|
||
|
result += mat4(-0.44790557, 0.5187072, -0.19914213, -0.07998445, 0.062326014, -0.018795984, 0.10236671, 0.09462016, -0.33312514, 0.22651239, 0.093198806, 0.08526007, -0.31100726, -0.13556395, 0.20941693, 0.3074936) * input_3(0.0, 0.0);
|
||
|
result += mat4(-0.28213122, 0.219188, -0.3130208, 0.07231383, -0.014399852, -0.08280814, -0.031957984, -0.019643627, -0.20217635, 0.12632455, 0.11428336, 0.05269817, 0.060042955, 0.123938255, -0.20008762, 0.23387507) * input_3(0.0, 1.0);
|
||
|
result += mat4(0.07985595, -0.0043025273, -0.0017595349, 0.029488558, -0.11921414, -0.2758251, 0.053045854, 0.0107014645, -0.28114924, 0.108173855, 0.010216577, 0.0427706, 0.037687033, 0.017704211, -0.0032785998, -0.04741731) * input_3(1.0, -1.0);
|
||
|
result += mat4(0.24186361, 0.036436252, -0.010707549, -0.007009169, -0.06586464, -0.07533323, 0.0036373718, 0.02290492, -0.39962158, 0.12524295, -0.04148519, 0.016839614, -0.030748004, -0.18874036, -0.12793465, 0.03968621) * input_3(1.0, 0.0);
|
||
|
result += mat4(-0.16528109, -0.021465264, -0.01748084, 0.015213102, -0.06939932, -0.056900162, -0.025318267, 0.013503473, -0.25687647, 0.09297276, 0.03076436, 0.04448304, 0.31659758, 0.21828108, 0.040426437, 0.042881463) * input_3(1.0, 1.0);
|
||
|
result += vec4(-0.020631848, 0.05779234, 0.0010567036, 0.04774376);
|
||
|
return max(result, vec4(0.0));
|
||
|
}
|
||
|
|
||
|
//!DESC ArtCNN C4F16 (Conv-2-ReLU)
|
||
|
//!HOOK LUMA
|
||
|
//!BIND conv2d_1_tf
|
||
|
//!BIND conv2d_1_tf1
|
||
|
//!BIND conv2d_1_tf2
|
||
|
//!BIND conv2d_1_tf3
|
||
|
//!SAVE conv2d_2_tf1
|
||
|
//!WIDTH LUMA.w
|
||
|
//!HEIGHT LUMA.h
|
||
|
//!COMPONENTS 4
|
||
|
//!WHEN OUTPUT.w LUMA.w / 1.3 > OUTPUT.h LUMA.h / 1.3 > *
|
||
|
#define input_0(x_off, y_off) (conv2d_1_tf_texOff(vec2(x_off, y_off)))
|
||
|
#define input_1(x_off, y_off) (conv2d_1_tf1_texOff(vec2(x_off, y_off)))
|
||
|
#define input_2(x_off, y_off) (conv2d_1_tf2_texOff(vec2(x_off, y_off)))
|
||
|
#define input_3(x_off, y_off) (conv2d_1_tf3_texOff(vec2(x_off, y_off)))
|
||
|
vec4 hook() {
|
||
|
vec4 result = mat4(-0.0032418317, -0.00281845, 0.09355873, -0.024295783, -0.06367037, 0.017446801, 0.03231114, 0.14387679, -0.22562215, 0.11822312, -0.13039765, -0.1987292, -0.21944329, -0.0895259, -0.04607487, 0.41073295) * input_0(-1.0, -1.0);
|
||
|
result += mat4(-1.0766065, 0.21408156, -0.29746503, -0.7015492, -0.12756523, 0.25920132, 0.34356612, 0.15150845, 0.01198087, -0.28495735, 0.21088229, 0.036871694, -0.15790656, -0.039942082, 0.013812598, 0.11601882) * input_0(-1.0, 0.0);
|
||
|
result += mat4(0.31024015, -0.2696443, 0.18331341, 1.6139767, 0.056110255, 0.18936342, 0.09762666, 0.31446752, -0.05235961, -0.029698957, -0.034949396, 0.26445726, 0.061127037, 0.070559, 0.08115693, 0.16131893) * input_0(-1.0, 1.0);
|
||
|
result += mat4(-0.0015656165, 0.13085325, -0.040557288, -0.13967055, -0.03193661, -0.17216593, -0.011907505, 0.027492287, 0.021079114, -0.39898136, 0.16838726, 0.15773164, -0.92173773, -1.4150436, -0.080213286, -0.4462429) * input_0(0.0, -1.0);
|
||
|
result += mat4(-0.90852517, 0.26728588, 0.55115455, 0.5415873, -0.4288419, 0.09903167, 0.3735992, 0.6444309, 0.4024263, -0.058784615, -0.9345013, -0.52035, 0.11466488, -0.49863517, -0.012234155, -0.17142402) * input_0(0.0, 0.0);
|
||
|
result += mat4(1.1278188, -0.01965422, -1.4823472, -0.97913736, 0.034382686, 0.09777821, 0.31772834, 0.73121727, 0.20733249, -0.313271, 0.10104627, -0.5723655, -0.055001315, 0.007574654, 0.014853455, -0.16464826) * input_0(0.0, 1.0);
|
||
|
result += mat4(0.044183962, -0.119332716, -0.095162526, 0.1387352, 0.101037905, -0.09494954, 0.018316362, 0.22334825, 0.15947162, 0.48524976, 0.030767452, -0.366869, -0.09920594, -0.6560571, -0.3401922, 0.11465476) * input_0(1.0, -1.0);
|
||
|
result += mat4(-0.68812156, -0.70782506, 0.252562, -0.25377655, 0.123907275, 0.84538573, 0.37554488, 0.37987, -0.32107696, -0.12985495, 0.05096817, 0.05598393, -0.23294725, 0.099453315, -0.04711874, 0.017520407) * input_0(1.0, 0.0);
|
||
|
result += mat4(-0.87061954, 0.43077528, 0.6937386, 0.07236113, 0.21538937, -0.2815185, 0.031700328, -0.28346708, 0.015436165, 0.04262717, -0.061281182, 0.38382068, 0.015369656, 0.014499268, -0.0008541125, 0.18895553) * input_0(1.0, 1.0);
|
||
|
result += mat4(0.06886726, -0.13550553, -0.2460777, -0.30955797, 0.0056309765, 0.017938443, -0.012305138, 0.21143034, 0.054592423, -0.099534884, -0.089678936, -0.5861638, -0.071734734, -0.0450752, -0.1498938, 0.14484903) * input_1(-1.0, -1.0);
|
||
|
result += mat4(-0.029322878, 0.10450356, -0.13979657, -0.013428391, 0.09557894, 0.048527256, 0.07404175, 0.08305832, -0.26188996, -0.06288839, -0.20875691, 0.14718486, 0.00019934203, -0.010475175, -0.08412265, -0.08540938) * input_1(-1.0, 0.0);
|
||
|
result += mat4(0.13610592, -0.1075299, -0.105324626, 0.3348078, 0.05380872, 0.06398808, 0.021310508, 0.056981247, -0.071265176, -0.0025995288, -0.012366852, -0.13604502, 0.014241401, 0.045584686, -0.0018864004, 0.09843744) * input_1(-1.0, 1.0);
|
||
|
result += mat4(-0.032252572, 0.33270177, 0.07956925, -0.39224666, 0.46453315, 0.25809258, -0.13195899, 0.04949939, -0.21033348, -0.955089, 0.23454161, 0.35407177, -0.19022815, -0.27849483, 0.08718101, -0.07270922) * input_1(0.0, -1.0);
|
||
|
result += mat4(0.3107551, -0.5045696, -0.22188987, -0.52426636, 0.23835345, 0.13928273, -0.07865814, -0.39791438, -0.7715955, -0.29919335, 0.66237426, 0.0005386186, 0.25051332, -0.27902642, -0.3420562, -0.22343822) * input_1(0.0, 0.0);
|
||
|
result += mat4(0.025259644, -0.12753583, 0.007588169, -0.0431681, 0.08629881, -0.12850453, 0.010906871, 0.24766417, -0.04026413, 0.08566904, -0.028795354, -0.31396678, 0.0115587115, 0.009978338, -0.03189287, 0.033203743) * input_1(0.0, 1.0);
|
||
|
result += mat4(-0.086983286, -0.44656163, 0.006433615, -0.09622339, 0.35967687, 0.9416047, -0.11794692, 0.06485681, -0.20577492, -1.0380989, 0.061755467, -0.34625283, -0.20514214, -1.3819218, 0.16718706, 0.0078006666) * input_1(1.0, -1.0);
|
||
|
result += mat4(-0.033058852, 0.18619445, -0.10690333, 0.29517832, 0.2259145, 0.70564175, -0.0009205537, 0.557237, 0.04601124, -0.24531358, -0.05826118, -0.4834744, 0.027569221, -0.85532147, -0.5015265, -0.85845566) * input_1(1.0, 0.0);
|
||
|
result += mat4(-0.03760437, 0.16698386, -0.0027971845, -0.13247986, -0.02621725, -0.09816215, 0.07182061, 0.7173764, -0.056115553, 0.08067314, -0.031009741, -0.41968298, 0.012316497, -0.037612073, 0.016410317, -0.15089153) * input_1(1.0, 1.0);
|
||
|
result += mat4(0.11930576, -0.105056755, -0.21176857, -0.10437857, 0.63857514, 0.02063724, 0.11624289, 0.74083203, -0.040834814, 0.20874532, 0.10178323, -0.1438132, 0.028896464, 0.07441687, 0.03823055, -0.18959804) * input_2(-1.0, -1.0);
|
||
|
result += mat4(0.15858725, -0.16875058, 0.060016416, -0.38650483, 0.19379084, 0.44335982, 0.10119985, -0.54430217, -0.0804738, 0.09750854, 0.13848816, 0.40491527, -0.1114565, -0.057725493, 0.10729917, -0.13439661) * input_2(-1.0, 0.0);
|
||
|
result += mat4(0.049936228, -0.08880706, -0.07856456, -0.3438158, -0.32723048, -0.024178717, 0.0924733, 0.1360996, -0.025931815, 0.13301319, 0.102743246, 0.13681285, -0.07925731, 0.10479034, 0.09712417, -0.18522662) * input_2(-1.0, 1.0);
|
||
|
result += mat4(-0.20773003, -0.37879512, 0.24735211, -0.36258343, -0.2977519, 0.12170178, 0.10047027, 1.1193113, -0.2661618, 0.18264809, 0.15162806, -0.04329905, -0.04325619, -0.024972865, -0.005214961, -0.2864696) * input_2(0.0, -1.0);
|
||
|
result += mat4(0.35002282, 0.7271431, -0.39227498, -0.52168417, -0.041568764, -0.2999454, 0.113214865, -0.75611854, 0.07534638, 0.09483176, 0.3060282, 0.33795384, -0.102311045, 0.37781683, 0.03418143, -0.59470314) * input_2(0.0, 0.0);
|
||
|
result += mat4(-0.00018808924, -0.0075254934, -0.05493958, 0.48828408, 0.10667924, 0.31491157, 0.09198391, 0.49204823, -0.04749728, 0.14780743, 0.03658829, -0.15973495, 0.019449852, 0.24918088, 0.20268294, -0.5292132) * input_2(0.0, 1.0);
|
||
|
result += mat4(0.20290099, -0.26941967, 0.09761545, 0.056405928, 0.19977914, 0.09699908, 0.0051088366, 0.18679713, -0.17448671, 0.3379895, 0.15410927, 0.041986722, 0.016882308, 0.23363072, -0.018388221, -0.5699578) * input_2(1.0, -1.0);
|
||
|
result += mat4(-0.1950845, -0.08681598, 0.047809556, 0.72161925, -0.05803967, 0.19885783, 0.041264344, -0.10988862, 0.0744118, 0.23799276, 0.09191112, -0.29449457, -0.14617108, 0.20597872, 0.19203386, -0.63249385) * input_2(1.0, 0.0);
|
||
|
result += mat4(-0.038470183, -0.00018700835, 0.010806657, -0.26444888, 0.031786107, -0.13948701, 0.043842457, -0.12175045, -0.0094440915, 0.25809965, 0.027568689, -0.04877708, 0.11713721, 0.37429926, 0.13103049, -0.78984934) * input_2(1.0, 1.0);
|
||
|
result += mat4(-0.27891314, 0.11715391, 0.16587777, 0.08494328, 0.122880325, -0.043016773, 0.000936336, -0.035826523, -0.053165674, 0.11331368, -0.073407635, 0.22329518, 0.029878104, 0.09026176, 0.04326734, -0.114236854) * input_3(-1.0, -1.0);
|
||
|
result += mat4(0.32378826, -0.18797228, -0.07196155, 0.27878618, -0.045553744, -0.00764739, 0.083094895, -0.14322676, 0.10549502, 0.059752427, 0.04437663, 0.009793787, 0.077268764, 0.002083231, 0.09856524, -0.13051282) * input_3(-1.0, 0.0);
|
||
|
result += mat4(-0.24678248, -0.20220315, -0.025333386, 0.14738284, -0.040433243, 0.081312746, 0.0271736, -0.17826521, 0.009212756, 0.13966317, 0.026818553, -0.039250426, -0.0017009734, -0.0014022918, 0.026952995, 0.100892946) * input_3(-1.0, 1.0);
|
||
|
result += mat4(-0.086581096, -0.4406713, -0.02875564, -0.40684685, -0.21909209, -0.1514063, -0.44540754, -0.301432, 0.02622643, 0.08950116, -0.11255894, -0.15233463, -0.22481476, 0.09743011, -0.3561726, -0.8044944) * input_3(0.0, -1.0);
|
||
|
result += mat4(0.020818314, -0.73993814, 0.32895774, 0.47817877, -0.10755548, -0.17971893, 0.18175483, -0.6607182, 0.37159398, 0.18343213, 0.004194262, -0.15745291, -0.37303105, -0.6155113, 0.49484956, 0.38394094) * input_3(0.0, 0.0);
|
||
|
result += mat4(-0.3311772, 0.46830612, 0.1549903, 0.21548174, -0.057978004, 0.14099161, -0.088874854, 0.26388767, 0.17865022, 0.26672542, 0.09265982, 0.30567315, 0.13145038, 0.4363063, 0.1552734, -0.2062865) * input_3(0.0, 1.0);
|
||
|
result += mat4(-0.06321535, -0.019997166, 0.031983953, -0.10096831, -0.14357273, -0.27046266, -0.041355003, -0.26706928, -0.028463002, 0.28695852, -0.0050459146, 0.3118061, 0.3228208, -0.79137194, -0.26436442, -0.33849612) * input_3(1.0, -1.0);
|
||
|
result += mat4(0.14695117, -0.28402868, -0.021456135, -0.13634984, 0.14185408, -0.16042992, -0.0673965, 0.38385352, 0.20306498, 0.067465745, 0.036354687, 0.500885, 0.07446424, -1.726981, 0.07081159, 0.3101797) * input_3(1.0, 0.0);
|
||
|
result += mat4(-0.07788495, 0.052131526, -0.020398667, -0.025184246, 0.014951706, 0.01782885, -0.014316903, -0.11160989, 0.13326314, 0.13992104, -0.076109454, 0.19876897, 0.05500878, 0.011768918, 0.13755211, -0.6384986) * input_3(1.0, 1.0);
|
||
|
result += vec4(-0.011627553, 0.2941776, 0.15296347, 0.17125928);
|
||
|
return max(result, vec4(0.0));
|
||
|
}
|
||
|
|
||
|
//!DESC ArtCNN C4F16 (Conv-2-ReLU)
|
||
|
//!HOOK LUMA
|
||
|
//!BIND conv2d_1_tf
|
||
|
//!BIND conv2d_1_tf1
|
||
|
//!BIND conv2d_1_tf2
|
||
|
//!BIND conv2d_1_tf3
|
||
|
//!SAVE conv2d_2_tf2
|
||
|
//!WIDTH LUMA.w
|
||
|
//!HEIGHT LUMA.h
|
||
|
//!COMPONENTS 4
|
||
|
//!WHEN OUTPUT.w LUMA.w / 1.3 > OUTPUT.h LUMA.h / 1.3 > *
|
||
|
#define input_0(x_off, y_off) (conv2d_1_tf_texOff(vec2(x_off, y_off)))
|
||
|
#define input_1(x_off, y_off) (conv2d_1_tf1_texOff(vec2(x_off, y_off)))
|
||
|
#define input_2(x_off, y_off) (conv2d_1_tf2_texOff(vec2(x_off, y_off)))
|
||
|
#define input_3(x_off, y_off) (conv2d_1_tf3_texOff(vec2(x_off, y_off)))
|
||
|
vec4 hook() {
|
||
|
vec4 result = mat4(0.10550374, -0.11357201, 0.07888178, -0.009454996, 0.029243728, 0.044776008, 0.06117017, -0.0033941732, 0.11475406, -0.00047773556, -0.010560198, -0.082750596, 0.32353073, 0.10755812, -0.06297476, -0.14294274) * input_0(-1.0, -1.0);
|
||
|
result += mat4(0.07537084, -0.048691943, -0.21579227, -0.22620541, -0.31984562, 0.09245543, 0.07503905, 0.41105175, -0.34871918, -0.21163185, -0.234607, -0.1813852, 0.2768104, 0.116012335, -0.051209014, -0.41934308) * input_0(-1.0, 0.0);
|
||
|
result += mat4(0.106116466, -0.19425815, -0.22837971, -0.14025483, -0.34739834, -0.00032619608, -0.21126792, 0.48743576, 0.2779885, 0.17174353, -0.027002458, 0.07306874, 0.020137945, -0.082750596, -0.087257035, -0.17315188) * input_0(-1.0, 1.0);
|
||
|
result += mat4(-0.110023506, -0.031421598, -0.100148745, -0.043778997, -0.04639248, 0.088162325, 0.061915398, 0.0066980026, 0.13395983, -0.11040434, -0.05704891, 0.022581374, 0.3128967, -0.2689307, -0.41545668, 0.07292348) * input_0(0.0, -1.0);
|
||
|
result += mat4(0.1986706, -0.19586797, 0.13557135, -0.18278186, -0.16700716, 0.35033453, 0.29307887, 0.26364493, -0.009355249, 0.058410957, -1.0506444, -0.40182757, 0.31098273, -0.10666301, -2.6548178, -0.84548914) * input_0(0.0, 0.0);
|
||
|
result += mat4(0.6885304, 2.6740043, -1.1639572, 0.3212138, -0.38607416, -0.22761318, -0.34288582, 1.0032585, -0.3754143, -0.277084, 2.2632895, -0.10069846, 0.1706768, -0.17704798, -0.3690754, -0.55623144) * input_0(0.0, 1.0);
|
||
|
result += mat4(-0.0058475747, 0.092239834, 0.03258296, -0.006873515, 0.0055270563, -0.06623486, 0.021254987, 0.010057185, -0.22673327, 0.02831149, -0.08270155, 0.010610379, 0.16480452, -0.07799774, -0.18108465, -0.08041636) * input_0(1.0, -1.0);
|
||
|
result += mat4(-0.3687917, 0.0015192678, 0.26362047, 0.14053847, -0.09660009, 0.22568233, 0.20263867, 0.13928469, 0.13896161, -0.034658827, -0.12544766, 0.15765382, 0.1916885, -0.09351314, 0.17469986, -0.23801863) * input_0(1.0, 0.0);
|
||
|
result += mat4(0.054990374, 0.6731113, -0.79498553, -0.18008845, -0.13066109, 0.006744439, -0.078951105, 0.44002286, 0.122511245, 0.00030432644, -0.08969934, 0.06675112, -0.004104628, 0.05107683, -0.023175346, -0.19301888) * input_0(1.0, 1.0);
|
||
|
result += mat4(-0.10026489, -0.18141319, 0.28367928, -0.32065824, 0.096969925, -0.025516586, 0.09370025, 0.06267722, -0.21437296, 0.015152029, -0.0022978738, -0.027678905, -0.17771055, -0.12993106, -0.07937723, -0.03669109) * input_1(-1.0, -1.0);
|
||
|
result += mat4(0.03983677, -0.17381713, 0.1917902, -0.35414377, 0.23821616, 0.10345124, -0.006042578, -0.14040653, -0.46987906, 0.028904872, 0.23900944, -0.3405824, -0.1249719, -0.29366374, -0.011886979, -0.10576485) * input_1(-1.0, 0.0);
|
||
|
result += mat4(-0.11324996, -0.0040691877, -0.057280954, -0.13331561, 0.16730803, 0.08193078, 0.008491761, -0.11388916, -0.15777789, -0.022868123, -0.09045951, -0.07077411, -0.08416382, -0.014607465, 0.02053901, 0.016474707) * input_1(-1.0, 1.0);
|
||
|
result += mat4(-0.18575658, -0.12995607, -0.107579865, -0.10049691, 0.24668694, -0.5316361, 0.0068146405, 0.10583138, -0.26690453, -0.19832891, 0.01485171, -0.19615255, -0.38808602, -0.31071585, -0.00948727, -0.24661621) * input_1(0.0, -1.0);
|
||
|
result += mat4(0.24906884, -0.10380555, -0.43266407, 0.45181814, 0.6533882, -0.2593012, -0.38899824, -0.6780327, 0.03871626, 0.21516687, 0.45395896, -0.33956707, -0.4921976, -0.0052295616, -0.018502828, 0.09199569) * input_1(0.0, 0.0);
|
||
|
result += mat4(-0.037210345, 0.12695578, 0.8139262, 0.10623822, 0.079375744, -0.05145209, 0.15738356, -0.106218986, -0.02607716, 0.17086633, -1.6931845, 0.034994286, -0.08811003, -0.04408626, -0.071093574, 0.21023814) * input_1(0.0, 1.0);
|
||
|
result += mat4(-0.06261088, -0.1259426, -0.014824326, 0.090662636, 0.12494774, 0.07766109, 0.13789569, -0.007168516, -0.1181953, -0.03137529, 0.0331089, 0.09037104, -0.23512071, -0.05876927, -0.14690368, -0.094113044) * input_1(1.0, -1.0);
|
||
|
result += mat4(0.06465673, -0.051327128, -0.048185863, -0.12279169, 0.16082339, -0.06591974, 0.34204733, -0.010650814, -0.17619836, 0.27045846, -0.034530625, 0.020852929, 0.2346645, 0.42727286, -4.4332733, -0.25491363) * input_1(1.0, 0.0);
|
||
|
result += mat4(-0.039185487, 0.11757238, -0.044797663, -0.08931824, 0.22486374, -0.011932243, -0.7173879, -0.40206847, -0.09916637, 0.042071722, 0.09706156, 0.07707701, -0.040210437, -0.081606284, 0.06445115, 0.26630825) * input_1(1.0, 1.0);
|
||
|
result += mat4(0.11721917, 0.069451794, 0.15904525, -0.36388224, -0.28100982, -0.15428692, 0.158798, -0.072103195, -0.0155322375, 0.16896516, 0.22271194, -0.06142391, -0.0028926188, 0.0749536, -0.096120745, 0.011480361) * input_2(-1.0, -1.0);
|
||
|
result += mat4(0.24732758, -0.1566908, 0.033109933, 0.028149575, -0.1544836, 0.3285281, 0.07156109, 0.2987016, -0.08272131, 0.22117566, 0.13635363, -0.14212343, -0.16792537, 0.102990665, -0.013385898, 0.19609737) * input_2(-1.0, 0.0);
|
||
|
result += mat4(-0.059073802, 0.24315168, 0.17736703, 0.14955598, -0.09276576, -0.08832887, -0.08893188, 0.28026223, 0.0021140373, 0.06291259, 0.22999181, -0.12695849, -0.100244544, 0.120247245, 0.008690474, 0.11451382) * input_2(-1.0, 1.0);
|
||
|
result += mat4(-0.061550517, 0.17739052, 0.28066316, -0.2199194, 0.346721, 0.29904357, 0.10979857, 0.020835191, 0.12165364, 0.2582395, 0.19736022, -0.06917475, -0.031416975, -0.09026073, -0.031493474, 0.09027557) * input_2(0.0, -1.0);
|
||
|
result += mat4(-0.097644374, 0.31185693, 0.2514437, 0.040911343, 0.019634232, -0.60278106, 0.11090485, -0.18912655, -0.0971697, 0.17026265, 0.26222247, -0.21533012, -0.1874704, 0.17056972, 0.0017216684, 0.22697547) * input_2(0.0, 0.0);
|
||
|
result += mat4(-0.23532534, 0.22481272, 0.6483678, 0.4122062, -0.37793967, 0.3714874, -0.440418, -0.18221484, -0.11868537, 0.13543686, 0.09139225, -0.1671763, -0.3605308, 0.13794807, 0.24802916, 0.07587314) * input_2(0.0, 1.0);
|
||
|
result += mat4(-0.14598802, -0.01992267, 0.09651476, -0.022682654, -0.048200414, 0.07139038, 0.0045526684, 0.011973538, 0.08754029, 0.086166345, 0.108765334, -0.027121557, -0.03633989, 0.0735487, -0.047362532, -0.0010878895) * input_2(1.0, -1.0);
|
||
|
result += mat4(0.061255276, -0.1474043, -0.2096865, -0.107057795, 0.048980188, -0.01015316, 0.04263835, -0.04054499, -0.015358464, 0.095012315, 0.27709615, -0.009710667, 0.010034585, 0.22730115, 0.0072672963, -0.0013347507) * input_2(1.0, 0.0);
|
||
|
result += mat4(0.030503936, -0.13295831, -0.0354101, 0.050955754, 0.04219271, 0.039887317, 0.047018275, 0.106013164, 0.041373182, 0.06713298, 0.047747795, -0.17144798, -0.2170039, 0.09796223, -0.007748606, 0.20715609) * input_2(1.0, 1.0);
|
||
|
result += mat4(-0.048806306, 0.019672344, 0.068977624, -0.08191503, 0.09681816, -0.179008, -0.09567522, 0.012263574, 0.03415055, 0.0099034235, 0.13068233, 0.106509015, -0.0728294, -0.08786517, -0.019333074, 0.030700652) * input_3(-1.0, -1.0);
|
||
|
result += mat4(0.31564966, -0.15104221, -0.0024279412, -0.011578325, 0.20037314, -0.14247908, -0.5562782, -0.11083048, 0.061042182, -0.009004217, 0.047792602, -0.11209622, -0.017687157, 0.12686348, 0.052747484, 0.068618566) * input_3(-1.0, 0.0);
|
||
|
result += mat4(0.46351027, -0.32469144, -0.16121142, -0.2916236, 0.096389204, -0.027867593, 0.123439185, -0.06554243, 0.06070318, 0.015006846, 0.13056518, 0.053025745, -0.044289447, -0.0021437278, -0.025217721, 0.13451631) * input_3(-1.0, 1.0);
|
||
|
result += mat4(-0.054940782, -0.11412618, -0.043573245, 0.086213805, 0.2716397, 0.5768788, -0.02239066, -0.031175284, 0.23828429, -0.109657325, 0.07375226, -0.010235546, 0.17213656, 0.115580365, -0.34312066, 0.18388635) * input_3(0.0, -1.0);
|
||
|
result += mat4(0.01707091, 0.2990204, 0.07792275, 0.21241857, -0.2150948, -0.03729286, 1.3200082, 0.39277607, 0.3458824, -0.47904748, 0.17305411, -0.14150707, 0.092167735, -0.30734637, -0.1227123, 0.298594) * input_3(0.0, 0.0);
|
||
|
result += mat4(0.08047529, -0.5537223, -0.013211265, 0.31446353, 0.026941746, 0.049584966, -0.07612921, 0.009145891, 0.0153347375, -0.01635164, 0.1282867, -0.106672846, 0.15963459, 0.103865296, -3.0934982, -0.012764183) * input_3(0.0, 1.0);
|
||
|
result += mat4(0.057316717, 0.004068976, -0.009991628, 0.018255783, 0.017127823, -0.29468337, 0.08387032, -0.031016294, 0.04162933, -0.10439918, 0.112593025, -0.06880861, -0.10102297, -0.24036682, -0.08144947, -0.07253578) * input_3(1.0, -1.0);
|
||
|
result += mat4(-0.056656495, 0.018891655, 0.022379898, 0.08819716, -0.043121625, -0.16581047, -0.38594142, -0.010498503, 0.14442314, -0.06626305, 0.15192088, -0.13532262, -0.0061613866, -0.26219103, -0.063897066, 0.28610343) * input_3(1.0, 0.0);
|
||
|
result += mat4(0.0091306465, -0.038607072, 0.014295919, -0.089914754, 0.0125954505, -0.019543052, 0.18890853, -0.05892927, 0.1191712, -0.14014573, 0.15696165, 0.12862267, 0.117319606, -0.2725742, 0.4468303, 0.00083987927) * input_3(1.0, 1.0);
|
||
|
result += vec4(0.09942654, 0.17647809, -0.23357716, 0.15207362);
|
||
|
return max(result, vec4(0.0));
|
||
|
}
|
||
|
|
||
|
//!DESC ArtCNN C4F16 (Conv-2-ReLU)
|
||
|
//!HOOK LUMA
|
||
|
//!BIND conv2d_1_tf
|
||
|
//!BIND conv2d_1_tf1
|
||
|
//!BIND conv2d_1_tf2
|
||
|
//!BIND conv2d_1_tf3
|
||
|
//!SAVE conv2d_2_tf3
|
||
|
//!WIDTH LUMA.w
|
||
|
//!HEIGHT LUMA.h
|
||
|
//!COMPONENTS 4
|
||
|
//!WHEN OUTPUT.w LUMA.w / 1.3 > OUTPUT.h LUMA.h / 1.3 > *
|
||
|
#define input_0(x_off, y_off) (conv2d_1_tf_texOff(vec2(x_off, y_off)))
|
||
|
#define input_1(x_off, y_off) (conv2d_1_tf1_texOff(vec2(x_off, y_off)))
|
||
|
#define input_2(x_off, y_off) (conv2d_1_tf2_texOff(vec2(x_off, y_off)))
|
||
|
#define input_3(x_off, y_off) (conv2d_1_tf3_texOff(vec2(x_off, y_off)))
|
||
|
vec4 hook() {
|
||
|
vec4 result = mat4(0.067739464, 0.0027059154, 0.045670707, 0.020509422, 0.02953874, 0.02180957, -0.038988404, -0.01756666, 0.048566956, 0.0021717283, -0.096184336, 0.080362216, -0.046530686, -0.02404417, -0.120621644, -0.1660682) * input_0(-1.0, -1.0);
|
||
|
result += mat4(0.029015584, -0.039481238, -0.09606819, 0.14278576, 0.07042536, 0.021169947, 0.17910199, 0.12215355, -0.029076498, 0.034717556, -0.03351626, -0.23706649, 0.0020323945, 0.11280138, -0.03511748, -0.09597691) * input_0(-1.0, 0.0);
|
||
|
result += mat4(-0.08722484, -1.2326493, -0.10809882, -0.4832474, -0.14781204, 0.2355961, 0.08951413, 0.0072795395, 0.019944001, -2.9771545, -0.09160745, -0.005327705, 0.005668408, -0.07025448, 0.049534023, 0.057965506) * input_0(-1.0, 1.0);
|
||
|
result += mat4(-0.08216266, -0.11346823, 0.012806841, 0.071437635, 0.07094945, 0.037956208, 0.032686718, -0.01591238, -0.014875455, 0.022008732, 0.019224355, -0.039669428, -0.14594707, -0.018881148, -0.07885135, -0.1227608) * input_0(0.0, -1.0);
|
||
|
result += mat4(0.5479983, -0.035111785, 0.069499284, 0.25283432, 0.0067244517, -0.09061067, 0.16611268, 0.0943576, 0.043323796, -0.07343535, 0.22490929, -0.006480972, 0.086440526, 0.39434922, 0.19401151, -0.171947) * input_0(0.0, 0.0);
|
||
|
result += mat4(-0.21467613, -1.2214702, 1.1222911, 1.4394158, -0.02305277, -0.619216, 0.23527057, 0.04858989, -0.04974739, -3.157367, 0.12800173, 0.028441412, 0.023826249, -0.07434157, -0.055966213, -0.05619391) * input_0(0.0, 1.0);
|
||
|
result += mat4(-0.044177588, 0.009508421, -0.04047933, -0.05853689, 0.12521958, 0.0110212965, 0.023681004, 0.020921888, -0.18744467, -0.032152016, 0.036749817, -0.04315448, 0.1749953, -0.07129545, -0.025162565, -0.037116393) * input_0(1.0, -1.0);
|
||
|
result += mat4(-0.4363973, 0.049752127, 0.26370835, -0.33778724, 0.29309008, 0.25356743, 0.07964115, 0.12768093, 0.2558791, 0.043976013, -0.15514928, 0.20261404, -0.27247292, 0.30584708, 0.10962227, -0.1848668) * input_0(1.0, 0.0);
|
||
|
result += mat4(1.0268433, -0.270622, 0.016543254, 1.1357723, -0.16738483, -0.23547953, 0.06139363, 0.051402543, -0.042256027, -1.8247498, 0.03720584, -0.025378505, -0.0035531109, 0.23077229, -0.03149228, 0.0012972733) * input_0(1.0, 1.0);
|
||
|
result += mat4(-0.034585327, 0.062254965, 0.0014796978, 0.13066417, 0.02817195, -0.004246652, -0.0033744, 0.032713026, -0.057866693, -0.005955477, 0.03754926, 0.05410584, -0.041203726, 0.07098761, -0.009045757, 0.07356443) * input_1(-1.0, -1.0);
|
||
|
result += mat4(0.10431114, -0.8258525, 0.03268785, -0.09126408, -0.047993798, -0.025064142, 0.017462531, -0.06854077, 0.04787914, -0.45720297, -0.008068044, 0.095724806, 0.03778847, -0.024348995, 0.03927608, -0.013326363) * input_1(-1.0, 0.0);
|
||
|
result += mat4(-0.11094069, 0.99817014, 0.019983035, -0.10872309, 0.0022901185, -0.888232, -0.0033115891, 0.04839168, 0.0050655757, 0.9749891, -0.0077763745, -0.05803866, 0.018184017, 0.03728442, 0.043797906, -0.015761456) * input_1(-1.0, 1.0);
|
||
|
result += mat4(0.19187991, 0.10303422, 0.071418665, 0.16885018, 0.12305704, 0.025473969, -0.06434405, -0.107251175, -0.0134891635, 0.08998735, -0.02127025, -0.09854704, -0.11906279, -0.1266874, 0.14351588, 0.07888272) * input_1(0.0, -1.0);
|
||
|
result += mat4(0.5514885, 0.555759, 0.038488757, -0.23715097, -0.00756622, -0.049909916, -0.1279928, -0.10791177, -0.17262994, -0.30031818, -0.16013937, 0.16004044, 0.13373448, 0.612924, 0.042359155, 0.17621052) * input_1(0.0, 0.0);
|
||
|
result += mat4(0.23727892, -1.4445945, -0.059873905, 0.12031908, -0.01459347, -0.8545277, 0.03050521, -0.010392183, 0.011643898, 1.1577172, 0.015770452, 0.04114256, 0.0057659457, -0.9851211, -0.022179918, -0.062343713) * input_1(0.0, 1.0);
|
||
|
result += mat4(-0.84334755, 0.10418579, 0.001138701, 0.018169077, -0.4705142, -0.085094, 0.083179474, 0.19631213, -2.636338, 0.05460574, -0.042804454, -0.26097092, -1.0932889, -0.05230706, 0.21458454, -0.26925626) * input_1(1.0, -1.0);
|
||
|
result += mat4(0.121143535, -0.12113049, 0.00025860054, -0.06588957, 0.16674016, 0.034282334, 0.108497456, 0.07352785, -0.05503895, -0.47280398, -0.15442462, -0.07043764, -0.10883482, -0.53495437, -0.047170017, -0.04228292) * input_1(1.0, 0.0);
|
||
|
result += mat4(-0.18606336, 0.059038725, -0.025718078, -0.04170661, 0.08339069, 0.056081437, -0.012081724, -0.019549258, -0.015528093, -2.8108625, 0.03167536, 0.07075596, -0.012097635, -0.24080202, -0.048143532, 0.011047583) * input_1(1.0, 1.0);
|
||
|
result += mat4(-0.057556324, -0.0041240123, -0.124363296, -0.09020502, -0.11465544, -0.04956608, 0.13891084, -0.11134685, 0.020822667, -0.054151896, 0.060716666, 0.0007391353, 0.033566225, 0.0011971671, 0.024020206, 0.009046991) * input_2(-1.0, -1.0);
|
||
|
result += mat4(0.09700671, 0.21268755, -0.019426173, -0.0066364, 0.31379914, -0.18238954, 0.13425156, 0.3888867, -0.061964467, -0.054789413, 0.045532513, -0.04585025, -0.026202781, 0.009398275, 0.02388083, -0.03854979) * input_2(-1.0, 0.0);
|
||
|
result += mat4(-0.0059061917, -0.19723885, -0.014375415, 0.023015227, -0.15797538, -0.48732564, -0.3192106, -0.031382356, -0.0004972266, 0.45357284, 0.036495592, -0.020902526, -0.015138299, -0.9485471, 0.015136834, 0.07421264) * input_2(-1.0, 1.0);
|
||
|
result += mat4(-0.020380314, 0.2012965, -0.20302327, -0.09897661, 0.14649989, 0.08775424, -0.08441092, 0.13169192, 0.12150639, 0.10510166, 0.067217804, 0.06730403, -0.025086759, -0.042309124, 0.010839681, 0.016844064) * input_2(0.0, -1.0);
|
||
|
result += mat4(0.094443746, 0.22262073, 0.35584304, 0.02990167, 0.23894444, 0.1008289, 0.31466147, -0.2749282, -0.12543873, 0.013210149, 0.12012216, 0.058901228, 0.042775217, -0.023439521, -0.0025481142, 0.048405815) * input_2(0.0, 0.0);
|
||
|
result += mat4(-0.0598501, -0.79461426, 0.064557455, 0.016271438, 0.17290382, 0.22850311, -0.11322352, 0.02494747, 0.085244, 0.5943068, -0.032279726, -0.06699785, 0.023163918, -0.36143672, 0.19113597, 0.059635084) * input_2(0.0, 1.0);
|
||
|
result += mat4(-0.087975144, -0.19417961, -0.00799036, 0.026454458, -0.08341214, -0.009212416, -0.04849944, -0.0505916, 0.10676469, -0.05725598, 0.0068268557, 0.010562822, -0.049340367, -0.0056357533, -0.014285177, 0.0148984445) * input_2(1.0, -1.0);
|
||
|
result += mat4(0.29703292, 0.20045064, -0.093661845, 0.12405044, -0.074945636, 0.08038589, 0.053966664, 0.10201409, -0.17379364, -0.012045927, 0.042001713, -0.03994206, 0.11479336, 0.0028630574, -0.050728705, -0.0010972767) * input_2(1.0, 0.0);
|
||
|
result += mat4(0.02558727, -0.33157972, 0.00038281528, -0.032282583, -0.016395275, -0.21367556, 0.05019589, -0.033307116, 0.09189105, 0.4721281, -0.02957601, 0.008412057, -0.043125976, -0.598167, 0.07234823, 0.2343087) * input_2(1.0, 1.0);
|
||
|
result += mat4(0.009162198, -0.027312744, 0.048758037, -0.043983176, -0.006460136, 0.041034617, -0.016489696, -0.15232925, 0.00037131147, 0.03176477, -0.0048638848, 0.0506047, -0.004328417, 0.040570613, 0.051702786, 0.05605864) * input_3(-1.0, -1.0);
|
||
|
result += mat4(-0.12709533, -0.04773232, 0.35876042, 0.16163702, 0.004747159, -0.61153233, -0.03609678, -0.059261747, 0.029609893, -0.080367625, 0.08530234, -0.016722666, 0.051909745, -0.03355334, -0.020843435, -0.026488796) * input_3(-1.0, 0.0);
|
||
|
result += mat4(-0.030170638, 0.92302775, 0.07801788, -0.19614343, 0.009830339, 0.21927996, -0.02647815, -0.008193135, -0.01932079, 0.14250278, -0.02544482, 0.007135375, -0.057774957, 0.3833391, 0.015643671, 0.019642336) * input_3(-1.0, 1.0);
|
||
|
result += mat4(-0.050147835, 0.076696, -0.024183713, -0.047470324, 0.046041396, -0.05481688, 0.05898662, 0.3583369, 0.010068302, -0.042756177, -0.014871278, 0.059432536, 0.12257442, 0.02437626, -0.10101125, 0.24489224) * input_3(0.0, -1.0);
|
||
|
result += mat4(0.1956195, 0.00011087823, -0.28059885, 0.7199156, -0.059531253, 0.049905967, 0.25357923, 0.15605897, 0.063361794, 0.05286769, 0.07725685, 0.11135747, -0.13634701, 0.029016875, -0.13272844, 0.0040828483) * input_3(0.0, 0.0);
|
||
|
result += mat4(-0.045258604, 1.8520931, -0.01799328, -0.18466973, 0.016824339, -2.0189273, -0.016179508, -0.076441586, -0.04012446, 0.052383106, 0.1307373, 0.09640295, 0.036441494, -0.25817758, 0.17303267, 0.023941569) * input_3(0.0, 1.0);
|
||
|
result += mat4(0.11320436, 0.011102791, -0.02511468, -0.024525892, -0.14659634, -0.06348406, -0.0061215, 0.058561772, -0.060636993, -0.015162144, 0.019557696, 0.07026482, 0.001710844, 0.022721065, 0.0030226433, -0.016129322) * input_3(1.0, -1.0);
|
||
|
result += mat4(-0.41243607, -0.00558194, 0.05159404, -0.16113944, 0.020581646, 0.2724895, -0.0178955, -0.12687217, 0.16615388, 0.022460684, 0.11668086, 0.22976668, -0.6802382, 0.14179753, 0.04529938, -0.56898695) * input_3(1.0, 0.0);
|
||
|
result += mat4(0.078151375, -0.9324457, -0.010844815, -0.05524954, -0.020125253, -0.27159035, 0.012724163, -0.018521506, -0.10530203, 0.11032578, 0.03986082, -0.038589302, -0.0011485526, -0.32736817, 0.064056486, 0.0155353295) * input_3(1.0, 1.0);
|
||
|
result += vec4(-0.038001113, 0.09894204, -0.012140653, 0.02584048);
|
||
|
return max(result, vec4(0.0));
|
||
|
}
|
||
|
|
||
|
//!DESC ArtCNN C4F16 (Conv-3-ReLU)
|
||
|
//!HOOK LUMA
|
||
|
//!BIND conv2d_2_tf
|
||
|
//!BIND conv2d_2_tf1
|
||
|
//!BIND conv2d_2_tf2
|
||
|
//!BIND conv2d_2_tf3
|
||
|
//!SAVE conv2d_3_tf
|
||
|
//!WIDTH LUMA.w
|
||
|
//!HEIGHT LUMA.h
|
||
|
//!COMPONENTS 4
|
||
|
//!WHEN OUTPUT.w LUMA.w / 1.3 > OUTPUT.h LUMA.h / 1.3 > *
|
||
|
#define input_0(x_off, y_off) (conv2d_2_tf_texOff(vec2(x_off, y_off)))
|
||
|
#define input_1(x_off, y_off) (conv2d_2_tf1_texOff(vec2(x_off, y_off)))
|
||
|
#define input_2(x_off, y_off) (conv2d_2_tf2_texOff(vec2(x_off, y_off)))
|
||
|
#define input_3(x_off, y_off) (conv2d_2_tf3_texOff(vec2(x_off, y_off)))
|
||
|
vec4 hook() {
|
||
|
vec4 result = mat4(-0.10005344, -0.32207555, 0.35126314, 0.1157903, 0.26477027, -0.05290584, 0.1271771, 0.005631774, -0.104756735, 0.03517258, -0.18784039, 0.06322826, -0.062020183, 0.0796114, 0.006862096, -0.08741231) * input_0(-1.0, -1.0);
|
||
|
result += mat4(-0.1817206, 0.045146037, -0.15284778, -0.057659954, -0.2602545, 0.10653023, -0.18150768, 0.10097909, -0.13364184, -0.10541466, 0.060924724, -0.04642242, -0.22588973, -0.08851332, 0.04266011, 0.14560021) * input_0(-1.0, 0.0);
|
||
|
result += mat4(0.0032481386, -0.18926735, -0.15300016, 0.0857513, -0.08578758, -0.16300698, 0.07526433, 0.12573123, -0.20636095, -0.118553095, -0.056349076, -0.021158122, -0.019917645, 0.08235268, -0.14490892, -0.06870442) * input_0(-1.0, 1.0);
|
||
|
result += mat4(-0.37780854, -0.50557727, 0.07557546, -0.18951185, -0.14675382, -0.2662757, -0.09277402, -0.049793318, 0.09999114, 0.06552192, -0.32047814, 0.11505951, -0.015945775, -0.23541987, -0.08488792, -0.06440552) * input_0(0.0, -1.0);
|
||
|
result += mat4(-0.39847553, 0.21274813, -0.48760575, 0.04385526, 0.16870281, 0.10439473, 0.11349071, -0.08428587, -0.287578, 0.047464687, 0.59213114, -0.11788779, 0.13076583, 0.05967689, 0.44662437, -0.37907887) * input_0(0.0, 0.0);
|
||
|
result += mat4(0.019753922, 0.042512126, -0.07165959, -0.0047424934, 0.21119925, -0.119841084, -0.2341202, -0.04681472, 0.068969995, 0.023005474, -0.11495845, -0.0179218, 0.12795457, -0.027755499, -0.48143327, 0.05125371) * input_0(0.0, 1.0);
|
||
|
result += mat4(-0.0063870144, -0.047510218, 0.019844037, 0.07576946, 0.020709554, -0.029480092, -0.0032222008, 0.017324664, -0.38806224, 0.035335332, -0.11568631, -0.03231084, 0.22331421, 0.11889553, -0.027294774, 0.13538422) * input_0(1.0, -1.0);
|
||
|
result += mat4(0.008772739, -0.09804964, -0.14500636, -0.1157331, 0.050850537, -0.023496503, 0.038079474, -0.15312111, -0.25285754, 0.00052029325, -0.1443496, -0.1671801, 0.07540808, -0.12552321, 0.0631455, 0.37640706) * input_0(1.0, 0.0);
|
||
|
result += mat4(-0.12935835, 0.018936673, -0.09553037, -0.09316034, 0.10492474, 0.06387998, 0.017409515, 0.13057463, 0.11071247, -0.009303742, -0.089010686, -0.010848988, -0.16474979, -0.13459462, 0.056914203, 0.022668835) * input_0(1.0, 1.0);
|
||
|
result += mat4(-0.14621304, 0.01864028, -0.030282829, 0.049829714, 0.07477222, -0.1872293, 0.17928925, 0.003724601, 0.0040514977, 0.061340626, -0.060705088, -0.025780696, -0.12521073, 0.09617583, -0.036205806, 0.12783483) * input_1(-1.0, -1.0);
|
||
|
result += mat4(0.30341515, -0.09279766, 0.14843357, -0.10862685, -0.3255549, -0.19214563, 0.03243078, -0.0182742, -0.008184046, 0.019384146, 0.00029004953, -0.10316721, 0.0652737, 0.25799292, -0.19911249, -0.16992939) * input_1(-1.0, 0.0);
|
||
|
result += mat4(0.063299745, 0.026708495, -0.06392204, 0.07610867, -0.23250143, 0.03345636, -0.2536738, 0.09829606, 0.17195466, 0.010713547, 0.025351806, 0.0047599394, 0.17517756, -0.1321034, 0.07542099, 0.013362477) * input_1(-1.0, 1.0);
|
||
|
result += mat4(0.10102956, -0.08833531, 0.19861828, -0.0010650193, 0.11665083, -0.40380296, 0.11883646, -0.18350168, -0.098331265, 0.20737503, -0.15164767, 0.11307276, 0.28173006, 0.003149449, 0.42975086, -0.22494918) * input_1(0.0, -1.0);
|
||
|
result += mat4(-0.4771832, -0.15811747, -0.45709103, -0.07176478, -0.30882668, -0.25352, -0.034791645, 0.002588313, 0.47145852, -0.0044145975, -0.022884183, 0.09996802, -0.111771114, 0.30426997, -0.12575695, -0.061978243) * input_1(0.0, 0.0);
|
||
|
result += mat4(-0.1531315, 0.3163987, 0.22507644, -0.027430689, -0.23388663, 0.036593564, -0.08423463, -0.0586196, 0.06882286, 0.10087189, 0.4597024, -0.07977854, 0.18581869, -0.09249678, -0.16745181, 0.017967653) * input_1(0.0, 1.0);
|
||
|
result += mat4(0.15073279, 0.07127097, 0.09139186, -0.03577562, -0.020907575, 0.0075366693, 0.05924859, -0.0034668862, 0.15481569, 0.118530266, 0.057319753, 0.07789012, 0.035116773, 0.0015511204, -0.042259343, -0.16820768) * input_1(1.0, -1.0);
|
||
|
result += mat4(0.20652333, -0.15289648, -0.07437688, 0.30553946, -0.11221521, -0.035228983, 0.010570599, -0.25686395, 0.009186546, 0.15350826, 0.0355522, 0.19790703, 0.2337147, -0.06388212, 0.13973634, -0.16774502) * input_1(1.0, 0.0);
|
||
|
result += mat4(0.20208009, 0.0771182, 0.16536233, -0.07923086, 0.1271268, 0.072979346, -0.19524369, -0.17586854, 0.002548912, -0.021097545, 0.1823881, 0.10045942, -0.10289115, 0.14889723, 0.08740096, -0.08629097) * input_1(1.0, 1.0);
|
||
|
result += mat4(7.7435616e-05, -0.040871985, 0.017799757, 0.032599136, -0.17638807, 0.13550474, -0.08869504, 0.13619722, 0.2859516, 0.17450324, 0.22034112, -0.10680228, -0.25221837, -0.083817825, 0.0957775, 0.13626063) * input_2(-1.0, -1.0);
|
||
|
result += mat4(0.08362428, -0.017944053, -0.012213268, -0.07190882, -0.22855976, 0.036642805, 0.028963853, 0.20587751, 0.20032825, 0.012401725, -0.002628476, -0.11774069, 0.13290869, 0.1760192, -0.067341134, -0.05693584) * input_2(-1.0, 0.0);
|
||
|
result += mat4(0.07812585, 0.111100376, -0.0081081055, -0.023001833, -0.047958735, 0.06707684, 0.21812817, -0.06066941, 0.14149858, 0.0002842644, 0.009748469, 0.058159713, -0.052220527, 0.0051686717, 0.020569365, 0.037408933) * input_2(-1.0, 1.0);
|
||
|
result += mat4(0.22330855, 0.056118224, 0.037725, -0.010659906, -0.15518703, -0.048119847, 0.026690556, 0.04792172, -0.6428813, -0.23507941, -0.27001688, 0.036668345, 0.21455136, 0.17293552, 0.049976766, -0.1329376) * input_2(0.0, -1.0);
|
||
|
result += mat4(-0.15915275, 0.04641938, -0.118075706, 0.3037003, -0.3551547, 0.20595412, 0.13396406, -0.013213423, -0.2915794, 0.29002488, -0.112053424, -0.14190868, -0.19691089, -0.08181972, -0.57165426, 0.21673493) * input_2(0.0, 0.0);
|
||
|
result += mat4(-0.1578097, 0.065828785, 0.07167397, -0.00059739564, -0.20415144, 0.11065973, 0.20061344, -0.050190084, 0.2139065, -0.04968372, -0.19523457, 0.12356152, -0.11396468, 0.29205763, -0.0809064, 0.004876132) * input_2(0.0, 1.0);
|
||
|
result += mat4(-0.1212619, -0.109753795, 0.059783444, -0.16629863, -0.07178537, 0.028716804, 0.09824844, -0.16009493, -0.19819757, 0.032385383, -0.36553526, -0.027081028, -0.24935731, 0.02594158, -0.010527322, -0.111616634) * input_2(1.0, -1.0);
|
||
|
result += mat4(-0.07426275, 0.02278162, -0.21938802, -0.2642625, 0.032943033, 0.20028387, -0.09130676, -0.1637574, 0.06961886, 0.13329782, 0.11478851, 0.036917806, -0.0802517, -0.19539803, -0.3822371, 0.08046229) * input_2(1.0, 0.0);
|
||
|
result += mat4(-0.092838, 0.117163844, 0.09485102, -0.06780099, -0.11281563, 0.11850478, -0.05550858, -0.027953297, -0.007133141, -0.014187283, -0.059598908, 0.012341767, 0.0061861775, 0.15141954, -0.14354445, -0.122839615) * input_2(1.0, 1.0);
|
||
|
result += mat4(0.017640347, -0.60886985, 0.28483826, -0.13498601, -0.6344804, -2.0020604, 0.9888003, -0.9928021, 0.13787933, 0.15995555, 0.0044200043, -0.054206688, -0.076262236, -0.26163995, -0.04738554, 0.05014971) * input_3(-1.0, -1.0);
|
||
|
result += mat4(-0.71580493, -0.31830522, 0.19025376, -0.2948351, 0.07361348, 0.0938386, -0.056012325, -0.07084915, 0.044257227, -0.05632749, -0.08677931, 0.105809525, 0.24651411, -0.058334462, 0.082753815, -0.19398265) * input_3(-1.0, 0.0);
|
||
|
result += mat4(-0.028512344, -0.57375467, -1.0795906, 0.4254704, -0.05730311, -0.04821735, 0.115387015, -0.032571744, -0.023543056, 0.04612607, 0.040400274, -0.022598516, 0.2257721, -0.033995304, 0.042029686, 0.023071816) * input_3(-1.0, 1.0);
|
||
|
result += mat4(0.07029798, -0.101656675, -0.01784277, 0.028430276, 0.769139, -1.170258, -0.6988849, 1.0531164, -0.013906791, 0.22907783, 0.14572631, -0.12152369, -0.124370486, -0.46209994, 0.0635222, 0.2025421) * input_3(0.0, -1.0);
|
||
|
result += mat4(-0.05509011, 0.031102538, 0.032166403, 0.3718931, 0.015956195, -0.07257227, 0.23262715, 0.2349654, 0.013082262, -0.20620903, -0.31386694, 0.19253469, -0.3864279, -0.015946489, 0.008420695, 0.1667353) * input_3(0.0, 0.0);
|
||
|
result += mat4(-0.024990464, 0.028989721, -0.005168212, 0.16289686, 0.10033066, -0.030419962, -0.0037721335, 0.09974207, -0.033236753, -0.10838469, -0.072520345, -0.060499493, 0.0638907, -0.033855442, 0.06866675, 0.062107224) * input_3(0.0, 1.0);
|
||
|
result += mat4(0.019155059, -0.07881231, -0.02239322, 0.13464253, 1.0068911, -1.3198824, -0.1824749, 1.4071697, 0.073066205, 0.027794253, 0.015558158, -0.19268398, 0.16127212, -0.24087273, -0.070166774, 0.032574996) * input_3(1.0, -1.0);
|
||
|
result += mat4(-0.020532832, 0.0061756033, -0.03743925, -0.17655736, 0.0020162484, 0.10977565, 0.13450435, -0.15096179, -0.024525343, -0.040415004, -0.03920403, -0.27981153, 0.37269744, -0.08280698, 0.23378566, 0.1856975) * input_3(1.0, 0.0);
|
||
|
result += mat4(0.013647463, 0.03855421, 0.027500056, 0.101926185, 0.10176718, -0.012497632, 0.007443969, -0.014130813, -0.05286115, -0.067571156, -0.057392232, 0.010845191, -0.051060095, -0.011471131, -0.18194978, -0.06419599) * input_3(1.0, 1.0);
|
||
|
result += vec4(0.058198024, -0.026643438, -0.05179569, 0.0047381753);
|
||
|
return max(result, vec4(0.0));
|
||
|
}
|
||
|
|
||
|
//!DESC ArtCNN C4F16 (Conv-3-ReLU)
|
||
|
//!HOOK LUMA
|
||
|
//!BIND conv2d_2_tf
|
||
|
//!BIND conv2d_2_tf1
|
||
|
//!BIND conv2d_2_tf2
|
||
|
//!BIND conv2d_2_tf3
|
||
|
//!SAVE conv2d_3_tf1
|
||
|
//!WIDTH LUMA.w
|
||
|
//!HEIGHT LUMA.h
|
||
|
//!COMPONENTS 4
|
||
|
//!WHEN OUTPUT.w LUMA.w / 1.3 > OUTPUT.h LUMA.h / 1.3 > *
|
||
|
#define input_0(x_off, y_off) (conv2d_2_tf_texOff(vec2(x_off, y_off)))
|
||
|
#define input_1(x_off, y_off) (conv2d_2_tf1_texOff(vec2(x_off, y_off)))
|
||
|
#define input_2(x_off, y_off) (conv2d_2_tf2_texOff(vec2(x_off, y_off)))
|
||
|
#define input_3(x_off, y_off) (conv2d_2_tf3_texOff(vec2(x_off, y_off)))
|
||
|
vec4 hook() {
|
||
|
vec4 result = mat4(0.37668392, 0.022321412, -0.09848869, -0.08947069, -0.06567241, 0.0022680988, -0.0021810543, -0.046097793, 0.06441663, 0.016507054, -0.008815802, -0.14205335, -0.031115392, 0.01466934, -0.013261971, 0.14472753) * input_0(-1.0, -1.0);
|
||
|
result += mat4(-0.2892351, 0.03228204, -0.09662611, -0.2563226, -0.046512697, 0.001103855, 0.078831695, 0.20965587, -0.012501807, -0.006801838, 0.0173508, -0.16964102, -0.033557825, -0.047499526, 0.022332191, -0.11694654) * input_0(-1.0, 0.0);
|
||
|
result += mat4(0.03324565, -0.0559204, -0.06731322, 0.23619106, -0.101124, 0.008684916, 0.20376922, -0.12318206, -0.15801272, 0.0062436764, -0.03159525, -0.08360004, 0.12084195, -0.101080455, -0.09028766, -0.12052327) * input_0(-1.0, 1.0);
|
||
|
result += mat4(0.11838765, 0.08013308, -0.025026968, 0.008264717, 0.2288913, -0.032842018, 0.019025382, 0.24563287, -0.12126269, -0.0017205417, 0.02032465, -0.31132016, -0.26051322, 0.017275983, 0.050902933, 0.1364609) * input_0(0.0, -1.0);
|
||
|
result += mat4(-0.1871364, 0.06164209, -0.04991303, -0.3095276, -0.27822492, 0.16756928, -0.030826954, 0.15290676, 0.17141531, 0.24470727, 0.121652775, -0.33600742, -0.12889968, 0.48920652, -0.22356187, -0.6171459) * input_0(0.0, 0.0);
|
||
|
result += mat4(-0.010851267, -0.02995136, -0.032357357, 0.10352239, 0.07746797, 0.04302292, 0.071075104, 0.14673899, -0.09593977, 0.0152815515, 0.10964179, -0.09829137, 0.044272162, -0.060014956, -0.21177526, 0.25907594) * input_0(0.0, 1.0);
|
||
|
result += mat4(0.0446986, -0.031578265, 0.00030930678, -0.048003092, 0.069498114, -0.011654327, 0.0011326907, -0.09598703, 0.029160121, 0.024676234, -0.0011040309, -0.30916393, 0.028429719, -0.013122469, -0.01813476, -0.11629931) * input_0(1.0, -1.0);
|
||
|
result += mat4(-0.03001464, 0.01424991, 0.0935112, -0.05079594, -0.041625984, 0.012075557, -0.04128638, 0.27787012, -0.106993034, 0.050537553, -0.045709208, 0.14167362, 0.35559136, 0.048168737, 0.01773504, -0.1142645) * input_0(1.0, 0.0);
|
||
|
result += mat4(-0.13906445, -0.0012733854, -0.00026927577, 0.035179354, 0.08834059, -0.00065255736, -0.022819351, 0.24454969, 0.028469399, -0.048569355, -0.076566234, 0.14350879, -0.031073555, 0.021901483, 0.07299356, 0.029186727) * input_0(1.0, 1.0);
|
||
|
result += mat4(-0.0026700196, -0.02589267, 0.012657312, 0.27543488, 0.106566526, -0.004571913, -0.033133306, -0.16504768, 0.05150565, 0.012806811, -0.0055326554, 0.056967676, 0.03334752, -0.02800985, -0.00687094, -0.36904332) * input_1(-1.0, -1.0);
|
||
|
result += mat4(0.124169625, 0.0056787934, -0.0166298, 0.18294874, 0.09535123, 0.034738515, -0.0779984, -0.2862684, 0.00050888385, 0.08551227, 0.059644714, -0.033611614, 0.12038382, 0.041185223, -0.12733853, -0.011501873) * input_1(-1.0, 0.0);
|
||
|
result += mat4(-0.042310055, 0.005227756, -0.052472282, 0.13134588, -0.10062746, 0.020597894, -0.06554214, -0.2215338, 0.06846292, 0.021005303, 0.05959255, 0.18454699, -0.0075374134, 0.06550453, 0.06789537, -1.0920124) * input_1(-1.0, 1.0);
|
||
|
result += mat4(-0.096501164, 0.050203405, -0.016485732, -0.23813789, 0.12098535, 0.052764736, 0.012526466, 0.037836183, -0.11890516, 0.01202473, 0.024711123, 0.004886983, -0.096291125, 0.15049341, -0.037407022, -0.4705901) * input_1(0.0, -1.0);
|
||
|
result += mat4(0.03341312, -0.03197617, -0.0024468228, -0.29992864, -0.05679482, 0.11576017, 0.014511306, -0.44156653, -0.2057172, -0.17833398, 0.046896674, 0.21065585, 0.11070263, -0.028876957, 0.046785876, 0.09641972) * input_1(0.0, 0.0);
|
||
|
result += mat4(0.1859803, 0.03572016, -0.05312729, -0.24680057, -0.4272664, 0.07023312, 0.023849158, -0.24301331, 0.33832338, -2.482644e-05, 0.00035688072, 0.28033927, 0.11664848, -0.13189593, -0.07596483, -0.45544305) * input_1(0.0, 1.0);
|
||
|
result += mat4(-0.014462073, -0.0033287758, -0.0011519892, -0.15707609, 0.03702284, -0.017344762, 0.028977703, -0.00550519, -0.0110714035, -0.005343838, 0.006504726, 0.131824, -0.22821668, -0.033011608, 0.02004, -0.96458095) * input_1(1.0, -1.0);
|
||
|
result += mat4(0.14644374, -0.056065675, 0.0140952775, 0.14410296, 0.066962, 0.01631343, -0.023321275, 0.16613398, -0.01283334, 0.03238329, -0.049536727, 0.09256074, 0.08769496, -0.002084639, 0.005797079, -1.1539059) * input_1(1.0, 0.0);
|
||
|
result += mat4(0.0535358, -0.0011869785, 0.096427225, 0.1274363, -0.09410223, 0.018549556, -0.010977678, 0.20947511, 0.04043433, -0.017313614, -0.0039035233, 0.1987063, -0.0046602436, 0.04213765, 0.06400748, -0.49287447) * input_1(1.0, 1.0);
|
||
|
result += mat4(-0.057950232, 0.0063293297, -0.007961186, -0.6915434, 0.10332361, 0.0069584474, 0.026681086, -0.0075141476, 0.02664526, 0.01131315, -0.1421232, -0.9853375, -0.008949865, -0.02205405, 0.02657445, -0.021613227) * input_2(-1.0, -1.0);
|
||
|
result += mat4(-0.010228267, 0.056348268, -0.021145785, -0.2859028, -0.06655447, 0.0024421164, 0.010246898, -0.12572053, -0.22953571, 0.06983189, -0.271593, 0.15182112, -0.1475874, 0.015849823, 0.0007118563, -0.44023573) * input_2(-1.0, 0.0);
|
||
|
result += mat4(0.006562555, 0.008208803, -0.056345962, -0.18872233, 0.099513926, 0.07984358, -0.03750972, -0.3013234, 0.022918804, -0.029899426, 0.013335157, -0.019499404, -0.02821646, 0.030530272, -0.053906426, 0.06609668) * input_2(-1.0, 1.0);
|
||
|
result += mat4(0.06691585, -0.057262976, -0.07651187, -0.56193024, 0.16672401, 0.019542977, 0.0010600733, -0.19398035, 0.1970889, -0.026869718, 0.052188057, -0.59901065, -0.30369818, 0.101028346, -0.010621867, -0.47748268) * input_2(0.0, -1.0);
|
||
|
result += mat4(0.08777078, -0.0640755, -0.04070912, -0.8986175, -0.07951637, 0.032472458, -0.11085687, 0.059978556, -0.45734105, 0.16323492, 0.08510581, -1.005425, -0.38693303, 0.0505913, -0.09311633, 0.2661588) * input_2(0.0, 0.0);
|
||
|
result += mat4(-0.12635571, -0.026806675, -0.09724995, -0.6828237, 6.0629798e-05, 0.059017513, -0.12942384, -0.38635212, 0.1707898, -0.1328056, -0.07350654, 0.19818507, -0.07414469, 0.041172102, 0.033679847, 0.059021734) * input_2(0.0, 1.0);
|
||
|
result += mat4(0.08357788, 0.004237311, 0.01695902, -0.45021528, -0.12621467, 0.039213903, -0.032199677, 0.16693637, 0.06049106, 0.07583155, -0.010712469, 0.1779932, -0.0726308, -0.0014115572, -0.05070207, 0.72110367) * input_2(1.0, -1.0);
|
||
|
result += mat4(-0.23705657, -0.013741559, 0.011612522, -0.69820666, 0.12378926, 0.03926458, 0.025239201, -0.68813556, 0.0024813414, 0.009510928, -0.056151997, 0.35601595, -0.023537721, -0.0006480709, -0.013843968, -0.17708388) * input_2(1.0, 0.0);
|
||
|
result += mat4(0.09397085, 0.015237843, 0.025779633, -0.16284019, 0.14470172, -0.09588817, 0.007718594, -0.12612487, -0.0141429715, -0.07838875, 0.008980705, 0.1716783, 0.06383537, 0.048263643, 0.024558485, -0.19508013) * input_2(1.0, 1.0);
|
||
|
result += mat4(0.16637582, 0.0016103556, -0.019764325, -0.12042696, 0.9254981, -0.05428488, -0.043294176, -4.205726, -0.05688948, -0.009479981, 0.017279383, -0.05881945, 0.012234901, -0.04198862, 0.014858962, 0.18176651) * input_3(-1.0, -1.0);
|
||
|
result += mat4(0.06887244, 0.23797935, -0.22945404, -0.1810379, 0.021400025, 0.01826289, 0.2984331, 0.05937557, 0.13732278, -0.13054597, -0.040299047, 0.21421127, -0.18003388, 0.0999994, 0.06832755, 0.08857182) * input_3(-1.0, 0.0);
|
||
|
result += mat4(-1.1754344, -0.16140878, -0.45517376, 0.23014966, 0.061885163, 0.06735753, 0.13062997, 0.20866688, -0.005762392, 0.0012664573, 0.0027807825, -0.050230186, -0.13788533, 0.073690385, 0.07161442, 0.22520821) * input_3(-1.0, 1.0);
|
||
|
result += mat4(0.04252152, -0.017485619, -0.0075445506, -0.041259985, 0.84735334, -0.34318456, 0.08495482, -2.1590538, -0.2366228, 0.0758547, 0.021443916, 0.2092815, 0.2763309, -0.07878341, -0.003109355, 0.020185303) * input_3(0.0, -1.0);
|
||
|
result += mat4(-9.5145835e-05, 0.14780135, -0.04641317, -0.19726767, -0.053147316, 0.07583808, 0.55548847, 0.41262376, 0.52644044, -0.20602034, 0.2547251, 0.050571278, -0.08876007, 0.16408253, -0.0040867375, -0.09144218) * input_3(0.0, 0.0);
|
||
|
result += mat4(-0.03760117, -0.10404033, 0.006471736, 0.23786806, 0.014747977, -0.046932414, -0.08906326, 0.30984896, -0.098747104, 0.07151571, 0.048737753, -0.17197418, -0.1667674, 0.003510609, -0.05424778, -0.03840981) * input_3(0.0, 1.0);
|
||
|
result += mat4(0.020172143, -0.0050099296, 0.01311187, 0.044156156, 1.2445976, -0.057315044, 0.042840775, -1.997903, -0.1186306, -0.010108962, 0.008939665, 0.09625573, 0.07173171, -0.08127443, 0.013823347, 0.11945817) * input_3(1.0, -1.0);
|
||
|
result += mat4(0.07504713, 0.021615071, -0.022716599, -0.18373887, 0.13035065, -0.048260864, 0.1765001, 0.40636706, -0.24498743, -0.007386689, -0.07406815, -0.13969873, 0.097093605, -0.008936156, 0.055414733, 0.13328667) * input_3(1.0, 0.0);
|
||
|
result += mat4(-0.053563915, -0.025855348, 0.026169157, 0.11884697, 0.014686142, -0.010271804, 0.016056418, 0.009910565, 0.028038658, 0.038842708, -0.017092029, 0.058029845, -0.1079238, 0.03546202, 0.09244762, -0.5192417) * input_3(1.0, 1.0);
|
||
|
result += vec4(-0.045508493, -0.023102637, 0.0044111013, 0.1683499);
|
||
|
return max(result, vec4(0.0));
|
||
|
}
|
||
|
|
||
|
//!DESC ArtCNN C4F16 (Conv-3-ReLU)
|
||
|
//!HOOK LUMA
|
||
|
//!BIND conv2d_2_tf
|
||
|
//!BIND conv2d_2_tf1
|
||
|
//!BIND conv2d_2_tf2
|
||
|
//!BIND conv2d_2_tf3
|
||
|
//!SAVE conv2d_3_tf2
|
||
|
//!WIDTH LUMA.w
|
||
|
//!HEIGHT LUMA.h
|
||
|
//!COMPONENTS 4
|
||
|
//!WHEN OUTPUT.w LUMA.w / 1.3 > OUTPUT.h LUMA.h / 1.3 > *
|
||
|
#define input_0(x_off, y_off) (conv2d_2_tf_texOff(vec2(x_off, y_off)))
|
||
|
#define input_1(x_off, y_off) (conv2d_2_tf1_texOff(vec2(x_off, y_off)))
|
||
|
#define input_2(x_off, y_off) (conv2d_2_tf2_texOff(vec2(x_off, y_off)))
|
||
|
#define input_3(x_off, y_off) (conv2d_2_tf3_texOff(vec2(x_off, y_off)))
|
||
|
vec4 hook() {
|
||
|
vec4 result = mat4(0.010255998, 0.02816198, -0.027732015, 0.11094507, 0.016842764, 0.06238472, -0.06895271, -0.039490536, 0.10262636, 0.08639603, 0.08501376, -0.0010781982, -0.05452476, -0.019154051, 0.028562121, -0.04173555) * input_0(-1.0, -1.0);
|
||
|
result += mat4(-0.13828091, 0.41884622, -0.20071627, 0.083937354, 0.101994276, -0.06232588, 0.05269355, -0.1587797, 0.020359002, -0.084354185, 0.050083715, -0.053339347, 0.044181373, -0.15076366, 0.12883565, -0.13614771) * input_0(-1.0, 0.0);
|
||
|
result += mat4(-0.10888228, -0.07970392, -0.03436362, -0.0001593025, 0.10607525, -0.14480537, 0.085707985, -0.055879362, 0.015514337, 0.07628468, -0.046886608, 0.053596757, -0.13140112, 0.042260587, -0.0860283, -0.020295454) * input_0(-1.0, 1.0);
|
||
|
result += mat4(-0.15255119, -0.07963769, 0.150279, 0.10502633, 0.039847806, 0.010362496, -0.0248228, 0.036384434, -0.0089292815, 0.20148604, -0.090423524, -0.035405204, 0.06406645, 0.069668695, -0.015285586, 0.017153902) * input_0(0.0, -1.0);
|
||
|
result += mat4(-0.2807233, -0.028242318, 0.28215763, 0.26934028, -0.24803522, 0.19170626, 0.07272608, 0.0025698117, 0.54977083, -0.17806913, 0.20048463, -0.085237645, -0.019417476, -0.29299235, 0.5195838, 0.33004773) * input_0(0.0, 0.0);
|
||
|
result += mat4(-0.02614591, 0.027689595, -0.050329316, 0.042926878, 0.08083802, 0.13452081, 0.034492128, -0.016419446, -0.06213591, 0.10760184, -0.05717838, 0.021907484, -0.15580557, 0.04917515, -0.008259191, -0.19094224) * input_0(0.0, 1.0);
|
||
|
result += mat4(0.010571644, 0.054230034, -0.087241046, 0.05437055, -0.0022276533, 0.0014729048, -0.0319649, 0.058687128, -0.014890437, 0.006737956, 0.11934218, 0.032807708, 0.08868505, -0.0629473, -0.0071271285, -0.08563011) * input_0(1.0, -1.0);
|
||
|
result += mat4(-0.020525333, 0.057670865, -0.06447336, 0.07197988, 0.008180375, -0.044733312, 0.016035616, -0.094283685, 0.20487425, -0.12871064, 0.119087726, 0.03645367, -0.15913333, 0.28344083, -0.21946979, 0.1654112) * input_0(1.0, 0.0);
|
||
|
result += mat4(0.06931768, 0.004199089, 0.06377743, 0.035399854, 0.010061305, -0.008515705, 0.00037537434, -0.057931982, -0.053425603, -0.08313924, -0.0031267144, -0.02096904, 0.15326677, 0.08344642, 0.08055671, 0.012978262) * input_0(1.0, 1.0);
|
||
|
result += mat4(0.048400123, -0.041552503, -0.0030486968, -0.027702015, 0.009881245, -0.08470396, 0.014616492, -0.07931646, -0.023984408, 0.099828444, -0.030376371, -0.02127794, 0.072288305, -0.0529536, 0.010418907, -0.21185443) * input_1(-1.0, -1.0);
|
||
|
result += mat4(-0.08808205, 0.10662759, -0.08255224, 0.036152992, -0.26981097, 0.20253508, 0.07003805, -0.016221683, -0.10263815, -0.05750683, 0.06313498, 0.11028175, -0.104349405, 0.3318661, -0.054977417, -0.29084006) * input_1(-1.0, 0.0);
|
||
|
result += mat4(-0.07824076, -0.0012759565, -0.030299155, -0.11318926, -0.1794184, 0.18938397, -0.031020276, -0.0043792827, 0.013379458, -0.108512685, 0.091100045, -0.09848509, 0.09235204, -0.046681225, 0.094614506, -0.31111142) * input_1(-1.0, 1.0);
|
||
|
result += mat4(-0.045972016, -0.099601954, 0.013618683, -0.07564813, -0.023767851, -0.07562388, 0.0909893, 0.0018455929, 0.0104489885, 0.03493836, -0.057833053, 0.124758944, -0.00086766714, 0.14961636, -0.07728459, -0.24932048) * input_1(0.0, -1.0);
|
||
|
result += mat4(0.07486705, 0.18875621, -0.066986345, 0.029724801, -0.24597782, 0.10848305, 0.111842, 0.09580127, 0.55531853, 0.016446322, -0.27129796, 0.1856341, 0.26667666, 0.07557978, 0.044925548, -0.48340553) * input_1(0.0, 0.0);
|
||
|
result += mat4(0.17394248, -0.18910448, 0.09923975, 0.1406327, -0.09007701, 0.21009481, 0.029593803, -0.014897732, 0.21675734, -0.13003586, 0.060987487, 0.08942692, -0.124727055, -0.13467133, 0.12260782, -0.51579803) * input_1(0.0, 1.0);
|
||
|
result += mat4(-0.026768602, -0.03571163, -0.048979174, -0.056418225, -0.009850455, -0.022448502, -0.02498713, 0.100013636, 0.029303046, 0.027393004, -0.03398614, 0.061036255, 0.025752014, 0.017622024, -0.028495075, -0.3887683) * input_1(1.0, -1.0);
|
||
|
result += mat4(-0.03901346, -0.015083768, -0.050575882, 0.0031454805, -0.008564892, -0.056598853, 0.018301452, -0.020735059, 0.018189615, 0.008673767, -0.057003103, -0.11551751, -0.069022544, 0.16067557, -0.038614836, -0.38112324) * input_1(1.0, 0.0);
|
||
|
result += mat4(-0.058685996, -0.0022801142, -0.020684317, 0.06646591, -0.022275187, -0.0463002, -0.012172267, 0.0021366095, -0.0067103747, 0.029292842, -0.022380218, 0.07641391, 0.10549523, 0.10041148, -0.008173288, -0.37561938) * input_1(1.0, 1.0);
|
||
|
result += mat4(0.021520605, 0.008614789, 0.042702347, 0.04971154, 0.08249884, 0.017259937, 0.005614173, 0.057688873, -0.106478386, 0.13639839, -0.20130557, 0.10124063, 0.039950754, -0.051512957, 0.05023361, 0.015953176) * input_2(-1.0, -1.0);
|
||
|
result += mat4(-0.012794819, 0.09089686, -0.0058186506, 0.036016118, 0.12937137, 0.17346919, 0.09100354, 0.09745136, 0.08834551, 0.11451057, -0.12423188, -0.15311538, 0.048703115, -0.009625463, 0.03853866, 0.13196802) * input_2(-1.0, 0.0);
|
||
|
result += mat4(0.0045883227, 0.095999956, 0.0053579584, 0.023549795, 0.15041387, -0.043851234, 0.030790599, 0.15208188, -0.0885718, -0.046314966, -0.028567849, 0.07047035, -0.006072791, 0.016913095, -0.01528243, 0.03999292) * input_2(-1.0, 1.0);
|
||
|
result += mat4(0.0858687, -0.0993303, -0.041483916, -0.1327788, -0.055414382, -0.07054595, -0.035018504, 0.17214076, -0.5023966, 0.46210507, 0.19233225, -0.13556622, -0.088889785, 0.06164251, 0.0038730686, -0.19182178) * input_2(0.0, -1.0);
|
||
|
result += mat4(-0.15046345, 0.26557237, -0.07302705, -0.045477938, -0.1803418, -0.08351798, -0.025372786, -0.10969833, 0.030997591, 0.27188665, -0.13473092, 0.23434262, -0.049291782, 0.10292888, 0.025606098, -0.1504946) * input_2(0.0, 0.0);
|
||
|
result += mat4(-0.013594529, -0.00610912, -0.083162144, 0.008487589, 0.04914383, -0.10725169, 0.057632547, 0.09309691, -0.12131767, -0.029940424, 0.0297261, 0.023260051, 0.13295825, -0.0063142497, 0.021757111, 0.072904274) * input_2(0.0, 1.0);
|
||
|
result += mat4(0.022015585, 0.029905202, 0.05403727, -0.025620926, -0.015828537, -0.059929855, 0.0579463, -0.094403595, 0.11042805, -0.070250995, 0.039273005, -0.12827796, 0.0059068524, -0.1321407, 0.12386363, -0.22648448) * input_2(1.0, -1.0);
|
||
|
result += mat4(-0.056241237, -0.1688679, 0.022508455, -0.27928132, 0.043845855, -0.138671, 0.15287298, 0.03215443, 0.037464093, 0.06792044, -0.0498703, 0.18619019, -0.16065063, -0.15899849, 0.012049319, -0.07233884) * input_2(1.0, 0.0);
|
||
|
result += mat4(0.0290861, -0.06729954, 0.035498753, 0.041419495, -0.059487768, -0.03500446, 0.016189115, 0.03202348, -0.02960298, 0.044191003, -0.015834915, -0.038832422, 0.0373304, 0.038551286, -0.025545703, -0.014230044) * input_2(1.0, 1.0);
|
||
|
result += mat4(-0.026436063, -0.1832116, 0.10776336, -0.33608267, -0.2910222, 1.9402469, 0.4017314, -0.14466885, -0.06004394, -0.092247926, -0.05335684, 0.019606836, 0.008336915, 0.008609674, -0.060665015, 0.04265805) * input_3(-1.0, -1.0);
|
||
|
result += mat4(-0.5136257, 0.19984955, 0.3622203, -0.47248283, -0.022896018, -0.0079473825, -0.033104017, -0.06441616, -0.029348588, -0.025618443, -0.00034966014, -0.021921597, 0.12763259, -0.041871697, 0.026177682, 0.09224714) * input_3(-1.0, 0.0);
|
||
|
result += mat4(-0.64969933, 0.25156447, -0.1352972, -0.19746536, 0.09411762, -0.022514358, 0.040381648, 0.033956088, -0.03439181, -0.015175602, -0.011930311, 0.029269004, 0.0132328225, 0.011696345, -0.009640124, 0.05699516) * input_3(-1.0, 1.0);
|
||
|
result += mat4(0.078076825, -0.05592837, -0.03405463, -0.16847, 1.3118366, -0.095606014, 0.62583226, 0.9774838, -0.14447585, -0.1265794, 0.22042447, -0.1954333, 0.10385586, -0.024445854, -0.009878668, 0.027767908) * input_3(0.0, -1.0);
|
||
|
result += mat4(-0.1507465, 0.016008696, 0.037921194, 0.14262725, 0.32978523, -0.06950355, -0.0907766, 0.06674224, -0.1605434, -0.052403893, 0.28685486, 0.027469445, -0.04235299, 0.012306237, 0.10313388, -0.22571322) * input_3(0.0, 0.0);
|
||
|
result += mat4(0.060209, 0.06318882, -0.03967922, -0.006365271, -0.08889718, -0.044064038, -0.028391555, -0.014705443, 0.004610343, 0.049666774, 0.00033310597, 0.009213075, -0.19809735, -0.0515623, -0.011426426, 0.03546714) * input_3(0.0, 1.0);
|
||
|
result += mat4(0.027951889, -0.0010988233, 0.00018168589, 0.06709773, 1.3855343, 0.92896384, -0.68236774, 1.5160458, 0.02729306, 0.05080422, 0.042775944, 0.12813792, 0.04438929, -0.016836382, -0.09160699, -0.12388618) * input_3(1.0, -1.0);
|
||
|
result += mat4(-0.05399, 0.029240835, 0.01940087, -0.03854827, -0.05112493, 0.009825914, 0.095437, 0.10559205, -0.037513416, -0.026100727, -0.07669604, -0.069536224, -0.1530975, 0.18182097, -0.108538836, 0.30240613) * input_3(1.0, 0.0);
|
||
|
result += mat4(0.015976965, -0.026869036, -0.030393267, -0.025896732, 0.019008096, 0.0131175425, 0.014322955, -0.0071712565, 0.057697035, 0.0044559925, 0.02085714, -0.0068467003, 0.048926223, 0.13978532, -0.051659867, 0.0799417) * input_3(1.0, 1.0);
|
||
|
result += vec4(-0.017321989, 0.0027757548, -0.056361977, -0.010138195);
|
||
|
return max(result, vec4(0.0));
|
||
|
}
|
||
|
|
||
|
//!DESC ArtCNN C4F16 (Conv-3-ReLU)
|
||
|
//!HOOK LUMA
|
||
|
//!BIND conv2d_2_tf
|
||
|
//!BIND conv2d_2_tf1
|
||
|
//!BIND conv2d_2_tf2
|
||
|
//!BIND conv2d_2_tf3
|
||
|
//!SAVE conv2d_3_tf3
|
||
|
//!WIDTH LUMA.w
|
||
|
//!HEIGHT LUMA.h
|
||
|
//!COMPONENTS 4
|
||
|
//!WHEN OUTPUT.w LUMA.w / 1.3 > OUTPUT.h LUMA.h / 1.3 > *
|
||
|
#define input_0(x_off, y_off) (conv2d_2_tf_texOff(vec2(x_off, y_off)))
|
||
|
#define input_1(x_off, y_off) (conv2d_2_tf1_texOff(vec2(x_off, y_off)))
|
||
|
#define input_2(x_off, y_off) (conv2d_2_tf2_texOff(vec2(x_off, y_off)))
|
||
|
#define input_3(x_off, y_off) (conv2d_2_tf3_texOff(vec2(x_off, y_off)))
|
||
|
vec4 hook() {
|
||
|
vec4 result = mat4(-0.10233778, -0.11240712, 0.037221197, -0.0051450497, 0.013606116, 0.010786609, -0.015182915, -0.051037893, 0.013323041, 0.017717091, 0.008195795, 0.0050407015, 0.031121327, -0.013163088, 0.017007248, 0.023569321) * input_0(-1.0, -1.0);
|
||
|
result += mat4(-0.035086688, -0.045617726, 0.046010215, -0.119158454, 0.05207806, 0.080111295, 0.06571999, -0.08696845, 0.009006738, -0.20981497, 0.05211879, 0.033323094, 0.060678527, 0.33963665, 0.040684655, -0.009929246) * input_0(-1.0, 0.0);
|
||
|
result += mat4(0.01794256, 0.12774153, 0.053153254, -0.07493665, 0.014967753, 0.20011827, 0.16945922, -0.0034451834, -0.009140645, -0.078310624, 0.07932347, 0.0011765405, -0.008809653, 0.066629365, -0.005147902, -0.024438266) * input_0(-1.0, 1.0);
|
||
|
result += mat4(0.15529233, 0.082362436, -0.002444483, 0.022095492, 0.0057017943, 0.09980708, 0.016574068, -0.07244132, 0.078539856, -0.13633984, 0.05812139, 0.06300431, 0.042226527, -0.024035389, -0.05450597, 0.090184346) * input_0(0.0, -1.0);
|
||
|
result += mat4(0.051689554, -0.04602342, 0.11021963, 0.019541686, 0.07990181, 0.41895485, 0.016839856, 0.023425052, 0.02032359, -0.12236494, -0.014059605, -0.026587639, 0.014032254, -0.057541654, -0.17928334, 0.10672056) * input_0(0.0, 0.0);
|
||
|
result += mat4(0.016113037, -0.05917135, -0.008193331, -0.025634518, 0.048720792, 0.10643327, 0.009402721, -0.015634075, -0.095071845, 0.04607565, 0.07244342, 0.033326622, 0.06529045, -0.12607315, -0.28967068, 0.018128864) * input_0(0.0, 1.0);
|
||
|
result += mat4(0.0444729, -0.024217686, -0.011318969, 0.12529974, 0.04039481, -0.010452544, -0.034746848, -0.18840212, -0.0091444785, 0.083494484, 0.08534193, -0.85590905, -0.058883224, -0.012793263, 0.0060316985, -0.53758526) * input_0(1.0, -1.0);
|
||
|
result += mat4(0.060698967, -0.022397725, 0.010848118, -0.08862042, -0.08637972, 0.071326755, -0.027778931, -0.0232415, -0.013428834, -0.21555196, 0.055546734, 0.039665792, 0.1457249, 0.04482063, -0.05085235, 0.0023848754) * input_0(1.0, 0.0);
|
||
|
result += mat4(-0.014489855, -0.08239458, -0.034326807, -0.15082966, -0.053857606, 0.066164576, -0.022747023, -0.039397065, 0.0066448054, 0.03671231, -0.068141945, 0.07582018, 0.00508972, -0.1558751, 0.1136882, -0.10605734) * input_0(1.0, 1.0);
|
||
|
result += mat4(-0.016402101, 0.05250836, 0.02842811, 0.024260161, 0.0042379014, 0.05705704, -0.018089944, 0.057403114, -0.0019986986, -0.102267735, -0.0118233785, 0.075390846, -0.028194148, 0.23971558, 0.02417566, -0.027078312) * input_1(-1.0, -1.0);
|
||
|
result += mat4(-0.030424219, -0.15567105, -0.011804827, 0.009473775, -0.00977144, 0.21336143, 0.021164682, 0.008412245, -0.020776201, -0.039235115, 0.06373511, 0.031823393, -0.008041525, -0.14365199, -0.077703215, 0.06654063) * input_1(-1.0, 0.0);
|
||
|
result += mat4(0.0016994709, 0.061329514, 0.020392356, -0.046453126, 0.010263585, 0.29692677, 0.0686127, -0.0941368, 0.006329316, 0.09081488, -0.053574145, 0.06528645, 0.039751276, 0.18082291, 0.11917186, 0.0055659516) * input_1(-1.0, 1.0);
|
||
|
result += mat4(0.030544683, 0.008730067, -0.011127803, 0.041712895, 0.03291294, 0.07699873, -0.014745298, 0.15951417, 0.017337427, -0.07780548, 0.022435792, -0.061370667, 0.095622554, 0.28901643, 0.022090936, -0.048295822) * input_1(0.0, -1.0);
|
||
|
result += mat4(0.01673187, 0.26027796, 0.042566508, 0.032990683, -0.0043854318, 0.18662125, 0.10058774, -0.053404603, -0.11220168, -0.43562064, -0.08929719, -0.0040659048, 0.03975808, -0.054912195, 0.09485116, 0.06975763) * input_1(0.0, 0.0);
|
||
|
result += mat4(-0.032677323, 0.11278608, -0.07632458, 0.047436647, 0.052451137, 0.17769028, 0.115277946, 0.023699507, 0.05491271, -0.15965937, -0.058954068, 0.06462157, 0.034115974, 0.3158149, -0.062103845, -0.018792348) * input_1(0.0, 1.0);
|
||
|
result += mat4(-0.034179293, 0.08109359, 0.00043345374, 0.0035499015, 0.06326482, -0.06612813, -0.028891625, 0.24580917, -0.08462833, -0.026568072, -0.0021157255, -0.39448574, -0.085659645, -0.018423676, -0.026518691, -0.037980527) * input_1(1.0, -1.0);
|
||
|
result += mat4(0.08552797, -0.087564364, -0.03741519, -0.15109004, 0.09821527, 0.03784582, -0.024278786, 0.21004608, -0.038345102, 0.04027813, -0.019632533, -0.23022196, -0.020685798, 0.03573421, -0.0462512, -0.1505066) * input_1(1.0, 0.0);
|
||
|
result += mat4(-0.013570602, 0.018529033, 0.047535136, 0.10979604, 0.052901182, -0.04141113, -0.029233724, 0.12798414, 0.043030705, -0.011308318, 0.048107427, 0.13579775, -0.06473655, 0.0040808497, 0.092207015, 0.00518577) * input_1(1.0, 1.0);
|
||
|
result += mat4(-0.03954788, 0.07002156, 0.04169714, 0.05153196, 0.010426953, -0.0554062, 0.041515175, -0.1216752, -0.052659184, 0.039365653, 0.023350671, 0.034720246, 0.007405126, 0.03509227, -0.0030640522, -0.015659481) * input_2(-1.0, -1.0);
|
||
|
result += mat4(-0.033232566, -0.28307286, -0.08616602, 0.03400361, 0.0015884325, 0.18483801, 0.08070199, -0.0160387, -0.0071831066, -0.25985995, -0.03578115, -0.009789721, -0.07059921, -0.062285997, 0.06471942, 0.019483017) * input_2(-1.0, 0.0);
|
||
|
result += mat4(-0.00990156, -0.0136109805, -0.005733606, 0.022542218, -0.032927662, -0.071946934, 0.059446763, 0.03511, -0.014970223, 0.038056, 0.045701526, -0.004771688, 0.015268866, -0.16995643, -0.023895713, 0.018046504) * input_2(-1.0, 1.0);
|
||
|
result += mat4(-0.067759864, -0.089486286, -0.015603003, -0.06529226, -0.016283939, -0.04528784, 0.050123885, -0.13856454, 0.15689881, 0.49421552, -0.03367032, -0.13969743, -0.021720987, 0.1059489, 0.0024365543, 0.027135985) * input_2(0.0, -1.0);
|
||
|
result += mat4(0.049171925, 0.10066232, 0.15086685, -0.070664875, 0.019708863, 0.55384755, -0.0027092309, 0.0033051246, -0.064233124, -0.15304881, 0.20298742, 0.04739268, 0.032165974, 0.18709393, 0.02768134, -0.090189956) * input_2(0.0, 0.0);
|
||
|
result += mat4(-0.036497623, -0.08222114, 0.04545758, -0.10228813, -0.0035761432, -0.09339046, 0.011330734, 0.020670779, 0.054049857, 0.22024195, -0.044025347, -0.05395759, -0.04566688, -0.1429103, 0.002778986, 0.014166028) * input_2(0.0, 1.0);
|
||
|
result += mat4(0.08308224, -0.11819363, 0.005762244, 0.20189445, 0.025231497, 0.027346468, -0.013694594, -0.004389863, 0.07544979, -0.010892053, -0.007737558, 0.27023938, -0.052236732, 0.14004329, -0.039856266, -0.3238338) * input_2(1.0, -1.0);
|
||
|
result += mat4(0.061995693, -0.04547495, -0.01223139, -0.025179755, 0.11563782, 0.067947604, 0.044099543, -0.1916224, 0.057657193, -0.1705708, -0.025724256, 0.022952719, 0.047682896, -0.036120962, -0.00570438, -0.32240376) * input_2(1.0, 0.0);
|
||
|
result += mat4(0.0048509073, -0.0839213, -0.016591381, 0.0830214, 0.033679172, 0.037051123, -0.009803832, -0.03909739, 0.018142091, -0.018556051, -0.021568406, -0.012718127, -0.0024575365, 0.030199597, -0.0027533767, -0.13232087) * input_2(1.0, 1.0);
|
||
|
result += mat4(-0.04257142, 0.3492261, -0.016319882, 0.14929874, 0.54846126, 0.7404872, 0.49610767, 0.23976989, -0.050416306, -0.028625958, 0.062288348, -0.02093576, 0.03021591, 0.0046613626, -0.086516716, 0.031516436) * input_3(-1.0, -1.0);
|
||
|
result += mat4(-0.08848677, 0.8875564, 0.073550835, -0.5927693, -0.013328875, -0.03663287, 0.2883988, -0.016082263, 0.015794069, 0.03338402, -0.122430466, -0.023296809, -0.069162555, -0.0087176785, 0.060985167, 0.020687195) * input_3(-1.0, 0.0);
|
||
|
result += mat4(-0.0074669113, 0.53166693, 0.19571587, -0.6343396, -0.013349742, 0.0144328745, 0.09036809, 0.020178685, 0.0012928685, 0.0008449557, 0.002884188, -0.0008979325, 0.021869073, 0.008374878, -0.059537694, -0.009645543) * input_3(-1.0, 1.0);
|
||
|
result += mat4(0.21725897, 0.06349043, -0.066055045, 0.11813616, 0.5806666, -0.71039426, -0.307495, 0.58733326, 0.03692696, 0.2421819, 0.008190908, 0.029546589, 0.045150097, -0.019605098, -0.054011066, 0.0007738925) * input_3(0.0, -1.0);
|
||
|
result += mat4(0.3170432, 0.23479705, -0.025125232, 0.45938632, 0.35105196, -0.25340834, 0.46124697, 0.14071028, 0.3345247, 0.26954645, 0.416304, 0.067057066, -0.18913987, 0.12661186, 0.028811967, -0.08711489) * input_3(0.0, 0.0);
|
||
|
result += mat4(0.19407122, -0.26759052, 0.030227704, -0.071503446, 0.10680791, -0.04235792, -0.10934916, 0.08950821, -0.0019637702, -0.12713604, 0.108068295, 0.04631863, -0.06356376, 0.29933858, -0.029663797, -0.051883142) * input_3(0.0, 1.0);
|
||
|
result += mat4(0.021350682, -0.074091405, 0.019383326, 0.15246277, 0.43739778, 0.23218116, -0.27626532, -0.49258155, -0.111986265, -0.06110304, 0.0051064366, 0.50308037, -0.0027714195, -0.018828824, -0.025254516, -0.52556586) * input_3(1.0, -1.0);
|
||
|
result += mat4(0.021625297, 0.040662162, 0.0036796408, -0.1036183, 0.2114454, 0.14131518, -0.03125265, -0.12574929, -0.14393014, 0.23328675, -0.09580233, -0.03849213, -0.08278599, -0.10083802, 0.027698245, -0.17905478) * input_3(1.0, 0.0);
|
||
|
result += mat4(-0.009755281, -0.011980935, -0.00946762, -0.0719599, -0.07324052, 0.024392003, -0.011948779, -0.07248559, -0.034610398, 0.083707824, -0.024624545, -0.07450855, 0.010321532, -0.024349349, 0.07480036, -0.14651679) * input_3(1.0, 1.0);
|
||
|
result += vec4(-0.02446999, -0.12335079, -0.0031021638, 0.041514017);
|
||
|
return max(result, vec4(0.0));
|
||
|
}
|
||
|
|
||
|
//!DESC ArtCNN C4F16 (Conv-4-ReLU)
|
||
|
//!HOOK LUMA
|
||
|
//!BIND conv2d_3_tf
|
||
|
//!BIND conv2d_3_tf1
|
||
|
//!BIND conv2d_3_tf2
|
||
|
//!BIND conv2d_3_tf3
|
||
|
//!SAVE conv2d_4_tf
|
||
|
//!WIDTH LUMA.w
|
||
|
//!HEIGHT LUMA.h
|
||
|
//!COMPONENTS 4
|
||
|
//!WHEN OUTPUT.w LUMA.w / 1.3 > OUTPUT.h LUMA.h / 1.3 > *
|
||
|
#define input_0(x_off, y_off) (conv2d_3_tf_texOff(vec2(x_off, y_off)))
|
||
|
#define input_1(x_off, y_off) (conv2d_3_tf1_texOff(vec2(x_off, y_off)))
|
||
|
#define input_2(x_off, y_off) (conv2d_3_tf2_texOff(vec2(x_off, y_off)))
|
||
|
#define input_3(x_off, y_off) (conv2d_3_tf3_texOff(vec2(x_off, y_off)))
|
||
|
vec4 hook() {
|
||
|
vec4 result = mat4(0.0095967995, 0.014168475, 0.02993115, -0.044815235, -0.012843672, 0.013511264, -0.00037125882, -0.016467316, -0.018807309, 0.009228929, 0.08406158, 0.016688503, -0.0029104212, 0.14695671, -0.041915618, -0.032423045) * input_0(-1.0, -1.0);
|
||
|
result += mat4(0.015480913, 0.014598554, -0.0035460282, 0.057595007, -0.00223877, -0.06231914, 0.009775081, 0.08341824, -0.010180438, -0.21684612, 0.07387095, 0.055433724, 0.0019082376, 0.48531672, 0.0318906, 0.009298757) * input_0(-1.0, 0.0);
|
||
|
result += mat4(-0.042075656, 0.062742166, 0.012726781, 0.047095872, -0.08239381, 0.06429026, 0.06207991, -0.03766683, -0.01471821, -0.01003206, -0.020963766, 0.023605056, 0.09563109, 0.21268491, -0.032050803, 0.015356194) * input_0(-1.0, 1.0);
|
||
|
result += mat4(-0.027229974, 0.072658375, 0.0014441743, 0.054495815, 0.024775356, 0.019528326, 0.045019574, -0.09362191, 0.013872119, 0.01592281, 0.17902984, 0.06990214, -0.0010372987, -0.06574165, -0.07649565, 0.028458782) * input_0(0.0, -1.0);
|
||
|
result += mat4(-0.016827065, 0.17020929, 0.22644436, -0.0047102547, -0.04685905, -0.08195359, -0.12230908, 0.022894539, 0.036647134, 0.105513476, 0.24810755, -0.17059568, 0.056613628, -0.12927838, -0.041931164, -0.049060613) * input_0(0.0, 0.0);
|
||
|
result += mat4(-0.13926776, -0.067928985, -0.013610526, 0.070137106, 0.20753779, -0.086565845, 0.069135845, 0.03970879, 0.074231096, -0.020687811, -0.06321435, 0.11423086, -0.037946306, -0.08237359, -0.03434359, 0.004628794) * input_0(0.0, 1.0);
|
||
|
result += mat4(0.015109929, -0.055546436, -0.010709656, 0.04285459, -0.017226495, 0.01423016, 0.00837346, -0.0098594595, -0.01508753, -0.04021543, 0.02575128, 0.036026802, 0.008949267, -0.039833374, -0.03942339, -0.020385204) * input_0(1.0, -1.0);
|
||
|
result += mat4(0.017651437, -0.034956377, -0.03242722, 0.032069605, 0.030251933, 0.059733003, 0.009880484, 0.07318022, -0.011916936, 0.018802209, -0.044443198, 0.038647115, -0.043566424, 0.07367331, 0.04202771, -0.079729296) * input_0(1.0, 0.0);
|
||
|
result += mat4(-0.030621637, -0.014932417, 0.022611156, -0.047190476, -0.02827313, 0.08046002, -0.007378508, -0.015100457, 0.04169493, -0.008962385, 0.019901365, -0.006639812, 0.04914274, 0.053586528, 0.025516285, 0.051539008) * input_0(1.0, 1.0);
|
||
|
result += mat4(0.013245067, 0.02046891, 0.0012690711, -0.008915714, 0.018796133, 0.15231305, 0.018350737, 0.0126679, -0.054131187, 0.68324524, -0.07108155, 0.025387991, 0.0079874415, 0.068381526, -0.043227747, -0.021551164) * input_1(-1.0, -1.0);
|
||
|
result += mat4(0.02337105, -0.31408575, -0.020662671, 0.05309881, -0.029357016, 0.49180308, -0.06439141, 0.04022762, 0.08047605, 0.36003527, -0.07860682, 0.0796874, -0.04792501, 0.016682146, -0.015820008, -0.08949644) * input_1(-1.0, 0.0);
|
||
|
result += mat4(-0.030303575, -0.04332008, -0.00027891374, -0.03968604, 0.04293097, 0.07969011, 0.021550806, -0.066039294, -0.06524385, 0.17221014, 0.030949248, -0.031283807, 0.07995664, 0.16996767, -0.012062901, -0.016680175) * input_1(-1.0, 1.0);
|
||
|
result += mat4(0.017441247, -0.017462749, 0.08375599, -0.0224114, -0.073381856, 0.00949588, -0.0992295, 0.19048396, -0.0093602985, -0.09357855, 0.090503424, -0.22044468, -0.02853524, 0.02412655, -0.2215248, 0.017840628) * input_1(0.0, -1.0);
|
||
|
result += mat4(-0.03793275, 0.032046515, -0.18321511, -0.07672444, 0.0147348605, -0.24121301, -0.13321146, 0.026265766, 0.13630806, -0.08760475, -0.081401445, 0.025495125, 0.088021904, -0.27223983, -0.03922283, -0.082844645) * input_1(0.0, 0.0);
|
||
|
result += mat4(0.08383158, 0.08539751, 0.030900933, -0.07815838, -0.068090476, -0.056836136, 0.09356088, -0.1982319, 0.24354164, 0.070283204, 0.01938709, -0.1343368, -0.17517473, -0.03619139, -0.029303154, 0.017532654) * input_1(0.0, 1.0);
|
||
|
result += mat4(-0.0022883362, 0.008631078, 0.07476247, -0.015388119, 0.044613685, 0.03092799, -0.027521232, 0.10466864, -0.040801127, 0.03594817, -0.012616632, 0.16433948, 0.02336003, -0.02758876, -0.0005936716, -0.039160192) * input_1(1.0, -1.0);
|
||
|
result += mat4(0.020438159, -0.010668788, -0.04046644, -0.008371596, -0.0043454166, 0.03607861, 0.07605408, -0.0064612133, 0.038730364, 0.21566013, 0.10896628, -0.11264831, -0.019255156, 0.07286302, 0.008700942, -0.18588585) * input_1(1.0, 0.0);
|
||
|
result += mat4(-0.06102224, -0.008118828, 0.0005767393, -0.019318204, -0.056003135, -0.019658415, -0.040835254, 0.0244761, 0.0045846296, -0.08173185, -0.021780984, -0.07111152, 0.0262876, 0.20054728, -0.058107786, -0.050021414) * input_1(1.0, 1.0);
|
||
|
result += mat4(-0.0014188297, 0.2214706, -0.009851943, -0.00021606762, 0.008310563, -0.202674, -0.010690518, -0.014671779, -0.005883727, -0.1650892, -0.00832962, -0.016851326, -0.011019833, -0.06531575, 0.0031503518, -0.006371914) * input_2(-1.0, -1.0);
|
||
|
result += mat4(0.018247899, 0.053421184, -0.012432836, 0.052570023, 0.036002107, -0.78112996, 0.014983314, -0.025678122, -0.026502522, -0.07732917, 0.009652572, -0.039576244, 0.027633224, -0.04518664, -0.055336207, 0.02784973) * input_2(-1.0, 0.0);
|
||
|
result += mat4(0.05342781, 0.06913854, -0.014533017, -0.012500314, 0.04247098, -0.35174787, -0.008164305, 0.04813132, -0.05771069, -0.19804133, 0.009509777, 0.06354472, -0.011495634, 0.037482858, -0.0047279294, 0.012383691) * input_2(-1.0, 1.0);
|
||
|
result += mat4(-0.009446617, -0.09303525, 0.10887601, -0.051432278, -0.0035545581, -0.054839283, 0.013447529, -0.08028883, 0.010256942, -0.13767233, -0.020205406, -0.012892828, 0.018145746, -0.029660942, 0.014856926, -0.084357336) * input_2(0.0, -1.0);
|
||
|
result += mat4(-0.0026494018, -0.09587592, -0.046999477, 0.3728839, -0.0009517168, -0.17894131, -0.0010735244, -0.1460363, 0.051173948, -0.13628344, 0.13114195, -0.32449237, -0.020723326, 0.12009347, -0.05964781, 0.07590946) * input_2(0.0, 0.0);
|
||
|
result += mat4(0.03957844, -0.049011268, -0.026679387, 0.018455278, -0.1876327, -0.01149983, 0.014730393, 0.068325974, -0.38455153, 0.11037466, 0.040128443, 0.103197575, 0.2574788, 0.046281666, -0.0061782654, -0.18563253) * input_2(0.0, 1.0);
|
||
|
result += mat4(-0.0077182082, 0.016183086, 0.018101595, 0.0042104446, 0.01152657, -0.010885389, -0.018146671, 0.0046722153, -0.018620547, 0.057180878, -0.012990804, -0.052536916, -0.00602495, -0.020669281, 0.019160887, -0.04278057) * input_2(1.0, -1.0);
|
||
|
result += mat4(-0.0053147003, -0.021391585, -0.0074315956, -0.021328095, -0.03803527, 0.049110137, 0.032044876, -0.07912107, -0.030328099, 0.05181659, 0.09605106, -0.10134368, -0.0023379147, -0.066124536, -0.026703974, 0.033029333) * input_2(1.0, 0.0);
|
||
|
result += mat4(-0.018183526, -0.005607061, -0.027957326, 0.0042427517, -0.13039578, 0.0023597006, -0.017451355, 0.019285833, -0.04845536, 0.04939856, 0.0029386648, -0.026929224, 0.0076379543, -0.016592333, -0.0054875547, -0.0003502664) * input_2(1.0, 1.0);
|
||
|
result += mat4(0.0064585046, 0.093506835, 0.0050818142, 0.0057656965, -0.006158577, -0.05627697, -0.008139294, 0.013238929, 0.03337124, -0.40732405, 0.041954875, -0.02078191, -0.018220339, 0.24072364, -0.010592302, 0.0045321626) * input_3(-1.0, -1.0);
|
||
|
result += mat4(0.062475506, -0.46160415, 0.069025144, -0.0020563416, 0.024558, -0.17931505, -0.04390077, 0.046828248, -0.064667925, -0.31498113, 0.08417843, -0.115793325, 0.017912019, -0.008247954, -0.020233681, -0.08705123) * input_3(-1.0, 0.0);
|
||
|
result += mat4(0.15354793, -0.4424151, 0.023411551, 0.027884379, -0.093573965, 0.05880995, 0.01648256, -0.030808587, 0.025358068, -0.032246143, -0.033799283, 0.023028636, -1.0682992, 0.10474917, 0.026509631, -0.24121939) * input_3(-1.0, 1.0);
|
||
|
result += mat4(-0.0050511565, 0.104780234, 0.03914041, -0.049604747, 0.015343506, 0.044453938, 0.008417119, -0.032786682, -0.08399216, 0.10944251, -0.03737186, 0.22187959, -0.00055257854, -0.15070423, -0.020839296, 0.08893232) * input_3(0.0, -1.0);
|
||
|
result += mat4(0.106028005, 0.31061235, 0.12818412, -0.1365541, -0.03934979, 0.1765537, -0.08706981, -0.035732638, 0.2283893, 0.079185985, 0.0041627395, 0.04766368, -0.020422222, -0.04433383, 0.01849811, 0.047079064) * input_3(0.0, 0.0);
|
||
|
result += mat4(-0.14798054, 0.09152911, -0.007272675, 0.044591643, 0.21175556, 0.013058791, -0.0018605711, -0.088631734, -0.25470126, 0.08085215, -0.060207434, 0.15532763, 0.03879417, -0.23338035, -0.07378707, 0.08588736) * input_3(0.0, 1.0);
|
||
|
result += mat4(-0.023366991, -0.007611007, 0.015798422, -0.033122003, -0.012992002, -0.04055836, -0.008109665, -0.0434945, 0.027784947, -0.03872673, -0.020277454, 0.002183353, 0.01498159, 0.0673948, 0.013771471, 0.017635904) * input_3(1.0, -1.0);
|
||
|
result += mat4(0.0064137564, -0.13504179, -0.05802497, 0.09177983, 0.012833564, -0.03173082, -0.03832472, -0.013082873, 0.036361676, -0.16388147, -0.16190828, 0.13404411, 0.0065615387, 0.05826413, 0.028390603, -0.024000028) * input_3(1.0, 0.0);
|
||
|
result += mat4(0.000862133, -0.05297163, -0.008919768, 0.034083545, -0.004775925, 0.00076870393, 0.010216165, -0.018153373, -0.025489423, 0.055919904, 0.029459205, 0.044381175, -0.010183179, 0.036058303, -0.0025749232, -0.07427092) * input_3(1.0, 1.0);
|
||
|
result += vec4(-0.018494831, -0.035350163, -0.0013512085, -0.019652398);
|
||
|
return max(result, vec4(0.0));
|
||
|
}
|
||
|
|
||
|
//!DESC ArtCNN C4F16 (Conv-4-ReLU)
|
||
|
//!HOOK LUMA
|
||
|
//!BIND conv2d_3_tf
|
||
|
//!BIND conv2d_3_tf1
|
||
|
//!BIND conv2d_3_tf2
|
||
|
//!BIND conv2d_3_tf3
|
||
|
//!SAVE conv2d_4_tf1
|
||
|
//!WIDTH LUMA.w
|
||
|
//!HEIGHT LUMA.h
|
||
|
//!COMPONENTS 4
|
||
|
//!WHEN OUTPUT.w LUMA.w / 1.3 > OUTPUT.h LUMA.h / 1.3 > *
|
||
|
#define input_0(x_off, y_off) (conv2d_3_tf_texOff(vec2(x_off, y_off)))
|
||
|
#define input_1(x_off, y_off) (conv2d_3_tf1_texOff(vec2(x_off, y_off)))
|
||
|
#define input_2(x_off, y_off) (conv2d_3_tf2_texOff(vec2(x_off, y_off)))
|
||
|
#define input_3(x_off, y_off) (conv2d_3_tf3_texOff(vec2(x_off, y_off)))
|
||
|
vec4 hook() {
|
||
|
vec4 result = mat4(-0.010324308, -0.017429003, -0.005605015, -0.096945405, -0.0029176814, 0.03017138, 0.013172454, -0.0042952932, -0.019939652, 0.019188602, -0.00914564, 0.086977445, 0.012706651, -0.093651846, 0.024730366, -0.06951438) * input_0(-1.0, -1.0);
|
||
|
result += mat4(0.045695167, 0.04192357, -0.04214913, 0.03489329, 0.034525543, -0.04593765, -0.033067323, 0.034911145, 0.0074747577, 0.13168526, 0.027678313, 0.13878727, 0.044328764, -0.054913856, 0.035992254, 0.1620988) * input_0(-1.0, 0.0);
|
||
|
result += mat4(-0.017302068, 0.020393375, -0.083416, -0.013045015, -0.019449385, 0.09196044, -0.019065414, 0.084072515, -0.014828034, -0.004855444, -0.04733525, -0.0077213505, 0.10181332, 0.11983549, 0.088363744, 0.10025606) * input_0(-1.0, 1.0);
|
||
|
result += mat4(-0.019435668, -0.04790806, 0.0024929806, -0.4101058, 0.04971034, 0.036335383, 0.029787306, 0.33855274, 0.034066126, 0.069399744, 0.002996593, 0.0460224, -0.05919312, -0.0048237657, -0.002463071, -0.15267965) * input_0(0.0, -1.0);
|
||
|
result += mat4(-0.006400042, 0.0359995, 0.022332782, 0.14354612, -0.14057031, -0.051904883, -0.10514635, -0.12948768, -0.0070765037, 0.21340072, -0.017159672, 0.29962593, 0.22377181, -0.06471854, 0.026099684, 0.30806908) * input_0(0.0, 0.0);
|
||
|
result += mat4(-0.04779291, -0.12888977, 0.07427706, -0.15640679, 0.071453385, 0.27044442, 0.00088017783, 0.16930902, -0.043466832, -0.13091055, -0.14304736, 0.030189406, 0.01752515, -0.107798904, -0.113841206, -0.058187116) * input_0(0.0, 1.0);
|
||
|
result += mat4(0.020329837, -0.018361226, 0.0028758734, -0.02550155, -0.032542888, 0.0036495028, 0.011801395, -0.018714169, -0.015444399, -0.016316213, -0.015410782, 0.018332377, -0.036350384, 0.012578222, 0.002409097, 0.016737608) * input_0(1.0, -1.0);
|
||
|
result += mat4(0.034558166, -0.011232979, -0.03788652, -0.03469588, 0.008461162, -0.054629754, 0.01573053, 0.039937153, 0.014469192, 0.061105747, -0.0011596516, 0.20842643, -0.039636414, -0.02514149, 0.039693937, -0.017317424) * input_0(1.0, 0.0);
|
||
|
result += mat4(-0.03139525, -0.026213525, -0.072846904, -0.049295817, -0.016231136, 0.10786758, 0.034310915, 0.16009597, -0.0015225862, 0.069989726, -0.0301103, -0.0027405978, -0.006883243, -0.06688953, 0.043587573, -0.09055495) * input_0(1.0, 1.0);
|
||
|
result += mat4(0.0111504495, 0.0135619985, 0.0025886355, 0.12475811, -0.026976638, -0.0032327985, -0.035133418, -0.1351888, 0.028668948, 0.08534303, -0.014383975, 0.0734931, 0.00070947735, -0.03420394, 0.0064356807, 0.1282847) * input_1(-1.0, -1.0);
|
||
|
result += mat4(-0.0028194904, 0.011539737, 0.0091593675, -0.0050325743, 0.0137041155, 0.048572514, -0.019995127, -0.04966775, 0.07658341, -0.17670566, -0.072804466, -0.06465007, -0.05987425, 0.051308572, 0.038992546, -0.036870413) * input_1(-1.0, 0.0);
|
||
|
result += mat4(-0.018049717, 0.043525334, 0.008242846, -0.020621885, 0.040189926, 0.03413061, 0.12702855, 0.059285715, -0.025524868, 0.0551439, -0.0989861, 0.028273767, 0.0034308163, 0.023829756, 0.028430082, -0.005860225) * input_1(-1.0, 1.0);
|
||
|
result += mat4(0.14406551, -0.097169, 0.007879146, 0.113034695, -0.17743385, -0.1312086, -0.059119247, -0.66290027, -0.10936704, 0.17018972, 0.0022386112, 0.42079368, -0.00993979, -0.10375414, 0.035812996, -0.051261995) * input_1(0.0, -1.0);
|
||
|
result += mat4(-0.11530176, 0.056131978, 0.02285196, -0.22006537, -0.27326953, 0.06726769, 0.14075975, -0.23371112, -0.1462106, -0.2951077, 0.06174811, -0.402271, 0.031418703, 0.020067338, 0.040088773, -0.050494354) * input_1(0.0, 0.0);
|
||
|
result += mat4(0.03250979, 0.38293347, -0.0010077471, 0.050229058, 0.042055447, 0.18072966, 0.18217984, 0.042420242, 0.037262585, 0.20166986, 0.21348543, 0.21703148, -0.0119677875, -0.12107609, -0.016389877, -0.14915806) * input_1(0.0, 1.0);
|
||
|
result += mat4(0.026734859, 0.0016744311, 0.008222706, 0.12574093, 0.022360845, -0.029505854, -0.0259402, 0.10792938, -0.037648708, -0.09398797, -0.030386675, -0.20199655, 0.040298447, -0.011977622, -0.0021575426, -0.117257595) * input_1(1.0, -1.0);
|
||
|
result += mat4(0.016220244, 0.050528493, 0.02090402, -0.0698563, -0.05896723, 0.08549716, -0.0072171763, 0.06989304, 0.046332106, 0.2767262, 0.14563611, 0.25540215, -0.050038483, 0.04484775, -0.03474069, 0.12121609) * input_1(1.0, 0.0);
|
||
|
result += mat4(0.00028605363, 0.021808285, 0.035912246, -0.007818516, -0.033509407, -0.002123189, -0.0067167813, 0.12289214, -0.008282152, -0.18750207, 0.039494663, 0.0037536498, -0.022258632, -0.04126063, 0.04647444, -0.06665224) * input_1(1.0, 1.0);
|
||
|
result += mat4(-0.022439081, 0.015557516, 0.00799348, 0.016456537, -0.0078121065, 0.020896487, -0.007854385, 0.04089123, -0.022959102, 0.004470458, 0.0068389745, 0.12649924, 0.013781818, 0.03508097, 0.01301185, 0.039963827) * input_2(-1.0, -1.0);
|
||
|
result += mat4(-0.011740153, -0.05557211, 0.008514579, -0.07110714, -0.0021641904, -0.065625146, 0.02016707, 0.026446339, -0.09228594, -0.008662336, 0.04526394, -0.023569178, 0.012404953, -0.119242035, -0.023052802, -0.116621) * input_2(-1.0, 0.0);
|
||
|
result += mat4(-0.022118222, 0.10982428, 0.03638259, 0.02172513, -0.00090733473, -0.094554804, -0.013084671, 0.014953303, 0.009493402, -0.07563578, -0.048649386, -0.032934327, 0.013569521, -0.005488591, -0.04443885, 0.033282828) * input_2(-1.0, 1.0);
|
||
|
result += mat4(0.03905585, 0.068128146, 0.021498948, 0.2845726, -0.050067138, 0.04552072, 0.002925175, -0.059858706, 0.05887643, 0.053452007, -0.0046629184, 0.21802673, 0.07140928, 0.076086394, -0.0035500147, 0.17302728) * input_2(0.0, -1.0);
|
||
|
result += mat4(0.18334723, -0.14016491, -0.04710273, 0.14486104, -0.10738225, -0.036313444, -0.017438604, -0.4949435, 0.078144945, -0.02005294, 0.034743905, -0.30284554, -0.057578526, -0.1346643, -0.09820921, -0.28696528) * input_2(0.0, 0.0);
|
||
|
result += mat4(0.004235745, 0.1517313, 0.14252336, -0.052441508, -0.06624416, -0.38674733, -0.090762824, -0.15237123, 0.02100435, -0.32155105, -0.25156292, -0.043337002, 0.011464389, 0.12885165, 0.27587065, 0.18126862) * input_2(0.0, 1.0);
|
||
|
result += mat4(-0.018099688, 0.018028283, 0.020559847, 0.116338775, 0.012900114, -0.008466156, -0.0076251337, 0.013683417, -0.059352852, -0.00071241276, 0.023335332, -0.19380844, -2.6996311e-05, 0.021529771, 0.013664046, -0.028738443) * input_2(1.0, -1.0);
|
||
|
result += mat4(-0.06901598, -0.08239953, -0.038104776, -0.10025568, -0.06542442, -0.018423045, -0.022379361, -0.24258777, 0.053299956, 0.015831167, 0.114506446, -0.012275279, 0.073787525, -0.008659992, 0.0064340495, 0.026584892) * input_2(1.0, 0.0);
|
||
|
result += mat4(-0.015244945, -0.024431204, 0.015881483, -0.072780274, -0.009089516, -0.109901085, 0.0031026127, -0.0073593766, 0.018399363, -0.12006727, 0.048939195, -0.11775668, -0.011999904, -0.0016252717, -0.0626824, 0.065234) * input_2(1.0, 1.0);
|
||
|
result += mat4(0.046417642, -0.027166467, 0.008495429, -0.010995891, -0.002404634, 0.004585766, -0.0075697177, 0.011194277, -0.005637637, -0.036786553, -0.002675591, -0.0940007, -0.07923741, -0.0025103197, -0.010576179, -0.33656964) * input_3(-1.0, -1.0);
|
||
|
result += mat4(0.01613073, -0.015780272, 0.0105878925, 0.10652184, 0.039406963, -0.014619525, -0.015303291, -0.06977952, -0.07161314, 0.12724197, 0.047407385, 0.0694194, 0.042803112, 0.052053977, 0.04630977, 0.19435763) * input_3(-1.0, 0.0);
|
||
|
result += mat4(-0.024839416, 0.03377947, 0.097761266, 0.0013172801, -0.003537957, 0.0139911985, -0.004316394, 0.08247901, 0.010777022, -0.056781687, 0.068123914, 0.0012185408, -0.017629046, -0.5094381, -0.012168132, -1.0783194) * input_3(-1.0, 1.0);
|
||
|
result += mat4(0.14402594, 0.04474039, 0.020912481, 0.2797491, -0.005142085, 0.012354493, 0.0059536556, 0.11216341, 0.20849138, -0.16235548, -0.027104793, -0.4635684, 0.002895218, -0.076730736, -0.04839686, -0.30293515) * input_3(0.0, -1.0);
|
||
|
result += mat4(-0.2926878, 0.011301389, -0.014898797, -0.27372792, -0.059722338, -0.067527495, -0.04065245, -0.21059571, 0.1536258, 0.19572102, -0.03893248, 0.32766566, 0.08744272, 0.054779798, 0.07775782, 0.37327883) * input_3(0.0, 0.0);
|
||
|
result += mat4(-0.1092581, 0.09528391, 0.12154955, -0.0008616062, -0.0095630465, 0.19612886, -0.09807077, 0.12045405, 0.021295525, -0.26660305, -0.22167031, -0.22726573, 0.08920044, -0.03696086, -0.12515067, -0.14438091) * input_3(0.0, 1.0);
|
||
|
result += mat4(0.020461205, 0.02031319, 0.021130256, -0.03053887, -0.012056974, 0.020513987, 0.0015560206, 0.08733963, 0.08140046, 0.036706395, -0.04450855, -0.03676257, 0.0022296747, -0.05898682, 0.009049816, -0.07010387) * input_3(1.0, -1.0);
|
||
|
result += mat4(0.08084717, -0.012068985, -0.03536616, 0.11687455, -0.010884625, -0.06758621, -0.032358844, -0.26059464, 0.11592746, -0.27572474, -0.20987633, -0.08440524, -0.034980226, 0.09916681, -0.03042345, 0.15111566) * input_3(1.0, 0.0);
|
||
|
result += mat4(0.023890635, 0.060076397, -0.07146153, -0.09385919, 0.016994517, 0.022444082, -0.0037551774, 0.12980874, 0.052621774, 0.08110621, -0.15566283, -0.046273038, -0.06852746, -0.06060598, 0.05137193, 0.026673298) * input_3(1.0, 1.0);
|
||
|
result += vec4(0.00051078224, -0.023126302, 0.0020703115, -0.02341397);
|
||
|
return max(result, vec4(0.0));
|
||
|
}
|
||
|
|
||
|
//!DESC ArtCNN C4F16 (Conv-4-ReLU)
|
||
|
//!HOOK LUMA
|
||
|
//!BIND conv2d_3_tf
|
||
|
//!BIND conv2d_3_tf1
|
||
|
//!BIND conv2d_3_tf2
|
||
|
//!BIND conv2d_3_tf3
|
||
|
//!SAVE conv2d_4_tf2
|
||
|
//!WIDTH LUMA.w
|
||
|
//!HEIGHT LUMA.h
|
||
|
//!COMPONENTS 4
|
||
|
//!WHEN OUTPUT.w LUMA.w / 1.3 > OUTPUT.h LUMA.h / 1.3 > *
|
||
|
#define input_0(x_off, y_off) (conv2d_3_tf_texOff(vec2(x_off, y_off)))
|
||
|
#define input_1(x_off, y_off) (conv2d_3_tf1_texOff(vec2(x_off, y_off)))
|
||
|
#define input_2(x_off, y_off) (conv2d_3_tf2_texOff(vec2(x_off, y_off)))
|
||
|
#define input_3(x_off, y_off) (conv2d_3_tf3_texOff(vec2(x_off, y_off)))
|
||
|
vec4 hook() {
|
||
|
vec4 result = mat4(-0.11461174, -0.020779813, -0.0015978394, 0.059278075, 0.0026168297, 0.074702725, 0.00953187, 0.007246814, -0.05713571, 0.09040747, -0.0051039374, 0.024331702, -0.010659548, -0.045386225, -0.012670959, -0.03088271) * input_0(-1.0, -1.0);
|
||
|
result += mat4(-0.048384253, -0.020391006, 0.0038518312, -0.000419753, 0.08816554, 0.052468177, 0.00069295196, 0.010098722, 0.04737203, -0.03876704, -0.013588011, -0.0017857231, 0.06278254, 0.09283983, -0.0024857977, 0.056681957) * input_0(-1.0, 0.0);
|
||
|
result += mat4(-0.07946567, -0.151427, -0.00447435, 0.02837487, -0.12526013, -0.154415, -0.0076921997, -0.019843102, -0.080015644, 0.074909866, -0.0022708788, 0.020470541, -0.08564545, -0.02615176, 0.009076554, 0.021602487) * input_0(-1.0, 1.0);
|
||
|
result += mat4(-0.11770548, -0.1116428, 0.047540873, -0.0029387653, 0.071941264, -0.16787115, -0.029808708, -0.0050615775, -0.072589986, 0.028132955, 0.06327502, -0.0072779683, -0.1052169, 0.029168786, -0.009284416, -0.05678617) * input_0(0.0, -1.0);
|
||
|
result += mat4(-0.13743214, 0.06315281, -0.07164896, 0.24167773, -0.13198304, 0.0726832, 0.04229719, -0.043288242, -0.07781582, -0.06599032, -0.12160186, -0.008904415, -0.16204563, 0.06485937, 0.16942482, -0.1294101) * input_0(0.0, 0.0);
|
||
|
result += mat4(-0.118498236, 0.026664067, 0.0064071603, 0.034974232, -0.08993207, -0.10994741, -0.031441752, -0.05065077, 0.039769296, -0.021038804, 0.021313913, 0.011226934, 0.034069173, -0.087682836, 0.04357457, -0.03767637) * input_0(0.0, 1.0);
|
||
|
result += mat4(0.07285725, -0.15255523, -0.03707363, 0.049093947, -0.015012453, 0.10288779, 0.029058203, -0.021499654, -0.005837416, -0.029934965, -0.049998406, -0.03201391, 0.03722476, -0.14033088, -0.012620078, 0.045298316) * input_0(1.0, -1.0);
|
||
|
result += mat4(-0.034388896, -0.024225997, -0.22108687, 0.10438805, -0.04777826, -0.07563866, -0.051087033, 0.06873764, -0.108522736, -0.029502103, 0.051407877, 0.0156189725, 0.04483006, -0.111073665, 0.05004732, -0.071030095) * input_0(1.0, 0.0);
|
||
|
result += mat4(-0.13501573, -0.059627995, 0.012943654, -0.021425588, -0.013392913, 0.1055727, -0.014836109, -0.00040687274, 0.014583297, 0.017050862, 0.08663902, 0.025893206, 0.06181988, -0.06266899, 0.06534771, 0.02664393) * input_0(1.0, 1.0);
|
||
|
result += mat4(0.06906809, -0.15242113, -0.0049499236, -0.0108378185, -0.049883805, -0.15937233, -0.02598499, 0.025640558, -0.09471054, 0.035946, -0.006670213, -0.14187616, 0.09720181, 0.03816086, 0.009140902, 0.049304258) * input_1(-1.0, -1.0);
|
||
|
result += mat4(-0.14683993, -0.0010633724, 0.0052395766, 0.045385472, 0.06887427, -0.09489063, 0.02264692, -0.105721086, 0.044437934, -0.119613916, 0.006971417, -0.082312986, -0.12082671, -0.012289196, -0.010360655, -0.0081764385) * input_1(-1.0, 0.0);
|
||
|
result += mat4(0.109083526, -0.054764893, -0.00039666434, -0.027816307, -0.15659948, -0.13193169, -0.016590184, -0.03526938, -0.048088904, -0.13415995, 0.008613078, 0.03751614, -0.10652472, 0.07958264, 0.0021217382, -0.10116789) * input_1(-1.0, 1.0);
|
||
|
result += mat4(0.086169444, -0.040369805, -0.025026055, 0.0561182, -0.014087615, -0.15158929, -0.009849509, -0.216292, -0.13614567, -0.040799577, -0.028233882, 0.3973454, 0.07477717, -0.0084321955, 0.014083657, -0.090399936) * input_1(0.0, -1.0);
|
||
|
result += mat4(-0.08593715, -0.12936617, 0.008036599, -0.22459428, -0.015386057, -0.123301074, 0.016834348, 0.19953291, -0.04425332, 0.062378027, 0.009338085, -0.14067158, 0.04629014, -0.086213775, 0.01252227, -0.1167163) * input_1(0.0, 0.0);
|
||
|
result += mat4(-0.1468053, -0.053019345, 0.0135202315, -0.075151674, 0.055818703, -0.06491363, 0.018185109, -0.08638318, -0.081905454, -0.0706691, -0.021033136, -0.121730566, -0.097227246, 0.041857045, -0.011679815, -0.041925464) * input_1(0.0, 1.0);
|
||
|
result += mat4(-0.06608112, -0.051554818, 0.15179004, -0.0636365, -0.10538134, -0.070735075, -0.1918526, 0.15487075, 0.078773856, 0.10251668, -0.028086713, 0.070078254, -0.12031488, 0.0834388, -0.016602373, 0.0960051) * input_1(1.0, -1.0);
|
||
|
result += mat4(-0.15727462, -0.13739271, 0.052495986, 0.01304524, 0.07279048, -0.16279937, 0.009928884, -0.07987769, 0.008875635, 0.04924244, 0.073610105, -0.087848015, -0.055877704, 0.009167456, -0.00085587346, -0.08173797) * input_1(1.0, 0.0);
|
||
|
result += mat4(-0.14662658, -0.14927004, -0.07593544, -0.013623896, -0.0674551, 0.035034772, -0.064955786, -0.0031610192, -0.10699139, -0.02551001, -0.04671844, -0.06720605, 0.073530674, 0.05977296, -0.04594287, -0.08801462) * input_1(1.0, 1.0);
|
||
|
result += mat4(0.0021261068, -0.14951245, -0.0002999295, -0.02247222, -0.1157895, -0.16714934, 0.0074453927, 0.047612533, -0.11097492, -0.028575111, 0.009123537, 0.03089887, 0.016809497, -0.021035463, -0.009656974, 0.034115463) * input_2(-1.0, -1.0);
|
||
|
result += mat4(0.049783237, -0.0783316, -0.004299536, 0.0522498, -0.05564087, -0.15118662, -0.0017098713, 0.039410554, 0.005921231, -0.10468052, -0.013821104, 0.046870552, -0.084826335, -0.098221704, 0.02007087, -0.09080545) * input_2(-1.0, 0.0);
|
||
|
result += mat4(0.04248988, -0.08089561, 0.0002440697, 0.009582344, -0.03957526, -0.16622373, 0.0052595213, -0.028374476, 0.008329459, -0.15092514, 0.008061614, -0.0016360099, -0.15065709, -0.01928192, -0.0013718675, 0.0147485295) * input_2(-1.0, 1.0);
|
||
|
result += mat4(-0.00060133677, -0.0632753, -0.02095628, 0.011382901, -0.07541246, -0.11824509, -0.011703371, -0.0711176, -0.018602476, -0.11979128, -0.043052584, -0.050837964, -0.0783805, -0.093221515, -0.003796143, 0.047741126) * input_2(0.0, -1.0);
|
||
|
result += mat4(-0.047996953, -0.019944753, 0.035165146, 0.13543086, 0.040861897, 0.09887057, 0.015471711, -0.04308183, 0.04044121, -0.05938187, -0.044846643, -0.10624206, -0.054421164, -0.14806737, 0.058827464, -0.038780015) * input_2(0.0, 0.0);
|
||
|
result += mat4(-0.12424061, -0.17791185, 0.003657328, 0.040839218, -0.019248176, -0.15049484, 0.010527245, -0.01627274, -0.15374278, 0.024519034, -0.03775856, 0.06035265, -0.09959295, 0.015375356, -0.041802768, -0.10420039) * input_2(0.0, 1.0);
|
||
|
result += mat4(-0.11063592, -0.047804296, 0.028868753, 0.071700945, -3.0659823e-05, -0.12682812, -0.12502074, -0.05234319, 0.08607831, -0.07279851, 0.1153271, -0.008432422, -0.09343547, 0.09361427, 0.07738105, -0.0790758) * input_2(1.0, -1.0);
|
||
|
result += mat4(-0.02080086, 0.08471405, 0.06982787, -0.07518164, -0.04320268, -0.023740135, -0.353835, -0.11664986, 0.061406065, -0.12442122, -0.18496315, -0.11910784, -0.004579647, -0.08722505, 0.073995546, 0.0128325485) * input_2(1.0, 0.0);
|
||
|
result += mat4(0.01923829, -0.13699308, -0.041648097, 0.01090033, -0.061230004, -0.13010333, 0.00845309, -0.00520192, -0.08675589, -0.0011898244, -0.01575018, -0.021814877, 0.04433815, -0.008568327, 0.08242423, 0.029069887) * input_2(1.0, 1.0);
|
||
|
result += mat4(-0.11301314, -0.105657354, -0.017291253, -0.07455164, -0.007088713, -0.054290984, 0.00166885, -0.014431778, -0.06002036, -0.027506877, 0.008228151, 0.118823074, -0.00854009, -0.14545833, 0.018759636, -0.069597214) * input_3(-1.0, -1.0);
|
||
|
result += mat4(0.017473442, -0.02237447, 0.01733051, 0.09612832, -0.008527954, -0.16555898, -0.00017694445, 0.010470375, 0.00636407, -0.01929527, -0.0056299097, 0.028533058, -0.0055466224, -0.06742568, -0.025869519, -0.12176671) * input_3(-1.0, 0.0);
|
||
|
result += mat4(-0.087384894, -0.11726098, 0.008575724, 0.007840408, 0.07542892, 0.1096276, -0.005833544, 0.0056623956, 0.022492545, 0.028238663, -0.006876694, -0.018779932, -0.120149404, -0.12599777, 0.0052457396, -0.098022126) * input_3(-1.0, 1.0);
|
||
|
result += mat4(0.047442127, -0.11221658, 0.0036154564, 0.15647966, -0.074313015, 0.060852665, 0.004697337, 0.11751853, -0.15359707, 0.009881661, -0.020971935, -0.30937153, 0.081284665, 0.06628491, -0.07188683, -0.0649882) * input_3(0.0, -1.0);
|
||
|
result += mat4(-0.0989229, -0.07418241, 0.23983201, 0.071228884, -0.022780392, 0.035865758, -0.017548233, -0.10325078, -0.1320145, 0.078616984, 0.001229082, -0.022917466, -0.0026524512, 0.035980508, 0.26958138, -0.16425784) * input_3(0.0, 0.0);
|
||
|
result += mat4(-0.08585192, -0.035305206, 0.024959393, 0.026593944, -0.021287942, -0.06050653, 0.004301799, -0.0086583495, -0.02184744, 0.028836237, -0.0050945687, 0.107756235, 0.0033790611, 0.032801483, 0.05112497, 0.09861054) * input_3(0.0, 1.0);
|
||
|
result += mat4(-0.059257586, -0.103664346, 0.108863614, -0.11186585, 0.026353331, 0.10319025, 0.016666953, -0.017692162, -0.062350336, -0.024954729, 0.040094264, -0.020898506, -0.08192243, -0.049573507, -0.035561692, 0.039138347) * input_3(1.0, -1.0);
|
||
|
result += mat4(-0.1155861, -0.10640814, -0.27621832, 0.116663404, 0.054134525, 0.013864473, 0.028468141, 0.0063567185, -0.010836714, 0.06861808, -0.103132606, 0.14374204, -0.079824775, 0.08834389, 0.027493116, 0.024784803) * input_3(1.0, 0.0);
|
||
|
result += mat4(-0.10582434, 0.004014226, 0.12380318, 0.018818105, 0.027996339, -0.1646421, 0.03330956, 0.016194066, 0.048652653, 0.0012175783, -0.038900886, 0.044891417, -0.044236396, 0.118395224, -0.056061614, -0.09189882) * input_3(1.0, 1.0);
|
||
|
result += vec4(-0.096567154, -0.12122044, -0.006196549, -0.022348957);
|
||
|
return max(result, vec4(0.0));
|
||
|
}
|
||
|
|
||
|
//!DESC ArtCNN C4F16 (Conv-4-ReLU)
|
||
|
//!HOOK LUMA
|
||
|
//!BIND conv2d_3_tf
|
||
|
//!BIND conv2d_3_tf1
|
||
|
//!BIND conv2d_3_tf2
|
||
|
//!BIND conv2d_3_tf3
|
||
|
//!SAVE conv2d_4_tf3
|
||
|
//!WIDTH LUMA.w
|
||
|
//!HEIGHT LUMA.h
|
||
|
//!COMPONENTS 4
|
||
|
//!WHEN OUTPUT.w LUMA.w / 1.3 > OUTPUT.h LUMA.h / 1.3 > *
|
||
|
#define input_0(x_off, y_off) (conv2d_3_tf_texOff(vec2(x_off, y_off)))
|
||
|
#define input_1(x_off, y_off) (conv2d_3_tf1_texOff(vec2(x_off, y_off)))
|
||
|
#define input_2(x_off, y_off) (conv2d_3_tf2_texOff(vec2(x_off, y_off)))
|
||
|
#define input_3(x_off, y_off) (conv2d_3_tf3_texOff(vec2(x_off, y_off)))
|
||
|
vec4 hook() {
|
||
|
vec4 result = mat4(-0.014466888, -0.038168974, 0.012974196, 0.0067300145, -0.0017415743, 0.055296477, -0.0268205, 0.014363979, -0.004672549, -0.002938258, -0.020578701, -0.06158801, -0.00018910058, 0.30061224, 0.061572053, 0.014828947) * input_0(-1.0, -1.0);
|
||
|
result += mat4(0.06335293, -0.17615192, 0.13177447, 0.10248261, 0.058254957, -0.24629126, 0.006342479, -0.06694009, 0.024458826, -0.2696824, 0.075945914, 0.025770301, -0.038611554, 0.21099389, 0.16624781, 0.1706353) * input_0(-1.0, 0.0);
|
||
|
result += mat4(0.025341252, -0.09955017, 0.07833471, 0.059494074, -0.07173684, -0.0072807968, -0.019693969, 0.032729734, 0.04934726, -0.0027628362, 0.038863424, -0.060392145, 0.043343265, 0.13400088, 0.054198246, 0.14275844) * input_0(-1.0, 1.0);
|
||
|
result += mat4(0.029774731, 0.17518418, -0.027066607, 0.027709566, -0.03759215, 0.06113347, 0.010150664, -0.036376838, 0.07046156, 0.01507554, 0.029190822, -0.018791927, 0.023117777, 0.09664449, 0.07181728, -0.02195346) * input_0(0.0, -1.0);
|
||
|
result += mat4(0.23276673, 0.026117006, -0.014225731, 0.1284034, -0.022595009, 0.094662316, -0.059909217, -0.037695035, 0.09212733, 0.033635207, -0.097199336, 0.022112051, -0.13928342, -0.155063, 0.25814405, -0.16119447) * input_0(0.0, 0.0);
|
||
|
result += mat4(0.009272779, 0.12764923, 0.004543296, -0.0017623167, 0.066059135, 0.01353817, -0.022824977, -0.012190298, -0.048931196, -0.07557819, -0.036109507, -0.015384028, -0.06150374, 0.12392231, 0.046935957, 0.0004030668) * input_0(0.0, 1.0);
|
||
|
result += mat4(0.031402886, -0.06575797, 0.06107082, -0.011954933, 0.008497283, 0.06995787, -0.04519133, 0.013718833, 0.019302431, -0.08810492, -0.024497306, 0.00091006997, -0.026472881, 0.049982306, -0.012550375, -0.0067508193) * input_0(1.0, -1.0);
|
||
|
result += mat4(-0.027732732, -0.06895975, -0.02268689, -0.023579063, 0.013540156, -0.02800843, -0.00032020756, 0.00920161, -0.064203076, -0.009369189, -0.008069127, -0.01182088, 0.004255763, 0.20741981, -0.072609015, 0.04316294) * input_0(1.0, 0.0);
|
||
|
result += mat4(0.0077204714, 0.07860251, -0.00044279362, 0.011799698, -0.042044755, 0.012774, 0.019225929, -0.0016230473, 0.029415244, 0.014055394, -0.009047095, -0.002772023, 0.033755034, 0.03304362, -0.025748994, 0.013140124) * input_0(1.0, 1.0);
|
||
|
result += mat4(0.00020491375, 0.1417706, -0.023081446, 0.002149722, 0.09458565, -0.09337628, 0.07918285, 0.022018261, -0.005295667, -0.33746123, 0.35387856, -0.06751057, -0.05915558, 0.20665336, -0.17904904, 0.09687314) * input_1(-1.0, -1.0);
|
||
|
result += mat4(0.043036867, 0.10333625, -0.0079288, -0.05749001, 0.047438648, 0.049971048, -7.297717e-05, 0.2210737, -0.076454446, -0.14744785, 0.13891423, -0.07901926, 0.0029234234, 0.03088523, -0.055216897, -0.14268363) * input_1(-1.0, 0.0);
|
||
|
result += mat4(-0.02776051, 0.082582854, 0.00048301925, 0.035678495, -0.14585838, -0.05747571, -0.023974368, 0.056778792, -0.033232443, 0.0066315085, 0.021467267, 0.030607643, -0.03043503, -0.035221092, 0.021059433, -0.029717065) * input_1(-1.0, 1.0);
|
||
|
result += mat4(-0.029049527, 0.008770636, 0.018414043, -0.018138153, -0.0075610015, 0.07879738, -0.11503434, 0.09494794, -0.053887427, 0.9984776, -0.071119204, 0.29629582, -0.01446724, -0.17708212, 0.25142896, 0.06774265) * input_1(0.0, -1.0);
|
||
|
result += mat4(-0.018605556, -0.083375946, 0.12666924, 0.0037829755, -0.20373356, -0.24380071, -0.16088267, -0.03534847, 0.004196694, 0.6255092, -0.056216102, 0.0657356, -0.16405024, -0.13609686, 0.09735944, -0.09493904) * input_1(0.0, 0.0);
|
||
|
result += mat4(-0.036252674, -0.016012568, -0.0062809465, -0.042288084, 0.10596685, 0.30356005, 0.050315358, 0.0099353185, -0.0052789915, -0.012870037, 0.031053687, 0.10145325, 0.021809548, 0.042033195, 0.008381446, 0.10223539) * input_1(0.0, 1.0);
|
||
|
result += mat4(0.023218382, -0.046260443, -0.019412667, -0.0040679933, -0.05710694, 0.024801498, 0.17211659, -0.006222111, 0.08477869, 0.8139331, 0.45456576, 0.040495306, -0.016466904, -0.023652457, 0.07357044, 0.008860561) * input_1(1.0, -1.0);
|
||
|
result += mat4(-0.026131067, -0.07326232, -0.008978, -0.007778233, 0.053778168, 0.16273001, 0.1734864, 0.013944705, 0.07147938, 0.36971965, 0.10429156, 0.042157777, -0.0053360243, 0.14585468, -0.13326265, 0.041043703) * input_1(1.0, 0.0);
|
||
|
result += mat4(0.02174601, -0.018456472, -5.8055295e-05, 0.034698367, -0.023199769, -0.021765899, 0.051976413, 0.02287226, -0.061721012, 0.12019486, 0.045030385, 0.014645457, -0.0675144, 0.20386153, 0.06876642, 0.049601845) * input_1(1.0, 1.0);
|
||
|
result += mat4(-0.01500841, 0.12181174, -0.056481503, 0.0087115355, -0.005946115, -0.022215461, -0.003997738, -0.045885213, -0.035100725, 0.07735114, -0.11765731, -0.0766226, -0.028312294, -0.111860454, -0.06402402, 0.0016967907) * input_2(-1.0, -1.0);
|
||
|
result += mat4(0.044272974, 0.12379024, -0.14484034, -0.050465766, -0.005753722, 0.036721244, -0.013306597, -0.06448232, 0.009829852, 0.12197497, 0.023914523, -0.22168069, 0.03988801, -0.20432757, 0.16803655, -0.03812833) * input_2(-1.0, 0.0);
|
||
|
result += mat4(0.011275624, 0.020903256, -0.033183932, 0.055119958, 0.022947077, -0.035662342, 0.0803317, 0.015623594, 0.029372199, 0.050483063, 0.013505711, -0.04810347, -0.101489305, -0.1053308, 0.004939866, 0.0033787438) * input_2(-1.0, 1.0);
|
||
|
result += mat4(-0.007653384, -0.06966631, 0.1671457, 0.010632005, 0.042843737, -0.25727332, 0.037827767, -0.0061691357, 0.11289417, -0.31036747, 0.0928182, -0.057442605, -0.018081049, 0.012686921, -0.04893142, -0.050267287) * input_2(0.0, -1.0);
|
||
|
result += mat4(0.05505659, -0.07672926, 0.14862946, -0.09385061, -0.17020285, -0.41685295, 0.078830786, -0.1596678, -0.2643629, -0.4946357, -0.098960236, -0.10523534, -0.0007343785, 0.27105942, -0.25745994, 0.07206784) * input_2(0.0, 0.0);
|
||
|
result += mat4(-0.016728647, -0.06363348, -0.010844293, -0.040968925, 0.06644874, 0.09680722, -0.011265156, -0.028571827, 0.08257226, 0.014233987, 0.036343053, -0.0044017183, 0.009722218, 0.008100822, -0.014715277, 0.04825649) * input_2(0.0, 1.0);
|
||
|
result += mat4(0.0071656476, 0.047019374, -0.15072723, 0.013829794, -0.03322728, -0.16770297, -0.10998711, 0.0017910755, 0.0020368644, 0.059949923, -0.13340464, 0.022589207, 0.030115807, -0.044558495, -0.036602307, 0.017222231) * input_2(1.0, -1.0);
|
||
|
result += mat4(0.03544888, 0.035617676, -0.12633534, 0.0020180368, 0.05261312, -0.04709813, -0.11540549, 0.013986433, 0.058227703, 0.09231119, -0.035028107, 0.04761779, -0.051257387, -0.13389839, 0.104099944, -0.037126713) * input_2(1.0, 0.0);
|
||
|
result += mat4(-0.02336409, -0.06375413, -0.017452165, -0.023591166, -0.013437715, 0.06376458, -0.005035552, -0.0003077711, -0.011131003, 0.1617929, -0.017501768, 0.00783097, 0.013326072, 0.05311792, 0.049836982, -0.0039981934) * input_2(1.0, 1.0);
|
||
|
result += mat4(-0.03809435, 0.2542609, -0.12292908, 0.010944904, 0.0013032182, -0.08673944, 0.08894608, 0.051028766, -0.0023684201, 0.058771066, -0.17005593, 0.06760555, 0.042438388, 0.002728478, -0.032440845, 0.014582937) * input_3(-1.0, -1.0);
|
||
|
result += mat4(-0.041041303, 0.11419215, -0.18758607, -0.39245203, 0.020342443, -0.032655485, 0.052078195, 0.056838397, 0.041166462, 0.11339401, -0.09912858, -0.08780739, -0.106731504, 0.059694618, -0.10703231, -0.013417858) * input_3(-1.0, 0.0);
|
||
|
result += mat4(0.030525308, -0.11227952, -0.023422547, -0.22463065, -0.060786843, -0.0019399568, -0.006224138, -0.01255025, 0.054496106, -8.0310376e-05, -0.045752987, -0.006343217, -0.31079662, -0.8189575, -0.056063816, -0.017205678) * input_3(-1.0, 1.0);
|
||
|
result += mat4(-0.05519502, -0.05685819, 0.027728241, -0.03815617, -0.07975491, -0.15640327, -0.12822075, -0.029462345, 0.0060629537, -0.50115246, 0.24592158, -0.04568692, 0.028364897, 0.07575902, 0.120251246, 0.008822691) * input_3(0.0, -1.0);
|
||
|
result += mat4(0.07686786, -0.24354202, -0.6003353, 0.20893836, -0.045773055, -0.094128035, -0.16648932, -0.05063594, 0.11701159, -0.39287075, 0.31543788, 0.31536573, 0.03125942, 0.1900152, 0.22793896, 0.008423891) * input_3(0.0, 0.0);
|
||
|
result += mat4(0.05488544, 0.07737692, -0.04080922, 0.016517468, 0.0041073426, -0.061326426, -0.033570927, 0.010342349, -0.027529724, -0.049996708, 0.0067955777, 0.009243018, -0.009073503, -0.041343335, 0.13681024, -0.06207752) * input_3(0.0, 1.0);
|
||
|
result += mat4(0.008086622, -0.05548342, 0.0052534286, -0.003505586, -0.026799208, -0.083306804, -0.00395955, -0.015771467, 0.02661115, -0.3516242, -0.028574193, -0.051511247, -0.005492395, 0.21122414, 0.020783458, 0.012693452) * input_3(1.0, -1.0);
|
||
|
result += mat4(-0.022898447, -0.48862275, 0.06714436, -0.05615191, -0.038087673, -0.08012761, -0.08236831, -0.023960467, -0.1725948, -0.27601177, 0.15159695, -0.073394485, 0.014421595, 0.043061253, -0.10840341, 0.029386424) * input_3(1.0, 0.0);
|
||
|
result += mat4(0.007719308, 0.009446711, 0.013667462, -0.026242947, 0.015947936, 0.007937576, -0.00017079171, -0.0126003865, 0.013624353, -0.11611763, -0.044721995, 0.0010407431, -0.015310841, 0.16336726, 0.065392815, 0.016102359) * input_3(1.0, 1.0);
|
||
|
result += vec4(-0.010114678, -0.026597675, -0.047803834, -0.039767426);
|
||
|
return max(result, vec4(0.0));
|
||
|
}
|
||
|
|
||
|
//!DESC ArtCNN C4F16 (Conv-5)
|
||
|
//!HOOK LUMA
|
||
|
//!BIND conv2d_4_tf
|
||
|
//!BIND conv2d_4_tf1
|
||
|
//!BIND conv2d_4_tf2
|
||
|
//!BIND conv2d_4_tf3
|
||
|
//!SAVE conv2d_5_tf
|
||
|
//!WIDTH LUMA.w
|
||
|
//!HEIGHT LUMA.h
|
||
|
//!COMPONENTS 4
|
||
|
//!WHEN OUTPUT.w LUMA.w / 1.3 > OUTPUT.h LUMA.h / 1.3 > *
|
||
|
#define input_0(x_off, y_off) (conv2d_4_tf_texOff(vec2(x_off, y_off)))
|
||
|
#define input_1(x_off, y_off) (conv2d_4_tf1_texOff(vec2(x_off, y_off)))
|
||
|
#define input_2(x_off, y_off) (conv2d_4_tf2_texOff(vec2(x_off, y_off)))
|
||
|
#define input_3(x_off, y_off) (conv2d_4_tf3_texOff(vec2(x_off, y_off)))
|
||
|
vec4 hook() {
|
||
|
vec4 result = mat4(0.13699144, -0.20593135, -0.17545381, -0.001757145, 0.011924303, 0.13912745, 0.042876117, -0.020548386, -0.030083481, -0.08957939, 0.005428454, 0.020758063, -0.11082133, 0.037298374, 0.03971991, 0.0030163096) * input_0(-1.0, -1.0);
|
||
|
result += mat4(0.042395204, 0.12792379, 0.15819989, 0.13709642, 0.06354669, 0.02845737, 0.037874173, -0.022829227, -0.1251126, -0.02543386, 0.029312959, -0.09860455, 0.025648873, 0.10017139, -0.15412076, 0.11952729) * input_0(-1.0, 0.0);
|
||
|
result += mat4(-0.041685075, 0.02794149, 0.021746416, -0.036614485, 0.02072644, 0.08971983, -0.040741332, 0.0067229946, 0.018323794, -0.019139547, 0.15748027, -0.02639232, -0.06845353, -0.021051498, -0.16216038, 0.034734637) * input_0(-1.0, 1.0);
|
||
|
result += mat4(-0.24174434, -0.7906617, -0.013615636, -0.21733469, 0.0062546427, 0.15263417, -0.12730576, -0.09350385, 0.10870124, -0.185303, -0.12977813, 0.014951458, -0.09487447, 0.28899097, 0.29803753, 0.04463212) * input_0(0.0, -1.0);
|
||
|
result += mat4(0.14902464, 0.14509638, 0.18107122, 0.32466882, 0.25423396, 0.0011439577, 0.7339293, 0.08592843, 0.3301424, -0.67960185, -0.20584096, -0.09391473, -0.58268803, 0.92066693, -0.101210006, 0.08080378) * input_0(0.0, 0.0);
|
||
|
result += mat4(0.16720754, -0.093179286, 0.06824372, 0.08146781, 0.09026393, 0.0468306, -0.032241985, -0.047892634, 0.14370413, 0.02877897, 0.0145287225, 0.019669402, -0.35316607, 0.07796982, -0.29187205, -0.053743586) * input_0(0.0, 1.0);
|
||
|
result += mat4(0.826826, -0.26272047, -0.28757942, -0.31887543, 0.3684859, 0.2581618, -0.14027716, -0.05552805, -0.016568068, -0.1342883, -0.060206056, 0.002811614, 0.12015299, 0.10961157, 0.08609595, -0.029538855) * input_0(1.0, -1.0);
|
||
|
result += mat4(0.17186514, -0.0014782825, -0.053475544, 0.052170232, 0.03081176, 0.3279032, 0.35685027, 0.15414554, 0.014587069, -0.06746703, -0.030709086, 0.1327534, 0.16178843, 0.20909443, 0.042637527, -0.1302595) * input_0(1.0, 0.0);
|
||
|
result += mat4(-0.07050684, 0.07189432, -0.07266137, -0.013020053, -0.00037662266, 0.00421397, 0.01764904, -0.004057619, 0.17295443, -0.044967085, -0.026713995, 0.032782197, -0.2514257, 0.039721802, -0.036087688, -0.07160428) * input_0(1.0, 1.0);
|
||
|
result += mat4(-0.037974793, 0.021983778, 0.06471861, -0.0173265, -0.08545331, 0.084270984, -0.08323274, 0.02619916, -0.058634713, -0.19088192, -0.11828802, 0.012632657, 0.010497601, -0.010742919, -0.05107578, -0.0016373338) * input_1(-1.0, -1.0);
|
||
|
result += mat4(0.022103863, 0.03942628, 0.078863144, -0.011653937, -0.09817431, 0.09170966, -0.14519508, -0.030168084, -0.025432557, -0.02352868, -0.16189812, -0.0335615, 0.04614875, -0.15277946, 0.11431056, -0.1004547) * input_1(-1.0, 0.0);
|
||
|
result += mat4(-0.037757542, 0.121644884, -0.09217994, -0.020178434, -0.032539994, 0.036820635, -0.035711914, 0.011918251, 0.055415653, 0.036945324, 0.016048644, 0.06397905, 0.17556107, -0.14587341, 0.25157568, 2.214349e-05) * input_1(-1.0, 1.0);
|
||
|
result += mat4(0.16597778, -0.027736673, -0.22636636, -0.020221021, -0.10222593, 0.26442608, 0.2547124, -0.04613152, -0.104754135, -0.25509945, 0.17583649, -0.012382927, 0.2026838, -0.18501766, -0.27693188, -0.068904854) * input_1(0.0, -1.0);
|
||
|
result += mat4(0.2862299, 0.23123254, -0.032205235, 0.040476456, 0.26917684, 0.18110122, 0.24853568, 0.06590213, 0.35984823, -0.21528383, 0.35411948, -0.12638631, 0.73018825, -0.43977156, -0.057579253, 0.25233218) * input_1(0.0, 0.0);
|
||
|
result += mat4(0.15205994, -0.05175856, 0.19058344, 0.10648381, 0.08624331, 0.076006375, 0.048334513, 0.10530026, 0.022337785, 0.15903178, 0.048086736, -0.02214016, -0.010882546, -0.29226726, -0.0017847357, -0.12462732) * input_1(0.0, 1.0);
|
||
|
result += mat4(0.016796106, -0.0107102785, 0.06036443, 0.057930782, 0.12628733, 0.19570522, -0.056700334, -0.0023814677, -0.16827466, -0.19056086, -0.12172747, 0.06963973, -0.15423518, -0.11466563, -0.029716264, 0.013005757) * input_1(1.0, -1.0);
|
||
|
result += mat4(-0.008020656, -0.08255006, 0.0014087299, -0.091647804, -0.04927624, 0.20365483, 0.1595683, -0.0904643, -0.058863267, 0.1911852, -0.00067757885, 0.053104438, 0.020814873, -0.06446546, 0.017308708, 0.0045368574) * input_1(1.0, 0.0);
|
||
|
result += mat4(-0.024673965, -0.029654598, -0.008640672, -0.05082047, -0.061138857, 0.019959498, 0.002433467, -0.03958264, -0.033166174, 0.045964558, -0.030284842, -0.0068844035, 0.07042402, -0.029122148, -0.0428049, 0.026324365) * input_1(1.0, 1.0);
|
||
|
result += mat4(-0.13324606, -0.033446807, -0.112909414, 0.07027874, 0.014373669, 0.1334734, -0.13269733, -0.053051304, -0.14472198, -0.058649812, 0.37368444, -0.03659651, 0.04819917, -0.027763734, -0.054269504, 0.019169461) * input_2(-1.0, -1.0);
|
||
|
result += mat4(0.103031866, -0.1103813, -0.033109676, -0.07772794, -0.038271077, -0.016347917, -0.024113327, 0.018909058, -0.7986624, 0.03572236, 0.14990598, -0.4590326, -0.030368613, -0.20974495, 0.111843035, -0.09153426) * input_2(-1.0, 0.0);
|
||
|
result += mat4(0.004524962, -0.048812192, 0.05542461, 0.0734991, 0.0045549334, -0.02259293, 0.11283801, 0.104592785, -0.57395726, -0.028778156, -0.37942833, -0.21894723, -0.07521297, -0.104661725, -0.019035116, 0.049506795) * input_2(-1.0, 1.0);
|
||
|
result += mat4(0.112219915, 0.13167465, 0.09262688, -0.008718717, -0.041592427, -0.012222687, -0.057447452, -0.09209324, -0.17835036, 0.05539225, 0.028523324, 0.24207544, 0.022380646, 0.029243259, -0.16183938, 0.014728253) * input_2(0.0, -1.0);
|
||
|
result += mat4(0.1467023, 0.0143815875, 0.0052571627, 0.12313276, -0.047473945, -0.011159074, 0.032128796, 0.016449373, -0.001547712, 0.18990788, -0.15117007, 0.22657698, -0.092446014, 0.07480804, -0.2142641, 0.0143916) * input_2(0.0, 0.0);
|
||
|
result += mat4(-0.08523618, -0.082943045, 0.005177918, -0.024533909, -0.087084986, 0.059123907, 0.059857767, -0.07549224, 0.15535766, -0.07271496, 0.08865915, 0.19221433, 0.09545128, -0.048648886, 0.07513749, -0.0010660125) * input_2(0.0, 1.0);
|
||
|
result += mat4(0.10143337, -0.06397871, 0.10206847, 0.095585294, -0.068966895, 0.059315838, 0.07574963, 0.11673472, 0.015949871, -0.024368519, -0.05648502, -0.011380777, 0.053556878, 0.07940152, -0.08536346, -0.01926622) * input_2(1.0, -1.0);
|
||
|
result += mat4(0.1305963, 0.11611665, -0.02373274, 0.017020227, 0.0630165, 0.0303326, -0.10986259, 0.012373711, -0.05705737, -0.030343313, 0.06253064, 0.027428111, -0.07196486, 0.14587478, 0.1307031, 0.07282882) * input_2(1.0, 0.0);
|
||
|
result += mat4(-0.08237509, -0.06809056, -0.031511094, -0.022001782, 0.10953571, 0.045134984, -0.025877856, -0.03889897, 0.047186974, -0.013981416, -0.013088895, 0.06202334, 0.22331925, -0.10197979, -0.0030953977, -0.06180075) * input_2(1.0, 1.0);
|
||
|
result += mat4(0.1473393, 0.068073414, -0.00849525, 0.011856704, 0.14913265, -0.14074652, -0.045142166, 0.10191227, -0.02526876, 0.07887591, -0.049507286, -0.049732037, -0.003418563, 0.0100829685, -0.075972915, 0.041150223) * input_3(-1.0, -1.0);
|
||
|
result += mat4(0.11492118, 0.11400181, 0.044958964, -0.04409572, -0.01705192, -0.21601407, -0.11749134, -0.01078356, -0.035516415, 0.16148598, -0.047935735, -0.0038967566, -0.008681939, -0.025825895, 0.03564421, 0.060060818) * input_3(-1.0, 0.0);
|
||
|
result += mat4(0.04630809, 0.097482465, 0.0983307, -0.041268956, -0.06482189, -0.3761496, 0.28984708, 0.097405314, 0.15801673, 0.30867153, -0.20084113, -0.033199985, -0.031870924, -0.059606146, 0.008587568, -0.023827776) * input_3(-1.0, 1.0);
|
||
|
result += mat4(-0.1551276, 0.09719839, 0.17554323, 0.013390713, -0.15466022, -0.14600702, 0.16853645, 0.08821072, 0.09985342, 0.16678153, -0.048611052, -0.0614707, -0.21867286, -0.16723537, 0.23475552, 0.025780156) * input_3(0.0, -1.0);
|
||
|
result += mat4(0.08023947, -0.69400173, 0.30601034, -0.020594774, -0.30658725, -0.7922505, -0.24568322, -0.37919128, 0.3425946, 0.6623516, 0.25376338, 0.26313066, -0.109052844, -0.2993776, -0.3621675, 0.17550938) * input_3(0.0, 0.0);
|
||
|
result += mat4(0.071950994, -0.026562111, 0.0002568412, 0.06541712, -0.2516668, -0.078616634, -0.33585915, 0.0075386763, 0.052653354, 0.19672461, 0.16207367, -0.0776302, -0.10989679, -0.09278028, -0.052797936, 0.09305418) * input_3(0.0, 1.0);
|
||
|
result += mat4(-0.07068745, 0.09446235, 0.010078996, -0.0016798693, -0.020590777, -0.1526741, -0.12566169, -0.08718724, -0.052001327, 0.092551924, 0.042062324, 0.013329289, -0.22045879, -0.28511304, 0.15821631, 0.036087867) * input_3(1.0, -1.0);
|
||
|
result += mat4(-0.3229405, -0.101510115, 0.0024103115, -0.02992146, -0.17554843, -0.049400408, 0.052737318, 0.12779652, 0.25576246, 0.11726127, -0.0252291, -0.051125318, -0.08654572, -0.5174181, -0.32456046, -0.3683765) * input_3(1.0, 0.0);
|
||
|
result += mat4(-0.11464781, 0.06158182, 0.046923183, 0.04975705, 0.038364194, -0.15467784, 0.019909486, 0.06483708, 0.030391747, 0.0884499, 0.070137925, 0.0037668955, -0.17386416, -0.028588526, -0.17951734, -0.050753336) * input_3(1.0, 1.0);
|
||
|
result += vec4(-0.008561534, -0.010736708, -0.0036514427, -0.028345084);
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
//!DESC ArtCNN C4F16 (Conv-5)
|
||
|
//!HOOK LUMA
|
||
|
//!BIND conv2d_4_tf
|
||
|
//!BIND conv2d_4_tf1
|
||
|
//!BIND conv2d_4_tf2
|
||
|
//!BIND conv2d_4_tf3
|
||
|
//!SAVE conv2d_5_tf1
|
||
|
//!WIDTH LUMA.w
|
||
|
//!HEIGHT LUMA.h
|
||
|
//!COMPONENTS 4
|
||
|
//!WHEN OUTPUT.w LUMA.w / 1.3 > OUTPUT.h LUMA.h / 1.3 > *
|
||
|
#define input_0(x_off, y_off) (conv2d_4_tf_texOff(vec2(x_off, y_off)))
|
||
|
#define input_1(x_off, y_off) (conv2d_4_tf1_texOff(vec2(x_off, y_off)))
|
||
|
#define input_2(x_off, y_off) (conv2d_4_tf2_texOff(vec2(x_off, y_off)))
|
||
|
#define input_3(x_off, y_off) (conv2d_4_tf3_texOff(vec2(x_off, y_off)))
|
||
|
vec4 hook() {
|
||
|
vec4 result = mat4(0.11620672, -0.07166609, 0.016798865, 0.08401987, -0.18524526, 0.1084502, -0.08925312, -0.10202873, 0.1177629, 0.023233103, 0.01394666, 0.07836272, 0.0026332173, -0.23849802, 0.18449073, -0.06515253) * input_0(-1.0, -1.0);
|
||
|
result += mat4(0.14370523, -0.0022098261, 0.1851766, 0.06871087, -0.10218498, 0.14527902, 0.024207406, -0.13617748, -0.08945976, -0.068607315, 0.11841024, -0.0062393993, -0.026527124, 0.060801577, -0.15409683, 0.11278634) * input_0(-1.0, 0.0);
|
||
|
result += mat4(-0.066736795, 0.04918463, 0.053987686, 0.030998068, -0.06535727, -0.0011864441, -0.016558861, 0.043760967, -0.050048754, 0.095977105, 0.12773128, -0.021533247, 0.10400867, -0.11285867, 0.022326827, -0.011911449) * input_0(-1.0, 1.0);
|
||
|
result += mat4(-0.11849691, -0.68104404, -0.11852768, 0.97617507, -0.18003926, -0.11384007, 0.35453534, -0.32608548, -0.11792822, -0.09166521, 0.10262236, -0.029014926, -0.021265801, -0.018718062, 0.07043664, 0.13210176) * input_0(0.0, -1.0);
|
||
|
result += mat4(0.22330447, 0.05316329, -0.20317215, -0.26259226, -0.45833525, 0.2454562, 0.029027697, 0.2764134, 0.26590282, 0.06907284, 0.19385473, -0.047886163, -0.19999208, -0.02517195, -0.07484927, 0.22998434) * input_0(0.0, 0.0);
|
||
|
result += mat4(0.13320091, -0.032225918, -0.014095324, -0.01089878, -0.2736936, 0.13794877, -0.23005189, -0.048543684, -0.032071494, -0.11436605, -0.11234472, -0.05957455, -0.00017396435, 0.07757498, -0.17387052, -0.13497026) * input_0(0.0, 1.0);
|
||
|
result += mat4(-1.1408613, -0.8000373, 0.2935792, 0.5857513, -0.46425584, 0.19091494, 0.098817125, -0.070086524, 0.10861455, -0.0384914, -0.02102072, 0.10492839, -0.23424001, -0.048539933, 0.02182538, 0.08010565) * input_0(1.0, -1.0);
|
||
|
result += mat4(0.14387573, -0.2757515, 0.025449699, 0.18604033, -0.5714203, 0.2914155, 0.023735872, 0.12653588, 0.09366982, -0.0046158396, -0.25545183, -0.01420278, -0.020595344, -0.057480432, 0.38762775, 0.25573575) * input_0(1.0, 0.0);
|
||
|
result += mat4(-0.038004167, -0.050437763, -0.05982076, -0.027243301, -0.14567463, 0.0975796, 0.16311973, 0.049900193, -0.13719194, -0.014836006, 0.054110046, 0.15550926, 0.1081008, -0.015565591, -0.12495359, -0.17295879) * input_0(1.0, 1.0);
|
||
|
result += mat4(-0.018405138, 0.05594843, -0.017750861, -0.07872526, 0.12275071, 0.12474919, 0.02999329, 0.13333192, 0.36653888, 0.043739293, 0.0679797, 0.08041973, -0.03425395, 0.14790797, -0.041653004, 0.01867917) * input_1(-1.0, -1.0);
|
||
|
result += mat4(-0.122790694, 0.053692315, 0.09632, 0.28426927, 0.08565574, -0.090392835, -0.07657671, -0.004535826, 0.12811323, -0.21853115, -0.16674866, 0.13581844, -0.102630265, -0.031938255, 0.16908145, 0.09100338) * input_1(-1.0, 0.0);
|
||
|
result += mat4(-0.06821126, -0.0017205048, -0.06403341, -0.08478995, 0.008017445, 0.012503662, -0.017505154, -0.04632007, 0.0565219, 0.015270812, -0.06881336, -0.06355902, 0.05988971, 0.023348816, 0.09464502, 0.24822949) * input_1(-1.0, 1.0);
|
||
|
result += mat4(-0.11416074, 0.09896785, 0.11778823, -0.08890084, -0.060525727, -0.20458055, -0.252127, -0.012400734, 0.034221105, 0.24326842, -0.3542155, -0.107962124, 0.04617192, 0.08805164, 0.14527088, -0.072829515) * input_1(0.0, -1.0);
|
||
|
result += mat4(-0.36583942, -0.11659717, -0.2222592, 0.36047506, -0.03452521, -0.13616572, -0.1159302, 0.10065252, -0.007228186, 0.25099555, 0.42881015, 0.56868917, 0.021251434, 0.28128645, 0.17818673, -0.49401578) * input_1(0.0, 0.0);
|
||
|
result += mat4(0.023798054, 0.034982447, 0.14063333, -0.15382242, 0.14360158, 0.059043404, -0.06127281, -0.110966355, -0.031447463, 0.012576445, -0.018748414, 0.0069989907, -0.19812663, -0.2709568, 0.009371738, 0.19483033) * input_1(0.0, 1.0);
|
||
|
result += mat4(0.018809076, 0.0054023187, -0.039936952, -0.14673415, -0.10656782, 0.24899592, 0.18819377, -0.14612278, 0.24737522, 0.13287938, 0.06375341, -0.08614547, 0.17334378, 0.030006947, -0.042390943, 0.024833731) * input_1(1.0, -1.0);
|
||
|
result += mat4(0.08306147, -0.3194356, -0.02942635, 0.14555529, -0.17013326, 0.11017062, 0.121966094, 0.22148238, -0.0616948, 0.17920256, -0.034203243, -0.042123944, -0.11464506, -0.1199692, -0.36924988, -0.057585776) * input_1(1.0, 0.0);
|
||
|
result += mat4(0.048344802, -0.11851316, 0.04488295, 0.054266974, -0.04520225, -0.037596, 0.06139073, 0.120330885, -0.004778854, 0.042909004, -0.013525455, -0.045597937, -0.012306806, 0.10685644, -0.05520265, -0.16057563) * input_1(1.0, 1.0);
|
||
|
result += mat4(0.105536275, 0.12621576, 0.02584647, 0.015119655, 0.093665816, 0.11627944, 0.024078015, -0.06234521, 0.22099428, 0.0669108, -0.0093148565, -0.48636547, -0.15181567, -0.07822599, 0.024743285, 0.06761235) * input_2(-1.0, -1.0);
|
||
|
result += mat4(0.06506267, 0.055922512, 0.038820665, 0.09900323, 0.0051986417, 0.123581104, 0.0071629854, -0.119981505, 0.24421036, -0.41111565, 0.41847444, -0.56427914, 0.1747026, -0.1698947, 0.12238787, 0.29296106) * input_2(-1.0, 0.0);
|
||
|
result += mat4(0.033412375, -0.11648537, 0.06532859, -0.12930563, 0.05744003, -0.015933828, -0.13820995, 0.013073464, -0.113216534, 0.03805191, -0.08172819, -0.81760204, 0.047267776, 0.009581093, 0.17715345, 0.14502302) * input_2(-1.0, 1.0);
|
||
|
result += mat4(-0.11467407, 0.04120272, 0.06635711, 0.119070716, -0.09202781, 0.009393547, -0.022956574, -0.06135075, 0.07507639, 0.20452999, 0.061662182, 0.1282455, 0.083044186, -0.009667589, 0.087405905, 0.0154515095) * input_2(0.0, -1.0);
|
||
|
result += mat4(-0.11970592, -0.022174682, 0.026858646, 0.038090408, -0.12121364, -0.07789117, 0.011117795, -0.04363783, -0.011668041, 0.2724732, -0.14060675, 0.060313452, 0.27553955, 0.20300175, -0.28137198, 0.83166826) * input_2(0.0, 0.0);
|
||
|
result += mat4(-0.060711503, -0.009081539, -0.09142077, 0.07995079, 0.01567142, -0.09954281, 0.067456305, -0.095214024, 0.0039593307, 0.13956612, 0.08017394, -0.18512501, -0.10788834, 0.20629235, -0.066124454, 0.68727213) * input_2(0.0, 1.0);
|
||
|
result += mat4(0.0029821466, 0.013863622, -0.07215199, -0.019579345, 0.11156738, -0.12797317, -0.041157566, 0.121549495, 0.0057683927, -0.04251135, 0.03961841, 0.1108354, 0.00623857, 0.10440568, 0.063467816, 0.15003876) * input_2(1.0, -1.0);
|
||
|
result += mat4(0.058442198, -0.09687198, 0.10338267, 0.018356383, -0.069184266, -0.13827951, -0.11756042, 0.1119464, -0.002709427, -0.020051656, -0.08329414, 0.11897125, 0.027325338, 0.27524182, 0.00026887126, 0.44342774) * input_2(1.0, 0.0);
|
||
|
result += mat4(0.0865957, -0.11710656, 0.0043588, -0.060874727, -0.06835302, -0.049697027, 0.006917258, -0.057564273, -0.007994377, 0.07839539, 0.041361745, -0.2419306, -0.25169414, -0.07110184, 0.21902202, 0.39311782) * input_2(1.0, 1.0);
|
||
|
result += mat4(0.05995874, 0.26111454, -0.18428615, -0.16038515, 0.14701268, -0.0057207136, -0.13439575, 0.12866907, -0.12487326, 0.07188348, -0.05656155, -0.03303301, 0.07921935, -0.048051324, 0.029552538, 0.15343755) * input_3(-1.0, -1.0);
|
||
|
result += mat4(0.07418703, 0.13386989, -0.23733522, -0.4224567, 0.46631223, -0.21824783, -0.37972137, -0.10416024, -0.3570401, -0.089862265, 0.31087413, -0.24356923, 0.087839246, -0.0575723, 0.030086888, 0.052808672) * input_3(-1.0, 0.0);
|
||
|
result += mat4(-0.124219246, 0.057535615, -0.07534766, 0.021747299, 0.35573968, 0.0625326, 0.48935717, -0.018434867, -0.27310714, -0.09978724, -0.47170755, 0.15432087, 0.04081072, -0.035073306, 0.034327127, -0.0053897426) * input_3(-1.0, 1.0);
|
||
|
result += mat4(-0.005511049, 0.016390583, -0.43140572, -0.14498323, 0.091800496, -0.056679707, -0.19164917, 0.007343154, 0.03145473, 0.07776903, 0.027928004, -0.06307849, 0.49115306, -0.12908004, 0.12990196, 0.22315605) * input_3(0.0, -1.0);
|
||
|
result += mat4(0.009882551, -0.29740945, 0.21795943, -1.1184156, 0.85523105, 0.20578904, 0.46131387, -0.07440825, -0.75795054, -0.11467875, -0.005511393, -0.39389387, 0.55778235, 0.1776355, -0.25288254, -0.10307776) * input_3(0.0, 0.0);
|
||
|
result += mat4(0.13138032, -0.10797582, 0.093361184, -0.5188534, 0.35447845, -0.078562394, -0.31558073, -0.115456544, -0.24717133, -0.0014449308, 0.15146896, 0.26895273, 0.3528613, -0.18125504, 0.22717157, -0.038584117) * input_3(0.0, 1.0);
|
||
|
result += mat4(0.0360428, 0.05310934, -0.07839323, -0.1929596, 0.041828997, -0.17595892, -0.010438185, 0.17401633, 0.02159319, 0.1519447, -0.013968076, -0.075568974, 0.19837867, -0.044670466, 0.038285576, -0.026905341) * input_3(1.0, -1.0);
|
||
|
result += mat4(-0.08895189, 0.04721844, -0.18818091, -0.6699688, 0.04694463, 0.23192744, -0.16578667, -0.2067046, -0.28728023, 0.0003652341, 0.13564838, 0.014000809, 0.8360658, -0.6334118, 0.090585746, 0.18795776) * input_3(1.0, 0.0);
|
||
|
result += mat4(0.18654186, 0.1576009, 0.0576424, -0.20346037, -0.04549446, 0.05240639, 0.107720055, 0.19955778, 0.015320273, 0.0086539965, -0.08495218, -0.03297138, 0.12847276, -0.23686723, -0.27751663, -0.17718613) * input_3(1.0, 1.0);
|
||
|
result += vec4(-0.021050075, 0.0028198971, -0.001477746, -0.0016958545);
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
//!DESC ArtCNN C4F16 (Conv-5)
|
||
|
//!HOOK LUMA
|
||
|
//!BIND conv2d_4_tf
|
||
|
//!BIND conv2d_4_tf1
|
||
|
//!BIND conv2d_4_tf2
|
||
|
//!BIND conv2d_4_tf3
|
||
|
//!SAVE conv2d_5_tf2
|
||
|
//!WIDTH LUMA.w
|
||
|
//!HEIGHT LUMA.h
|
||
|
//!COMPONENTS 4
|
||
|
//!WHEN OUTPUT.w LUMA.w / 1.3 > OUTPUT.h LUMA.h / 1.3 > *
|
||
|
#define input_0(x_off, y_off) (conv2d_4_tf_texOff(vec2(x_off, y_off)))
|
||
|
#define input_1(x_off, y_off) (conv2d_4_tf1_texOff(vec2(x_off, y_off)))
|
||
|
#define input_2(x_off, y_off) (conv2d_4_tf2_texOff(vec2(x_off, y_off)))
|
||
|
#define input_3(x_off, y_off) (conv2d_4_tf3_texOff(vec2(x_off, y_off)))
|
||
|
vec4 hook() {
|
||
|
vec4 result = mat4(0.05524473, -0.0667916, -0.3000911, 0.02167059, 0.0028873049, 0.022900913, 0.0036229386, -0.08464543, -0.014186343, -0.013440237, 0.041881744, 0.0182706, -0.06948529, 0.0642832, -0.088708356, -0.0025486597) * input_0(-1.0, -1.0);
|
||
|
result += mat4(0.0947312, 0.048634354, -0.100629695, 0.09609757, 0.025036784, -0.030778313, 0.0062699276, 0.12808807, -0.02038122, -0.06571226, 0.09805566, 0.07442049, -0.086464755, 0.055390276, -0.110451, -0.09128145) * input_0(-1.0, 0.0);
|
||
|
result += mat4(0.015977515, -0.027449373, 0.019414628, 0.013050486, 0.020162152, -0.0027879283, -0.06776932, -0.038381636, 0.03767735, -0.02421142, 0.019793546, 0.029325916, -0.02345039, -0.021164848, -0.038009364, 0.03785244) * input_0(-1.0, 1.0);
|
||
|
result += mat4(-0.84259033, 0.4131681, -0.71056443, -0.09588365, -0.048146717, -0.042147603, -0.10238791, -0.033213884, -0.18008235, -0.09903034, -0.0459647, -0.11683955, -0.046164155, 0.17665514, 0.21013917, 0.15165651) * input_0(0.0, -1.0);
|
||
|
result += mat4(-0.030031394, -0.019065296, -0.11269828, -0.04241153, -0.008641772, -0.046083555, -0.044769153, 0.1328026, 0.39883274, -0.21164253, -0.23741508, -0.37070394, -0.7161262, 0.2587036, 0.10124371, 0.66096514) * input_0(0.0, 0.0);
|
||
|
result += mat4(0.07837756, 0.1265725, 0.031547125, -0.034877535, -0.17059824, -0.054361667, 0.21026325, -0.0675548, 0.11604191, 0.033859152, 0.1568287, 0.06324872, -0.21110383, -0.1253772, -0.17785104, -0.061070453) * input_0(0.0, 1.0);
|
||
|
result += mat4(-0.94861287, 0.02634229, -0.3868105, -0.4657192, -0.21818411, -0.038770005, 0.30729434, -0.14093232, 0.027960857, -0.017519698, -0.076069705, -0.052961748, -0.16139063, 0.0025874348, -0.02580577, -0.018798918) * input_0(1.0, -1.0);
|
||
|
result += mat4(-0.2502853, 0.04251326, 0.19691297, -0.1582134, -0.11986778, -0.07195275, -0.2973344, -0.15731081, -0.056869987, -0.003900633, 0.0013445631, 0.12527932, -0.049660824, -0.10799597, 0.011769744, -0.1284325) * input_0(1.0, 0.0);
|
||
|
result += mat4(-0.030990627, -0.008264894, -0.05291376, 0.03324887, -0.10359455, -0.00487279, 0.045066934, -0.18632278, -0.21714912, 0.007073333, -0.049049374, -0.12080105, 0.20964453, -0.056006454, 0.057609025, 0.090637565) * input_0(1.0, 1.0);
|
||
|
result += mat4(-0.014734789, -0.0036884148, 0.099473625, -0.017171016, 0.23650359, 0.04769212, -0.0366546, 0.020758348, 0.20002359, -0.072923414, 0.035961885, 0.11578268, -0.0013680827, -0.026566334, 0.045733403, -0.05675111) * input_1(-1.0, -1.0);
|
||
|
result += mat4(0.01935697, 0.052395247, 0.05878551, 0.17796911, 0.09003429, 0.023981722, -0.022076063, 0.16361256, 0.058803424, 0.058327712, 0.089604154, 0.045762774, 0.053222064, -0.04987132, 0.05343684, 0.08233241) * input_1(-1.0, 0.0);
|
||
|
result += mat4(-0.01148851, -0.022736425, -0.006313116, -0.058387443, -0.01957739, -0.0065977303, -0.0022609471, 0.018797193, 0.0024863991, 0.03167508, -0.023996169, 0.038474478, 0.08517649, 0.023568416, 0.046184357, 0.0684637) * input_1(-1.0, 1.0);
|
||
|
result += mat4(0.058782097, -0.10352451, 0.047953423, -0.056325052, -0.08249853, 0.05866386, -0.28232586, 0.18433736, 0.11180381, -0.103037655, -0.1224463, -0.2041405, 0.0934141, -0.16842271, -0.025474627, -0.084549524) * input_1(0.0, -1.0);
|
||
|
result += mat4(0.1883069, -0.061336964, -0.09074995, -0.12679797, 0.002628768, 0.27104017, 0.16964148, 0.028769646, -0.01615524, 0.14440227, -0.20361924, -0.097613215, 0.36576748, -0.15430012, 0.1165951, -0.6712392) * input_1(0.0, 0.0);
|
||
|
result += mat4(-0.04739041, 0.11987302, 0.025757954, -0.11702658, 0.030169941, 0.061426245, -0.052347437, 0.061979927, 0.05300359, -0.082924955, -0.039371613, 0.14032255, 0.06823372, 0.036917325, 0.13913342, -0.3361507) * input_1(0.0, 1.0);
|
||
|
result += mat4(-0.067194596, -0.007773725, -0.01199297, 0.011779647, 0.075996645, 0.015421487, 0.21754883, -0.0073604863, 0.14576024, 0.14825101, 0.0950573, -0.046230204, 0.12083774, -0.011615645, -0.06715824, -0.036269985) * input_1(1.0, -1.0);
|
||
|
result += mat4(-0.1618962, -0.087997384, -0.0005716333, 0.090981856, 0.14101754, -0.003310714, -0.14879407, -0.014678433, 0.034171335, -0.0108575225, 0.030518042, 0.0120707825, -0.042162452, -0.016560499, 0.0051943855, 0.2604947) * input_1(1.0, 0.0);
|
||
|
result += mat4(0.03140575, 0.018510593, -0.029395252, 0.07348009, 0.057082113, -0.0039758272, -0.04227093, 0.0035143853, 0.042441085, 0.0050908695, 0.010615335, 0.016323235, -0.16987045, -0.024013652, 0.01971102, 0.052138958) * input_1(1.0, 1.0);
|
||
|
result += mat4(0.06369238, 0.07899599, 0.026635488, -0.011609335, -0.038466237, 0.0031375866, 0.09313496, -0.012264274, 0.1480553, -0.12687096, 0.37386757, 0.09909889, -0.20447761, 0.009471602, -0.03987589, -0.02045216) * input_2(-1.0, -1.0);
|
||
|
result += mat4(-0.0594791, -0.10166854, 0.11003881, 0.05295516, 0.12280565, -0.04542026, -0.070073076, -0.06733523, 0.029801063, -0.21720155, 0.30599138, 0.101704024, 0.04663348, -0.05168479, 0.08104386, 0.006714815) * input_2(-1.0, 0.0);
|
||
|
result += mat4(-0.01627919, -0.106728695, 0.12376904, 0.06674408, 0.036630426, -0.086311385, 0.0041018836, 0.040587097, -0.21445535, -0.2461732, 0.30646253, 0.10967362, -0.0701094, -0.0111726895, -0.06489085, 0.037748005) * input_2(-1.0, 1.0);
|
||
|
result += mat4(0.029582204, 0.059894823, -0.0048795203, 0.11652986, -0.13527049, -0.07610909, 0.10299331, 0.09916917, 0.047236383, 0.10910026, 0.26350608, -0.14098229, 0.11681667, -0.060931712, -0.24500358, -0.07971718) * input_2(0.0, -1.0);
|
||
|
result += mat4(-0.07526433, 0.08082024, -0.13167612, -0.057485044, 0.08009925, 0.040689036, 0.14244555, 0.12358441, -0.077419974, -0.062015664, -0.37106803, 0.46544093, 0.9467673, 0.10874272, -0.16238369, 0.3102845) * input_2(0.0, 0.0);
|
||
|
result += mat4(0.08327275, 0.011768871, 0.03202972, 0.04153243, -0.08772739, 0.12899557, -0.060504317, 0.06513019, -0.20164938, -0.017682714, 0.11101318, -0.33648723, -0.042457454, 0.03040569, -0.04061924, 0.1378731) * input_2(0.0, 1.0);
|
||
|
result += mat4(0.06970164, 0.008834118, 0.12718791, -0.001975104, -0.037724927, -0.11127517, 0.09421513, 0.13308495, 0.008518448, -0.00084691, -0.05584334, -0.0082096625, 0.033335943, -0.0117445635, 0.050546076, 0.047877077) * input_2(1.0, -1.0);
|
||
|
result += mat4(-0.07696538, 0.06270772, 0.03349213, 0.11683603, -0.046743155, 0.117641464, -0.13395864, -0.12237298, 0.038061343, 0.03972676, -0.047299456, 0.07467395, 0.20574303, -0.004938916, -0.26324528, 0.15945892) * input_2(1.0, 0.0);
|
||
|
result += mat4(-0.105241254, -0.059888296, -0.07640773, -0.10091299, 0.12507796, -0.027954014, 0.061488777, -0.084328875, -0.060236663, 0.015917376, 0.09155815, -0.054003168, -0.11026015, 0.079962924, -0.001815231, -0.395384) * input_2(1.0, 1.0);
|
||
|
result += mat4(0.29209325, -0.04219883, 0.06469501, -0.015804647, -0.06849075, -0.038298123, 0.019017762, 0.08605765, 0.07685325, 0.014458804, -0.05005858, -0.071524024, 0.004612375, 0.025481056, -0.003610404, 0.030063381) * input_3(-1.0, -1.0);
|
||
|
result += mat4(0.10021397, -0.018431772, -0.018852504, -0.052782144, -0.021359582, -0.09910644, 0.14092757, -0.25389844, -0.06636962, 0.119866095, -0.08545922, 0.06766828, -0.03860286, 0.008681647, -0.034920678, -0.049635693) * input_3(-1.0, 0.0);
|
||
|
result += mat4(0.030144034, 0.0033674012, 0.01022901, -0.040631622, -0.033324428, -0.041420434, -0.117296524, 0.2789559, 0.06977705, 0.093143135, 0.0656848, -0.26395866, 0.011936789, 0.017104927, 0.028683754, 0.009772685) * input_3(-1.0, 1.0);
|
||
|
result += mat4(-0.0038137164, 0.06693708, 0.06822864, 0.14117034, -0.15863091, 0.0801519, -0.01449114, -0.044465415, 0.1997454, -0.042976994, 0.022475714, 0.12246432, 0.037659075, 0.10601709, 0.07363279, 0.24976866) * input_3(0.0, -1.0);
|
||
|
result += mat4(-0.555252, -0.0181416, 0.40835926, -0.41538748, 0.31658173, 0.24267572, 0.46846995, 0.113275126, -0.54049635, -0.20767193, -0.18474561, -0.11903197, -0.27565664, 0.03245435, 0.31244245, -0.07869926) * input_3(0.0, 0.0);
|
||
|
result += mat4(0.021330925, 0.06554978, 0.12858088, -0.14124236, 0.010575496, -0.1355255, -0.12746964, 0.2609186, 0.044923622, -0.066820614, -0.0031936893, 0.08364251, 0.19317617, 0.114075005, -0.22013324, 0.100840345) * input_3(0.0, 1.0);
|
||
|
result += mat4(0.120038114, 0.009079228, 0.10427249, 0.11803746, 0.0056122625, 0.022308474, -0.106914066, -0.00044519582, 0.09010509, 0.0033150713, 0.08999481, 0.033849515, 0.14906257, 0.06395106, -0.20337391, -0.28858158) * input_3(1.0, -1.0);
|
||
|
result += mat4(0.13264415, 0.1524477, 0.18256012, -0.037509553, 0.15709375, 0.10466825, 0.1500478, -0.20207055, -0.14051588, -0.08964206, -0.15027244, -0.021869713, 0.11592324, 0.014036955, 0.3572427, 0.097556956) * input_3(1.0, 0.0);
|
||
|
result += mat4(0.07814479, -0.039219707, -0.003275025, 0.36893007, -0.051538408, 0.09383647, 0.02611574, -0.26481035, 0.03172978, -0.06959587, -0.027879184, 0.12591428, 0.058372088, 0.006376661, -0.09917929, 0.12497047) * input_3(1.0, 1.0);
|
||
|
result += vec4(0.016231291, -0.016520541, 0.0015194294, 0.002505709);
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
//!DESC ArtCNN C4F16 (Conv-5)
|
||
|
//!HOOK LUMA
|
||
|
//!BIND conv2d_4_tf
|
||
|
//!BIND conv2d_4_tf1
|
||
|
//!BIND conv2d_4_tf2
|
||
|
//!BIND conv2d_4_tf3
|
||
|
//!SAVE conv2d_5_tf3
|
||
|
//!WIDTH LUMA.w
|
||
|
//!HEIGHT LUMA.h
|
||
|
//!COMPONENTS 4
|
||
|
//!WHEN OUTPUT.w LUMA.w / 1.3 > OUTPUT.h LUMA.h / 1.3 > *
|
||
|
#define input_0(x_off, y_off) (conv2d_4_tf_texOff(vec2(x_off, y_off)))
|
||
|
#define input_1(x_off, y_off) (conv2d_4_tf1_texOff(vec2(x_off, y_off)))
|
||
|
#define input_2(x_off, y_off) (conv2d_4_tf2_texOff(vec2(x_off, y_off)))
|
||
|
#define input_3(x_off, y_off) (conv2d_4_tf3_texOff(vec2(x_off, y_off)))
|
||
|
vec4 hook() {
|
||
|
vec4 result = mat4(0.2771764, 0.6401074, -0.20928246, -0.113468945, -0.15070915, 0.01752573, -0.019200685, -0.028774904, 0.041823074, -0.09956777, 0.057845984, 0.011781144, 0.009519775, -0.1047417, 0.0051616966, 0.08448847) * input_0(-1.0, -1.0);
|
||
|
result += mat4(-0.008735068, -0.038691547, -0.069758885, 0.10533395, 0.048371565, 0.2087821, 0.0019071676, -0.06624372, -0.01736168, -0.07306317, 0.031156693, 0.0019889183, 0.05619178, 0.10534817, -0.02672096, 0.102267385) * input_0(-1.0, 0.0);
|
||
|
result += mat4(-0.04668396, -0.014972603, 0.00727557, 0.0017531166, 0.010286051, 0.005015186, -0.00415501, 0.009570118, -0.031961374, 0.020339994, 0.0022812837, 0.013603937, 0.10375876, 0.008862758, -0.0026624887, 0.020903835) * input_0(-1.0, 1.0);
|
||
|
result += mat4(0.28749743, 0.5493481, -0.042483546, -0.09593276, 0.06428901, -0.14492697, 0.08667672, 0.050388493, 0.33010384, -0.09609445, 0.15633489, 0.04550801, -0.4155936, 0.21773514, -0.09817866, -0.027543988) * input_0(0.0, -1.0);
|
||
|
result += mat4(0.06314971, -0.027788188, -0.33872965, -0.10957314, -0.12108172, 0.50725716, -0.04574458, -0.028694812, 0.6771646, -0.16639072, 0.09916935, 0.10931123, -0.535734, 0.13609628, 0.06855844, -0.07915432) * input_0(0.0, 0.0);
|
||
|
result += mat4(0.1001686, -0.068239145, -0.044523455, 0.049428374, -0.05356298, 0.06976199, 0.046529908, 0.07510917, 0.31258166, -0.14546792, -0.008059539, 0.07785772, -0.109282024, 0.17841709, 0.09155765, -0.096586585) * input_0(0.0, 1.0);
|
||
|
result += mat4(0.24579614, 0.8386661, 0.4027017, 0.14093505, -0.12551308, 0.11846152, -0.0059761154, -0.0461906, 0.150016, -0.0189197, 0.042567085, 0.03438574, -0.15011139, 0.13628843, 0.025758265, -0.03085819) * input_0(1.0, -1.0);
|
||
|
result += mat4(-0.1458051, 0.074560866, 0.026160985, 0.09965958, 0.18261929, 0.2258265, 0.10552282, 0.010616196, 0.1982569, -0.059004165, 0.013974606, 0.113233134, -0.3875601, -0.18731022, 0.13695876, -0.14713162) * input_0(1.0, 0.0);
|
||
|
result += mat4(-0.04415056, 0.06844369, -0.021301994, -0.046109516, 0.091703594, 0.062078893, 0.07849192, 0.113701366, 0.06802915, 0.013437539, 0.09929342, 0.13158733, 0.10158841, 0.03700085, -0.022036629, -0.16224448) * input_0(1.0, 1.0);
|
||
|
result += mat4(-0.116746396, -0.100723214, 0.05149954, -0.0040269727, -0.018534632, -0.0494567, -0.13099751, -0.042665284, 0.13824077, -0.013633935, -0.027629608, -0.030217638, 0.03468211, -0.09247085, 0.043454014, -0.047935136) * input_1(-1.0, -1.0);
|
||
|
result += mat4(0.03006243, 0.13192111, 0.053666584, -0.006484922, -0.1667873, -0.13452955, -0.073102206, -0.04176692, -0.05157196, -0.13562924, -0.13079861, -0.048835453, 0.1316127, -0.20216465, 0.064409524, -0.09217371) * input_1(-1.0, 0.0);
|
||
|
result += mat4(-0.03420241, -0.045786034, 0.0106811235, 0.0031556136, -0.05460036, -0.003927943, -0.016358268, -0.0013315772, -0.07009565, 0.010116049, -0.060428083, 0.007720511, 0.1002914, -0.019306196, 0.012091979, 0.004911897) * input_1(-1.0, 1.0);
|
||
|
result += mat4(0.114089355, 0.074583076, 0.07633647, 0.0028577098, -0.18226856, 0.19407237, -0.11645545, -0.050397813, -0.20310204, 0.34278673, -0.112984575, 0.008046292, 0.29857296, -0.15709884, 0.0499911, -0.06917754) * input_1(0.0, -1.0);
|
||
|
result += mat4(0.56503576, -0.6686401, 0.032851703, -0.06234977, -0.5628307, -0.016276056, -0.35473382, -0.0666202, -0.10591021, -0.06883188, 0.011637987, 0.1411783, 0.5552654, -0.40747088, 0.14620996, -0.04708661) * input_1(0.0, 0.0);
|
||
|
result += mat4(0.09067531, 0.1802798, -0.01265663, -0.070040554, -0.2267937, 0.03905653, -0.13043013, -0.03757149, -0.059339654, 0.104913376, -0.030163135, -0.0685308, 0.6688891, -0.014641432, 0.20879455, 0.2044907) * input_1(0.0, 1.0);
|
||
|
result += mat4(0.005626538, -0.079733156, 0.008605219, 0.06290282, -0.29792875, -0.029654607, -0.10481552, -0.09341213, -0.15990393, -0.039007295, -0.05125914, 0.16256592, 0.14619575, -0.12733208, 0.006698614, 0.023109093) * input_1(1.0, -1.0);
|
||
|
result += mat4(0.32955566, 0.08897637, 0.101841494, -0.07271639, -0.06404645, 0.07224855, -0.045710064, -0.117217906, -0.13030957, 0.047082715, -0.02572864, 0.03757784, 0.30668283, 0.287022, 0.1348219, 0.023929762) * input_1(1.0, 0.0);
|
||
|
result += mat4(-0.17768937, -0.0021393404, -0.037951753, -0.10667868, -0.041929588, 0.048041478, -0.015566488, -0.053441472, -0.05699235, -0.056029927, -0.03291319, 0.0034409438, -0.026813325, -0.15186948, 0.06987102, 0.06767949) * input_1(1.0, 1.0);
|
||
|
result += mat4(-0.06568748, -0.030699072, 0.05911453, 0.027781129, 0.11376293, -0.115474515, -0.02455426, -0.12447182, -0.34912065, -0.2157657, -0.07062104, 0.1667749, 0.17967582, -0.06727094, 0.12942542, 0.06578264) * input_2(-1.0, -1.0);
|
||
|
result += mat4(-0.006379852, 0.01080074, 0.017507028, 0.088004984, -0.11411291, -0.007585197, -0.05100137, 0.10592112, -0.99712056, -0.7520175, 0.11692368, 0.436407, 0.01338728, 0.13522321, 0.057363324, -0.030826919) * input_2(-1.0, 0.0);
|
||
|
result += mat4(-0.012229786, -0.032069378, 0.04825426, -0.016368153, 0.034137294, -0.054830726, -0.081169374, -0.024988107, -0.2441289, 0.021959798, 0.05773637, 0.008372688, 0.09341302, 0.056480955, 0.023777217, 0.0039228415) * input_2(-1.0, 1.0);
|
||
|
result += mat4(0.011157284, 0.1163159, -0.07633912, 0.11250281, 0.12885436, -0.12498048, -0.08960864, 0.062833294, -0.03759189, 0.058244403, -0.07207391, 0.2028772, 0.21173595, -0.16311686, 0.06538891, -0.06596896) * input_2(0.0, -1.0);
|
||
|
result += mat4(-0.10983552, -0.031357527, -0.07435554, -0.09288538, -0.120313585, 0.025225734, 0.071983084, 0.06109791, 0.19378296, -0.046395935, -0.24731283, 0.1682848, 0.25717482, 0.4792651, -0.34149262, -0.0858395) * input_2(0.0, 0.0);
|
||
|
result += mat4(0.034174543, -0.11726608, -0.036577813, 0.04435217, -0.04808461, -0.12669444, -0.1084441, -0.08689361, 0.082073085, -0.07819967, 0.06148174, 0.3769801, -0.24158779, -0.27029583, -0.023391243, 0.011858175) * input_2(0.0, 1.0);
|
||
|
result += mat4(0.07944786, 0.08133809, 0.07997692, 0.13716865, -0.035230607, -0.07473205, 0.1449276, 0.07278681, 0.051808108, 0.004774898, 0.038622692, 0.0030565746, -0.033786774, -0.024021849, -0.0024400672, -0.05477997) * input_2(1.0, -1.0);
|
||
|
result += mat4(-0.10531373, 0.079932265, 0.105547346, 0.061907344, 0.13792123, 0.036353495, -0.015564561, 0.057014592, 0.02016199, 0.040749, -0.031200487, 0.058308415, -0.03428045, -0.11550262, -0.0959929, -0.049727343) * input_2(1.0, 0.0);
|
||
|
result += mat4(-0.012250467, -0.006430215, 0.0044991705, -0.04010103, -0.06622251, -0.109663956, -0.09146069, 0.14804383, -0.058918837, -0.045126755, -0.020355487, 0.07214972, -0.02421704, 0.13030843, 0.115789264, 0.17774087) * input_2(1.0, 1.0);
|
||
|
result += mat4(-0.15696052, 0.22896151, -0.18536723, -0.13793808, 0.1767068, 0.20759526, -0.01539476, 0.040526032, -0.050726496, -0.024617504, 0.0065163337, -0.054659072, 0.059378758, -0.014484258, -0.014139689, 0.036358345) * input_3(-1.0, -1.0);
|
||
|
result += mat4(-0.22846253, 0.03697499, -0.08143382, -0.050350167, -0.24205855, 0.10438131, -0.10372842, 0.022504829, 0.3387988, -0.42456585, 0.061946735, 0.0148130935, 0.009995336, -0.12159903, -0.0043465286, 0.06069849) * input_3(-1.0, 0.0);
|
||
|
result += mat4(-0.11156354, 0.0359487, -0.01065826, -0.027001964, 0.17493093, 0.24007198, -0.014446778, -0.030140882, -0.12998714, -0.26144996, -0.037883665, 0.080802396, 0.0015134297, -0.025207995, 0.01165441, -0.020717598) * input_3(-1.0, 1.0);
|
||
|
result += mat4(-0.21219945, 0.07210587, -0.0438035, 0.14370306, 0.0033962042, -0.090646885, 0.042913415, 0.020295506, -0.1552958, 0.09018859, -0.116042905, -0.08649074, -0.15821663, -0.05697787, -0.17752269, -0.17633747) * input_3(0.0, -1.0);
|
||
|
result += mat4(-0.43349022, 0.117171936, 0.08284707, 0.06555906, -0.27442804, 0.96230936, -0.2980863, 0.12642045, 0.2187943, -0.70179045, 0.32976732, -0.10995673, 0.08515556, -0.036852688, 0.1437618, -0.1286242) * input_3(0.0, 0.0);
|
||
|
result += mat4(-0.109603144, 0.1338518, -0.08342063, 0.11166117, 0.03421246, -0.031388063, 0.024408573, 0.015950687, 0.15197541, 0.030934438, 0.025767457, -0.07091845, 0.09057616, -0.022009216, -0.053991806, -0.12796395) * input_3(0.0, 1.0);
|
||
|
result += mat4(-0.022965962, -0.0025867228, -0.049213175, -0.027364235, 0.13730747, 0.1291872, 0.09342874, 0.01147941, -0.10258537, -0.061183147, -0.09642567, -0.053470515, -0.14485717, -0.16018187, -0.032631766, 0.046890456) * input_3(1.0, -1.0);
|
||
|
result += mat4(0.04582964, 0.26833606, -0.097134784, 0.05783496, -0.14171445, -0.047592215, -0.14597364, 0.12383266, 0.06131636, 0.03308155, 0.10785446, -0.08386822, -0.22406757, -0.24641123, 0.068560176, -0.16798474) * input_3(1.0, 0.0);
|
||
|
result += mat4(-0.22030692, -0.21817328, -0.13282628, -0.09320484, 0.036318667, -0.041267805, 0.014101586, 0.19955556, 0.13402963, 0.0147686405, 0.020386595, -0.070123695, 0.043743577, 0.09068588, -0.035322204, -0.16451395) * input_3(1.0, 1.0);
|
||
|
result += vec4(-0.0058158385, 0.0065551293, 0.04341422, -0.03662805);
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
//!DESC ArtCNN C4F16 (Long-Skip-Conv-6)
|
||
|
//!HOOK LUMA
|
||
|
//!BIND conv2d_5_tf
|
||
|
//!BIND conv2d_tf
|
||
|
//!BIND conv2d_5_tf1
|
||
|
//!BIND conv2d_tf1
|
||
|
//!BIND conv2d_5_tf2
|
||
|
//!BIND conv2d_tf2
|
||
|
//!BIND conv2d_5_tf3
|
||
|
//!BIND conv2d_tf3
|
||
|
//!SAVE conv2d_6_tf
|
||
|
//!WIDTH LUMA.w
|
||
|
//!HEIGHT LUMA.h
|
||
|
//!COMPONENTS 4
|
||
|
//!WHEN OUTPUT.w LUMA.w / 1.3 > OUTPUT.h LUMA.h / 1.3 > *
|
||
|
#define input_0(x_off, y_off) ((conv2d_5_tf_texOff(vec2(x_off, y_off)))+(conv2d_tf_texOff(vec2(x_off, y_off))))
|
||
|
#define input_1(x_off, y_off) ((conv2d_5_tf1_texOff(vec2(x_off, y_off)))+(conv2d_tf1_texOff(vec2(x_off, y_off))))
|
||
|
#define input_2(x_off, y_off) ((conv2d_5_tf2_texOff(vec2(x_off, y_off)))+(conv2d_tf2_texOff(vec2(x_off, y_off))))
|
||
|
#define input_3(x_off, y_off) ((conv2d_5_tf3_texOff(vec2(x_off, y_off)))+(conv2d_tf3_texOff(vec2(x_off, y_off))))
|
||
|
vec4 hook() {
|
||
|
vec4 result = mat4(-0.08282132, -0.050212573, -0.006431566, 0.0031790528, -0.03776868, -0.013437083, -0.057741843, -0.04481481, -0.0044315453, 0.034124285, -0.022156695, -0.018602561, 0.20425214, 0.11224462, 0.068278916, 0.08053673) * input_0(-1.0, -1.0);
|
||
|
result += mat4(0.1737423, -0.04230807, -0.013661164, -0.0036762068, 0.06008337, -0.15184057, 0.14660735, -0.109465286, -0.051084023, -0.0059801363, 0.061394773, -0.023285672, 0.20968242, 0.10546822, 0.18708454, 0.11879361) * input_0(-1.0, 0.0);
|
||
|
result += mat4(-0.033685837, 0.01289737, -0.027983379, -0.0055957735, -0.03144902, 0.0044752005, -0.06453463, -0.008021043, 0.035466965, -0.0068737944, 0.023858318, -0.020520926, 0.115860045, -0.0169058, 0.25822514, -0.033295814) * input_0(-1.0, 1.0);
|
||
|
result += mat4(-0.15009366, -0.14018245, 0.07395507, 0.067690514, 0.03459224, -0.0080688605, -0.042481042, 0.03127538, -0.008065604, -0.15744175, 0.0914565, 0.061561264, -0.0070291115, 0.16098608, 0.032738257, -0.04752911) * input_0(0.0, -1.0);
|
||
|
result += mat4(0.13670045, 0.25546923, -0.09107412, -0.11714196, -0.25676984, 0.13249697, -0.10698101, 0.31307876, -0.023955444, 0.06397853, -0.012698382, -0.052452724, 0.22351012, 0.20750614, 0.14437743, 0.27419376) * input_0(0.0, 0.0);
|
||
|
result += mat4(-0.050944123, -0.058321945, 0.04162834, 0.01627469, 0.1313747, 0.11501373, 0.010086614, -0.049469303, 0.05847671, 0.05762879, -0.10180938, 0.02704485, -0.00649745, 0.03943254, 0.0553785, 0.21255617) * input_0(0.0, 1.0);
|
||
|
result += mat4(2.2463453e-05, -0.06334729, 0.0011694673, 0.04354312, -0.033493683, -0.049897637, -0.014223561, -0.0049568773, -0.043216746, 0.015991298, -0.010565269, 0.04337413, 0.103710435, 0.045767233, 0.050358094, 0.011385551) * input_0(1.0, -1.0);
|
||
|
result += mat4(0.01380943, 0.104021706, 0.031120492, -0.033007912, 0.053270113, -0.050233055, 0.072125725, -0.10193151, 0.030048978, -0.0003700513, -0.0150875375, 0.052887183, 0.16137594, 0.2257317, 0.15461081, 0.27663457) * input_0(1.0, 0.0);
|
||
|
result += mat4(-0.008497543, -0.019854866, -0.021894751, 0.03439224, 0.05535017, 0.02039972, 0.059488334, -0.010332649, 0.0041363593, -0.0015563926, -0.0059469384, -0.07390348, 0.027100675, 0.15760505, 0.07618055, 0.14184739) * input_0(1.0, 1.0);
|
||
|
result += mat4(-0.08603623, -0.047642153, -0.053582344, -0.0444515, -0.0655613, -0.042072568, -0.019204779, -0.018738216, -0.019927198, 0.010405698, 0.017948784, 0.011774974, 0.007919431, 0.024741042, 0.0076185255, 0.013932557) * input_1(-1.0, -1.0);
|
||
|
result += mat4(-0.043703865, -0.10790202, -0.0007796875, -0.08448833, -0.12688679, -0.01089143, -0.10747253, -0.023536537, 0.08455817, -0.030737879, -0.046556097, 0.006399341, -0.014527084, -0.022552371, 0.0042789043, -0.025548236) * input_1(-1.0, 0.0);
|
||
|
result += mat4(-0.017126534, 0.0070317043, -0.06699227, 0.017585939, -0.036779076, 0.0039233603, -0.080334, 0.027249992, -0.028460855, -0.011410889, -0.010681172, -0.0058809626, 0.007704066, 0.0042690565, -0.004934647, 0.0023567276) * input_1(-1.0, 1.0);
|
||
|
result += mat4(0.0033617697, -0.10173116, -0.105472825, 0.004582017, 0.12714557, 0.035237685, 0.051081784, -0.05570687, 0.046029497, -0.022194626, 0.017548587, -0.009099121, 0.005619404, -0.03798384, 0.01612155, -0.013392621) * input_1(0.0, -1.0);
|
||
|
result += mat4(0.14385813, 0.044832364, 0.23530087, 0.0781522, 0.037361372, 0.0007815395, 0.0099332575, 0.056152873, -0.03897767, 0.031461842, -0.03588279, 0.015075558, 0.02369635, -0.0013568713, -0.035864167, 0.08911574) * input_1(0.0, 0.0);
|
||
|
result += mat4(0.038586695, 0.109686814, 0.01428738, -0.05225311, 0.038505603, 0.014199985, 0.1532636, -0.0036847093, -0.002786075, -0.0058692717, 0.03571069, -0.028749885, -0.013924306, 0.013924136, 0.013653318, -0.057306714) * input_1(0.0, 1.0);
|
||
|
result += mat4(-0.050206963, -0.013475421, 0.0013554276, -0.002336058, -0.03078795, 0.0447772, 0.004280083, 0.03034155, -0.062265925, 0.059796277, -0.024513677, 0.010041057, 0.008301747, -0.0037727836, 0.0011822516, -0.011271828) * input_1(1.0, -1.0);
|
||
|
result += mat4(0.011543025, 0.0998472, 0.016829127, 0.04086479, 0.02742798, -0.014207445, -0.02224093, -0.08083774, -0.0012286769, -0.02715151, 0.0057010693, 0.024992155, -0.0013688167, 0.0103053935, -0.0014241064, -0.009641806) * input_1(1.0, 0.0);
|
||
|
result += mat4(0.038221855, -0.038919553, 0.0033878502, -0.009140636, 0.008604268, -0.022090565, -0.008482899, 0.06974687, 0.0274221, -0.0033571396, 0.03818755, -0.02057325, -0.011516872, -0.004629597, -0.012851992, 0.03200801) * input_1(1.0, 1.0);
|
||
|
result += mat4(0.038180728, 0.052124877, 0.028602071, 0.017921688, -0.106804095, -0.06451233, -0.0032042079, -0.06249655, 0.029011251, 0.049390733, 0.019068372, -0.021419108, 0.027353842, -0.06985431, 0.010669499, 0.012004969) * input_2(-1.0, -1.0);
|
||
|
result += mat4(0.07048305, 0.13378158, 0.052958295, 0.12006899, -0.2442138, 0.105855346, -0.2404675, 0.0846714, 0.007463271, -0.018021544, -0.038328808, 0.0129634105, -0.0024921277, 0.032704916, 0.021794284, -0.025026945) * input_2(-1.0, 0.0);
|
||
|
result += mat4(0.033256583, 0.0012528894, 0.09516928, 0.02883472, -0.07634173, 0.024952693, -0.17379819, 0.0424996, -0.015280563, -0.016551197, 0.0009836598, -0.004051451, -0.021451997, 0.025161399, -0.027619077, 0.014161351) * input_2(-1.0, 1.0);
|
||
|
result += mat4(-0.13450135, -0.033342496, 0.08598471, 0.06542061, -0.12869398, -0.017269405, 0.15450597, 0.10280524, -0.04683036, -0.03112956, -0.00549868, 0.062059883, -0.06633045, 0.100190625, 0.06778979, -0.06945905) * input_2(0.0, -1.0);
|
||
|
result += mat4(0.03161881, -0.21531355, -0.37171996, -0.24796964, -0.28969556, -0.3403489, -0.2551731, -0.19779174, 0.028901346, -0.008884844, 4.5851906e-05, -0.027517252, 0.008502487, -0.07232236, -0.0012851048, 0.0832686) * input_2(0.0, 0.0);
|
||
|
result += mat4(0.074153185, 0.021588128, 0.15960196, 0.018950539, 0.19091938, 0.0658477, -0.107791945, -0.123369426, 0.003289666, 0.079394005, 0.013380928, -0.060010634, 0.065662496, -0.019735813, -0.057802524, -0.025969924) * input_2(0.0, 1.0);
|
||
|
result += mat4(0.020560034, -0.061484057, -0.01671455, 0.03311405, 0.042929567, 0.014951189, 0.048961636, 0.08954079, 0.024441384, 0.009973243, 0.014502184, -0.019264026, -0.004639607, 0.0335818, -0.015219564, 0.010581947) * input_2(1.0, -1.0);
|
||
|
result += mat4(-0.13108274, 0.01680598, -0.034609407, -0.07321586, 0.51572764, 0.06812453, 0.40426224, 0.026959816, 0.0012631903, -0.06437251, 0.0076033743, 0.018669631, 0.00729181, -0.07380653, -0.014959285, -0.010776669) * input_2(1.0, 0.0);
|
||
|
result += mat4(0.0061294124, 0.08844831, 0.013961146, 0.045071326, 0.10625706, 0.11194465, 0.2045468, 0.06784081, -0.031259723, 0.008844579, -0.0026625046, 0.028619414, -0.016112128, 0.047558032, 0.018712401, 0.01288224) * input_2(1.0, 1.0);
|
||
|
result += mat4(-0.021823335, 0.019722616, -0.03150424, -0.046254978, -0.0072345864, 0.021305645, 0.0037331497, -0.015964765, -0.0044203885, 0.0053305216, -0.003572976, -0.009088418, -0.0968171, -0.031598892, -0.009145334, -0.012266221) * input_3(-1.0, -1.0);
|
||
|
result += mat4(-0.09154096, -0.05375414, 0.030158956, -0.038778644, -0.027448544, -0.00079408084, -0.011063443, 0.03803163, 0.042735137, -0.061409626, 0.04162336, 0.07153434, -0.08329422, 0.07861933, -0.11448406, 0.07923565) * input_3(-1.0, 0.0);
|
||
|
result += mat4(-0.04745412, -0.019669222, -0.06647585, -0.0045029465, -0.007979803, 0.021160234, -0.030546281, 0.009273329, 0.09256682, 0.07382133, 0.10911239, 0.026102742, -0.014792403, 0.03616291, -0.056952864, 0.04743502) * input_3(-1.0, 1.0);
|
||
|
result += mat4(-0.009113205, -0.03460476, 0.08534465, 0.08909347, 0.06037503, 0.008822444, -0.049739916, -0.007825083, -0.031719364, -0.06511747, -0.081047334, -0.058899954, -0.021392876, -0.05890152, 0.04838633, 0.013203479) * input_3(0.0, -1.0);
|
||
|
result += mat4(0.21216123, 0.19974816, -0.13691562, 0.039467793, 0.056616027, -0.2239943, 0.1360794, -0.013913148, -0.6059646, -0.38705826, -0.40261963, -0.36473858, 0.40681398, 0.27267224, 0.3767217, 0.2706809) * input_3(0.0, 0.0);
|
||
|
result += mat4(-0.046089027, -0.03968935, 0.017081982, -0.0024457292, 0.034425203, 0.010322377, 0.017337015, -0.11567465, 0.32653096, 0.24680425, 0.019871414, 0.10949153, 0.1794407, 0.039816856, 0.06882997, -0.057977777) * input_3(0.0, 1.0);
|
||
|
result += mat4(-0.01682135, 0.023119971, 0.0011208794, 0.03303372, -0.03463704, 0.026282402, -0.005799822, 0.016180407, 0.022083962, 0.034750033, 0.039780572, 0.031981036, -0.06814737, -0.09335608, -0.07625231, -0.013693499) * input_3(1.0, -1.0);
|
||
|
result += mat4(0.042120103, -0.02420226, 0.055469062, -0.07569917, -0.064827695, 0.122576594, -0.052083295, 0.067365736, 0.110857755, -0.009736876, 0.09803895, 0.07084237, -0.27751908, -0.24027902, -0.20375757, -0.23848666) * input_3(1.0, 0.0);
|
||
|
result += mat4(-0.0011380053, -0.045419335, 0.016514352, -0.027958523, -0.009867594, 0.014075648, -0.013004083, 0.03305624, 0.10320226, 0.20704691, 0.14488699, 0.10122793, -0.036598325, 0.0014404291, -0.058817852, -0.09686075) * input_3(1.0, 1.0);
|
||
|
result += vec4(0.10844616, 0.1052326, 0.1123853, 0.1073892);
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
//!PARAM ar_strength
|
||
|
//!TYPE float
|
||
|
//!MINIMUM 0.0
|
||
|
//!MAXIMUM 1.0
|
||
|
0.35
|
||
|
|
||
|
//!DESC ArtCNN C4F16 (Pixel-Shuffle)
|
||
|
//!HOOK LUMA
|
||
|
//!BIND LUMA
|
||
|
//!BIND conv2d_6_tf
|
||
|
//!WIDTH LUMA.w 2 *
|
||
|
//!HEIGHT LUMA.h 2 *
|
||
|
//!COMPONENTS 4
|
||
|
//!WHEN OUTPUT.w LUMA.w / 1.3 > OUTPUT.h LUMA.h / 1.3 > *
|
||
|
|
||
|
vec4 hook() {
|
||
|
vec4 output_pix = vec4(0.0, 0.0, 0.0, 1.0);
|
||
|
vec2 f0 = fract(conv2d_6_tf_pos * conv2d_6_tf_size);
|
||
|
ivec2 i0 = ivec2(f0 * vec2(2.0));
|
||
|
output_pix.x = conv2d_6_tf_tex((vec2(0.5) - f0) * conv2d_6_tf_pt + conv2d_6_tf_pos)[i0.y * 2 + i0.x];
|
||
|
|
||
|
vec2 pp = LUMA_pos * LUMA_size - vec2(0.5);
|
||
|
vec2 fp = floor(pp);
|
||
|
|
||
|
vec2 pix_idx[4] = {{0.5, 0.5}, {1.5, 0.5},
|
||
|
{0.5, 1.5}, {1.5, 1.5}};
|
||
|
|
||
|
float luma_pixels[4];
|
||
|
|
||
|
for (int i = 0; i < 4; i++) {
|
||
|
luma_pixels[i] = LUMA_tex(vec2((fp + pix_idx[i]) * LUMA_pt)).x;
|
||
|
}
|
||
|
|
||
|
float luma_min = min(min(min(luma_pixels[0], luma_pixels[1]), luma_pixels[2]), luma_pixels[3]);
|
||
|
float luma_max = max(max(max(luma_pixels[0], luma_pixels[1]), luma_pixels[2]), luma_pixels[3]);
|
||
|
|
||
|
output_pix.x = mix(output_pix.x, clamp(output_pix.x, luma_min, luma_max), ar_strength);
|
||
|
return clamp(output_pix, 0.0, 1.0);
|
||
|
}
|