File size: 3,776 Bytes
40adac6 7378a93 40adac6 7378a93 40adac6 7378a93 40adac6 7378a93 40adac6 7378a93 40adac6 7378a93 40adac6 7378a93 40adac6 7378a93 40adac6 7378a93 40adac6 7378a93 40adac6 7378a93 40adac6 7378a93 40adac6 7378a93 40adac6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 | {
"model_type": "liif",
"architecture": {
"type": "LIIFNet (simplified Local Implicit Image Function)",
"num_feat": 64,
"num_res": 16,
"decoder_hidden": 64,
"local_size": 3
},
"scales": {
"arbitrary": true,
"trained_range": [
1.5,
6.0
],
"tested_max": 9.2
},
"parameters": 4603897,
"input": {
"format": "RGB float32 tensor, shape (B, 3, H, W), values in [0, 1]"
},
"output": {
"format": "RGB float32 tensor, shape (B, 3, target_h, target_w), values in [0, 1]"
},
"inference": {
"signature": "model(lr, target_h, target_w)",
"tile_size": 256,
"overlap": 16,
"tiling": "overlapping tiles + feather blending, compiled inside model_scripted.pt",
"max_scale": 9.2,
"max_scale_note": "largest scale factor verified end-to-end for these weights; beyond it the model still runs but is extrapolating outside its training range"
},
"training": {
"stage": "2",
"iterations": 4000,
"batch_size": 2,
"patch_size": 192,
"seed": 42,
"optimizer": "adam",
"lr": 4e-05,
"min_lr": 2e-05,
"scheduler": "cosine",
"grad_clip": 1.0,
"amp": false,
"losses": [
"L1",
"edge (Sobel gradient)",
"PatchGAN adversarial"
],
"loss_weights": {
"l1": 1.0,
"edge": 0.1,
"gan": 0.05
},
"num_buckets": 16,
"init_from": "checkpoints/liif_v4/best_liif.pth",
"dataset": "DIV2K train + Flickr2K (3450 HR images)",
"degradation": "Real-ESRGAN-style (blur, noise, downscale, JPEG)",
"checkpoint_step": 3500
},
"artifacts": {
"torchscript": "model_scripted.pt",
"weights": "model.safetensors",
"note": "model_scripted.pt is self-contained: no source code is needed to run the model."
},
"export": {
"torch_version": "2.14.1+cu130",
"exported_at": "2026-10-23T20:41:45+00:00",
"method": "torch.jit.script + torch.jit.freeze",
"verification": {
"checks": [
{
"input": [
160,
106
],
"target": [
320,
212
],
"output_shape": [
1,
3,
212,
320
],
"max_abs_diff": 1.1920928955078125e-07
},
{
"input": [
160,
106
],
"target": [
509,
335
],
"output_shape": [
1,
3,
335,
509
],
"max_abs_diff": 1.1920928955078125e-07
}
],
"max_abs_diff": 1.1920928955078125e-07,
"forward_single_shape": [
1,
3,
212,
320
],
"forward_single_ok": true,
"passed": true,
"cuda_shape_check": [
1,
3,
212,
320
],
"cuda_finite": true
},
"examples": {
"source_image": "0801.png",
"files": {
"input.png": [
320,
240
],
"output_4x.png": [
1280,
960
],
"output_9.2x.jpg": [
1472,
1104
],
"compare.jpg": [
496,
142
]
}
},
"demo": {
"source_image": "a.png",
"scale": 4.0,
"output_name": "demo_output_4x.jpg",
"files": {
"demo_input.png": [
993,
747
],
"demo_output_4x.jpg": [
3972,
2988
],
"demo_compare.jpg": [
520,
278
]
}
}
}
} |