Spaces:
Running
on
Zero
Running
on
Zero
New Prompts
Browse files- LUT/z-none.cube +0 -517
- app.py +31 -30
- utils/constants.py +16 -10
LUT/z-none.cube
DELETED
|
@@ -1,517 +0,0 @@
|
|
| 1 |
-
# Charles Fettinger 3D LUT from 8x8 PNG
|
| 2 |
-
TITLE "Converted 8x8x8 LUT"
|
| 3 |
-
LUT_3D_SIZE 8
|
| 4 |
-
DOMAIN_MIN 0.0 0.0 0.0
|
| 5 |
-
DOMAIN_MAX 1.0 1.0 1.0
|
| 6 |
-
0.062745 0.062745 0.000000
|
| 7 |
-
0.192157 0.062745 0.000000
|
| 8 |
-
0.317647 0.062745 0.000000
|
| 9 |
-
0.443137 0.062745 0.000000
|
| 10 |
-
0.572549 0.062745 0.000000
|
| 11 |
-
0.698039 0.062745 0.000000
|
| 12 |
-
0.823529 0.062745 0.000000
|
| 13 |
-
0.952941 0.062745 0.000000
|
| 14 |
-
0.062745 0.192157 0.015686
|
| 15 |
-
0.192157 0.192157 0.015686
|
| 16 |
-
0.317647 0.192157 0.015686
|
| 17 |
-
0.443137 0.192157 0.015686
|
| 18 |
-
0.572549 0.192157 0.015686
|
| 19 |
-
0.698039 0.192157 0.015686
|
| 20 |
-
0.823529 0.192157 0.015686
|
| 21 |
-
0.952941 0.192157 0.015686
|
| 22 |
-
0.062745 0.317647 0.031373
|
| 23 |
-
0.192157 0.317647 0.031373
|
| 24 |
-
0.317647 0.317647 0.031373
|
| 25 |
-
0.443137 0.317647 0.031373
|
| 26 |
-
0.572549 0.317647 0.031373
|
| 27 |
-
0.698039 0.317647 0.031373
|
| 28 |
-
0.823529 0.317647 0.031373
|
| 29 |
-
0.952941 0.317647 0.031373
|
| 30 |
-
0.062745 0.443137 0.047059
|
| 31 |
-
0.192157 0.443137 0.047059
|
| 32 |
-
0.317647 0.443137 0.047059
|
| 33 |
-
0.443137 0.443137 0.047059
|
| 34 |
-
0.572549 0.443137 0.047059
|
| 35 |
-
0.698039 0.443137 0.047059
|
| 36 |
-
0.823529 0.443137 0.047059
|
| 37 |
-
0.952941 0.443137 0.047059
|
| 38 |
-
0.062745 0.572549 0.062745
|
| 39 |
-
0.192157 0.572549 0.062745
|
| 40 |
-
0.317647 0.572549 0.062745
|
| 41 |
-
0.443137 0.572549 0.062745
|
| 42 |
-
0.572549 0.572549 0.062745
|
| 43 |
-
0.698039 0.572549 0.062745
|
| 44 |
-
0.823529 0.572549 0.062745
|
| 45 |
-
0.952941 0.572549 0.062745
|
| 46 |
-
0.062745 0.698039 0.078431
|
| 47 |
-
0.192157 0.698039 0.078431
|
| 48 |
-
0.317647 0.698039 0.078431
|
| 49 |
-
0.443137 0.698039 0.078431
|
| 50 |
-
0.572549 0.698039 0.078431
|
| 51 |
-
0.698039 0.698039 0.078431
|
| 52 |
-
0.823529 0.698039 0.078431
|
| 53 |
-
0.952941 0.698039 0.078431
|
| 54 |
-
0.062745 0.823529 0.094118
|
| 55 |
-
0.192157 0.823529 0.094118
|
| 56 |
-
0.317647 0.823529 0.094118
|
| 57 |
-
0.443137 0.823529 0.094118
|
| 58 |
-
0.572549 0.823529 0.094118
|
| 59 |
-
0.698039 0.823529 0.094118
|
| 60 |
-
0.823529 0.823529 0.094118
|
| 61 |
-
0.952941 0.823529 0.094118
|
| 62 |
-
0.062745 0.952941 0.109804
|
| 63 |
-
0.192157 0.952941 0.109804
|
| 64 |
-
0.317647 0.952941 0.109804
|
| 65 |
-
0.443137 0.952941 0.109804
|
| 66 |
-
0.572549 0.952941 0.109804
|
| 67 |
-
0.698039 0.952941 0.109804
|
| 68 |
-
0.823529 0.952941 0.109804
|
| 69 |
-
0.952941 0.952941 0.109804
|
| 70 |
-
0.062745 0.062745 0.125490
|
| 71 |
-
0.192157 0.062745 0.125490
|
| 72 |
-
0.317647 0.062745 0.125490
|
| 73 |
-
0.443137 0.062745 0.125490
|
| 74 |
-
0.572549 0.062745 0.125490
|
| 75 |
-
0.698039 0.062745 0.125490
|
| 76 |
-
0.823529 0.062745 0.125490
|
| 77 |
-
0.952941 0.062745 0.125490
|
| 78 |
-
0.062745 0.192157 0.141176
|
| 79 |
-
0.192157 0.192157 0.141176
|
| 80 |
-
0.317647 0.192157 0.141176
|
| 81 |
-
0.443137 0.192157 0.141176
|
| 82 |
-
0.572549 0.192157 0.141176
|
| 83 |
-
0.698039 0.192157 0.141176
|
| 84 |
-
0.823529 0.192157 0.141176
|
| 85 |
-
0.952941 0.192157 0.141176
|
| 86 |
-
0.062745 0.317647 0.156863
|
| 87 |
-
0.192157 0.317647 0.156863
|
| 88 |
-
0.317647 0.317647 0.156863
|
| 89 |
-
0.443137 0.317647 0.156863
|
| 90 |
-
0.572549 0.317647 0.156863
|
| 91 |
-
0.698039 0.317647 0.156863
|
| 92 |
-
0.823529 0.317647 0.156863
|
| 93 |
-
0.952941 0.317647 0.156863
|
| 94 |
-
0.062745 0.443137 0.176471
|
| 95 |
-
0.192157 0.443137 0.176471
|
| 96 |
-
0.317647 0.443137 0.176471
|
| 97 |
-
0.443137 0.443137 0.176471
|
| 98 |
-
0.572549 0.443137 0.176471
|
| 99 |
-
0.698039 0.443137 0.176471
|
| 100 |
-
0.823529 0.443137 0.176471
|
| 101 |
-
0.952941 0.443137 0.176471
|
| 102 |
-
0.062745 0.572549 0.192157
|
| 103 |
-
0.192157 0.572549 0.192157
|
| 104 |
-
0.317647 0.572549 0.192157
|
| 105 |
-
0.443137 0.572549 0.192157
|
| 106 |
-
0.572549 0.572549 0.192157
|
| 107 |
-
0.698039 0.572549 0.192157
|
| 108 |
-
0.823529 0.572549 0.192157
|
| 109 |
-
0.952941 0.572549 0.192157
|
| 110 |
-
0.062745 0.698039 0.207843
|
| 111 |
-
0.192157 0.698039 0.207843
|
| 112 |
-
0.317647 0.698039 0.207843
|
| 113 |
-
0.443137 0.698039 0.207843
|
| 114 |
-
0.572549 0.698039 0.207843
|
| 115 |
-
0.698039 0.698039 0.207843
|
| 116 |
-
0.823529 0.698039 0.207843
|
| 117 |
-
0.952941 0.698039 0.207843
|
| 118 |
-
0.062745 0.823529 0.223529
|
| 119 |
-
0.192157 0.823529 0.223529
|
| 120 |
-
0.317647 0.823529 0.223529
|
| 121 |
-
0.443137 0.823529 0.223529
|
| 122 |
-
0.572549 0.823529 0.223529
|
| 123 |
-
0.698039 0.823529 0.223529
|
| 124 |
-
0.823529 0.823529 0.223529
|
| 125 |
-
0.952941 0.823529 0.223529
|
| 126 |
-
0.062745 0.952941 0.239216
|
| 127 |
-
0.192157 0.952941 0.239216
|
| 128 |
-
0.317647 0.952941 0.239216
|
| 129 |
-
0.443137 0.952941 0.239216
|
| 130 |
-
0.572549 0.952941 0.239216
|
| 131 |
-
0.698039 0.952941 0.239216
|
| 132 |
-
0.823529 0.952941 0.239216
|
| 133 |
-
0.952941 0.952941 0.239216
|
| 134 |
-
0.062745 0.062745 0.254902
|
| 135 |
-
0.192157 0.062745 0.254902
|
| 136 |
-
0.317647 0.062745 0.254902
|
| 137 |
-
0.443137 0.062745 0.254902
|
| 138 |
-
0.572549 0.062745 0.254902
|
| 139 |
-
0.698039 0.062745 0.254902
|
| 140 |
-
0.823529 0.062745 0.254902
|
| 141 |
-
0.952941 0.062745 0.254902
|
| 142 |
-
0.062745 0.192157 0.270588
|
| 143 |
-
0.192157 0.192157 0.270588
|
| 144 |
-
0.317647 0.192157 0.270588
|
| 145 |
-
0.443137 0.192157 0.270588
|
| 146 |
-
0.572549 0.192157 0.270588
|
| 147 |
-
0.698039 0.192157 0.270588
|
| 148 |
-
0.823529 0.192157 0.270588
|
| 149 |
-
0.952941 0.192157 0.270588
|
| 150 |
-
0.062745 0.317647 0.286275
|
| 151 |
-
0.192157 0.317647 0.286275
|
| 152 |
-
0.317647 0.317647 0.286275
|
| 153 |
-
0.443137 0.317647 0.286275
|
| 154 |
-
0.572549 0.317647 0.286275
|
| 155 |
-
0.698039 0.317647 0.286275
|
| 156 |
-
0.823529 0.317647 0.286275
|
| 157 |
-
0.952941 0.317647 0.286275
|
| 158 |
-
0.062745 0.443137 0.301961
|
| 159 |
-
0.192157 0.443137 0.301961
|
| 160 |
-
0.317647 0.443137 0.301961
|
| 161 |
-
0.443137 0.443137 0.301961
|
| 162 |
-
0.572549 0.443137 0.301961
|
| 163 |
-
0.698039 0.443137 0.301961
|
| 164 |
-
0.823529 0.443137 0.301961
|
| 165 |
-
0.952941 0.443137 0.301961
|
| 166 |
-
0.062745 0.572549 0.317647
|
| 167 |
-
0.192157 0.572549 0.317647
|
| 168 |
-
0.317647 0.572549 0.317647
|
| 169 |
-
0.443137 0.572549 0.317647
|
| 170 |
-
0.572549 0.572549 0.317647
|
| 171 |
-
0.698039 0.572549 0.317647
|
| 172 |
-
0.823529 0.572549 0.317647
|
| 173 |
-
0.952941 0.572549 0.317647
|
| 174 |
-
0.062745 0.698039 0.333333
|
| 175 |
-
0.192157 0.698039 0.333333
|
| 176 |
-
0.317647 0.698039 0.333333
|
| 177 |
-
0.443137 0.698039 0.333333
|
| 178 |
-
0.572549 0.698039 0.333333
|
| 179 |
-
0.698039 0.698039 0.333333
|
| 180 |
-
0.823529 0.698039 0.333333
|
| 181 |
-
0.952941 0.698039 0.333333
|
| 182 |
-
0.062745 0.823529 0.349020
|
| 183 |
-
0.192157 0.823529 0.349020
|
| 184 |
-
0.317647 0.823529 0.349020
|
| 185 |
-
0.443137 0.823529 0.349020
|
| 186 |
-
0.572549 0.823529 0.349020
|
| 187 |
-
0.698039 0.823529 0.349020
|
| 188 |
-
0.823529 0.823529 0.349020
|
| 189 |
-
0.952941 0.823529 0.349020
|
| 190 |
-
0.062745 0.952941 0.364706
|
| 191 |
-
0.192157 0.952941 0.364706
|
| 192 |
-
0.317647 0.952941 0.364706
|
| 193 |
-
0.443137 0.952941 0.364706
|
| 194 |
-
0.572549 0.952941 0.364706
|
| 195 |
-
0.698039 0.952941 0.364706
|
| 196 |
-
0.823529 0.952941 0.364706
|
| 197 |
-
0.952941 0.952941 0.364706
|
| 198 |
-
0.062745 0.062745 0.380392
|
| 199 |
-
0.192157 0.062745 0.380392
|
| 200 |
-
0.317647 0.062745 0.380392
|
| 201 |
-
0.443137 0.062745 0.380392
|
| 202 |
-
0.572549 0.062745 0.380392
|
| 203 |
-
0.698039 0.062745 0.380392
|
| 204 |
-
0.823529 0.062745 0.380392
|
| 205 |
-
0.952941 0.062745 0.380392
|
| 206 |
-
0.062745 0.192157 0.396078
|
| 207 |
-
0.192157 0.192157 0.396078
|
| 208 |
-
0.317647 0.192157 0.396078
|
| 209 |
-
0.443137 0.192157 0.396078
|
| 210 |
-
0.572549 0.192157 0.396078
|
| 211 |
-
0.698039 0.192157 0.396078
|
| 212 |
-
0.823529 0.192157 0.396078
|
| 213 |
-
0.952941 0.192157 0.396078
|
| 214 |
-
0.062745 0.317647 0.411765
|
| 215 |
-
0.192157 0.317647 0.411765
|
| 216 |
-
0.317647 0.317647 0.411765
|
| 217 |
-
0.443137 0.317647 0.411765
|
| 218 |
-
0.572549 0.317647 0.411765
|
| 219 |
-
0.698039 0.317647 0.411765
|
| 220 |
-
0.823529 0.317647 0.411765
|
| 221 |
-
0.952941 0.317647 0.411765
|
| 222 |
-
0.062745 0.443137 0.427451
|
| 223 |
-
0.192157 0.443137 0.427451
|
| 224 |
-
0.317647 0.443137 0.427451
|
| 225 |
-
0.443137 0.443137 0.427451
|
| 226 |
-
0.572549 0.443137 0.427451
|
| 227 |
-
0.698039 0.443137 0.427451
|
| 228 |
-
0.823529 0.443137 0.427451
|
| 229 |
-
0.952941 0.443137 0.427451
|
| 230 |
-
0.062745 0.572549 0.443137
|
| 231 |
-
0.192157 0.572549 0.443137
|
| 232 |
-
0.317647 0.572549 0.443137
|
| 233 |
-
0.443137 0.572549 0.443137
|
| 234 |
-
0.572549 0.572549 0.443137
|
| 235 |
-
0.698039 0.572549 0.443137
|
| 236 |
-
0.823529 0.572549 0.443137
|
| 237 |
-
0.952941 0.572549 0.443137
|
| 238 |
-
0.062745 0.698039 0.458824
|
| 239 |
-
0.192157 0.698039 0.458824
|
| 240 |
-
0.317647 0.698039 0.458824
|
| 241 |
-
0.443137 0.698039 0.458824
|
| 242 |
-
0.572549 0.698039 0.458824
|
| 243 |
-
0.698039 0.698039 0.458824
|
| 244 |
-
0.823529 0.698039 0.458824
|
| 245 |
-
0.952941 0.698039 0.458824
|
| 246 |
-
0.062745 0.823529 0.474510
|
| 247 |
-
0.192157 0.823529 0.474510
|
| 248 |
-
0.317647 0.823529 0.474510
|
| 249 |
-
0.443137 0.823529 0.474510
|
| 250 |
-
0.572549 0.823529 0.474510
|
| 251 |
-
0.698039 0.823529 0.474510
|
| 252 |
-
0.823529 0.823529 0.474510
|
| 253 |
-
0.952941 0.823529 0.474510
|
| 254 |
-
0.062745 0.952941 0.490196
|
| 255 |
-
0.192157 0.952941 0.490196
|
| 256 |
-
0.317647 0.952941 0.490196
|
| 257 |
-
0.443137 0.952941 0.490196
|
| 258 |
-
0.572549 0.952941 0.490196
|
| 259 |
-
0.698039 0.952941 0.490196
|
| 260 |
-
0.823529 0.952941 0.490196
|
| 261 |
-
0.952941 0.952941 0.490196
|
| 262 |
-
0.062745 0.062745 0.509804
|
| 263 |
-
0.192157 0.062745 0.509804
|
| 264 |
-
0.317647 0.062745 0.509804
|
| 265 |
-
0.443137 0.062745 0.509804
|
| 266 |
-
0.572549 0.062745 0.509804
|
| 267 |
-
0.698039 0.062745 0.509804
|
| 268 |
-
0.823529 0.062745 0.509804
|
| 269 |
-
0.952941 0.062745 0.509804
|
| 270 |
-
0.062745 0.192157 0.525490
|
| 271 |
-
0.192157 0.192157 0.525490
|
| 272 |
-
0.317647 0.192157 0.525490
|
| 273 |
-
0.443137 0.192157 0.525490
|
| 274 |
-
0.572549 0.192157 0.525490
|
| 275 |
-
0.698039 0.192157 0.525490
|
| 276 |
-
0.823529 0.192157 0.525490
|
| 277 |
-
0.952941 0.192157 0.525490
|
| 278 |
-
0.062745 0.317647 0.541176
|
| 279 |
-
0.192157 0.317647 0.541176
|
| 280 |
-
0.317647 0.317647 0.541176
|
| 281 |
-
0.443137 0.317647 0.541176
|
| 282 |
-
0.572549 0.317647 0.541176
|
| 283 |
-
0.698039 0.317647 0.541176
|
| 284 |
-
0.823529 0.317647 0.541176
|
| 285 |
-
0.952941 0.317647 0.541176
|
| 286 |
-
0.062745 0.443137 0.556863
|
| 287 |
-
0.192157 0.443137 0.556863
|
| 288 |
-
0.317647 0.443137 0.556863
|
| 289 |
-
0.443137 0.443137 0.556863
|
| 290 |
-
0.572549 0.443137 0.556863
|
| 291 |
-
0.698039 0.443137 0.556863
|
| 292 |
-
0.823529 0.443137 0.556863
|
| 293 |
-
0.952941 0.443137 0.556863
|
| 294 |
-
0.062745 0.572549 0.572549
|
| 295 |
-
0.192157 0.572549 0.572549
|
| 296 |
-
0.317647 0.572549 0.572549
|
| 297 |
-
0.443137 0.572549 0.572549
|
| 298 |
-
0.572549 0.572549 0.572549
|
| 299 |
-
0.698039 0.572549 0.572549
|
| 300 |
-
0.823529 0.572549 0.572549
|
| 301 |
-
0.952941 0.572549 0.572549
|
| 302 |
-
0.062745 0.698039 0.588235
|
| 303 |
-
0.192157 0.698039 0.588235
|
| 304 |
-
0.317647 0.698039 0.588235
|
| 305 |
-
0.443137 0.698039 0.588235
|
| 306 |
-
0.572549 0.698039 0.588235
|
| 307 |
-
0.698039 0.698039 0.588235
|
| 308 |
-
0.823529 0.698039 0.588235
|
| 309 |
-
0.952941 0.698039 0.588235
|
| 310 |
-
0.062745 0.823529 0.603922
|
| 311 |
-
0.192157 0.823529 0.603922
|
| 312 |
-
0.317647 0.823529 0.603922
|
| 313 |
-
0.443137 0.823529 0.603922
|
| 314 |
-
0.572549 0.823529 0.603922
|
| 315 |
-
0.698039 0.823529 0.603922
|
| 316 |
-
0.823529 0.823529 0.603922
|
| 317 |
-
0.952941 0.823529 0.603922
|
| 318 |
-
0.062745 0.952941 0.619608
|
| 319 |
-
0.192157 0.952941 0.619608
|
| 320 |
-
0.317647 0.952941 0.619608
|
| 321 |
-
0.443137 0.952941 0.619608
|
| 322 |
-
0.572549 0.952941 0.619608
|
| 323 |
-
0.698039 0.952941 0.619608
|
| 324 |
-
0.823529 0.952941 0.619608
|
| 325 |
-
0.952941 0.952941 0.619608
|
| 326 |
-
0.062745 0.062745 0.635294
|
| 327 |
-
0.192157 0.062745 0.635294
|
| 328 |
-
0.317647 0.062745 0.635294
|
| 329 |
-
0.443137 0.062745 0.635294
|
| 330 |
-
0.572549 0.062745 0.635294
|
| 331 |
-
0.698039 0.062745 0.635294
|
| 332 |
-
0.823529 0.062745 0.635294
|
| 333 |
-
0.952941 0.062745 0.635294
|
| 334 |
-
0.062745 0.192157 0.650980
|
| 335 |
-
0.192157 0.192157 0.650980
|
| 336 |
-
0.317647 0.192157 0.650980
|
| 337 |
-
0.443137 0.192157 0.650980
|
| 338 |
-
0.572549 0.192157 0.650980
|
| 339 |
-
0.698039 0.192157 0.650980
|
| 340 |
-
0.823529 0.192157 0.650980
|
| 341 |
-
0.952941 0.192157 0.650980
|
| 342 |
-
0.062745 0.317647 0.666667
|
| 343 |
-
0.192157 0.317647 0.666667
|
| 344 |
-
0.317647 0.317647 0.666667
|
| 345 |
-
0.443137 0.317647 0.666667
|
| 346 |
-
0.572549 0.317647 0.666667
|
| 347 |
-
0.698039 0.317647 0.666667
|
| 348 |
-
0.823529 0.317647 0.666667
|
| 349 |
-
0.952941 0.317647 0.666667
|
| 350 |
-
0.062745 0.443137 0.682353
|
| 351 |
-
0.192157 0.443137 0.682353
|
| 352 |
-
0.317647 0.443137 0.682353
|
| 353 |
-
0.443137 0.443137 0.682353
|
| 354 |
-
0.572549 0.443137 0.682353
|
| 355 |
-
0.698039 0.443137 0.682353
|
| 356 |
-
0.823529 0.443137 0.682353
|
| 357 |
-
0.952941 0.443137 0.682353
|
| 358 |
-
0.062745 0.572549 0.698039
|
| 359 |
-
0.192157 0.572549 0.698039
|
| 360 |
-
0.317647 0.572549 0.698039
|
| 361 |
-
0.443137 0.572549 0.698039
|
| 362 |
-
0.572549 0.572549 0.698039
|
| 363 |
-
0.698039 0.572549 0.698039
|
| 364 |
-
0.823529 0.572549 0.698039
|
| 365 |
-
0.952941 0.572549 0.698039
|
| 366 |
-
0.062745 0.698039 0.713725
|
| 367 |
-
0.192157 0.698039 0.713725
|
| 368 |
-
0.317647 0.698039 0.713725
|
| 369 |
-
0.443137 0.698039 0.713725
|
| 370 |
-
0.572549 0.698039 0.713725
|
| 371 |
-
0.698039 0.698039 0.713725
|
| 372 |
-
0.823529 0.698039 0.713725
|
| 373 |
-
0.952941 0.698039 0.713725
|
| 374 |
-
0.062745 0.823529 0.729412
|
| 375 |
-
0.192157 0.823529 0.729412
|
| 376 |
-
0.317647 0.823529 0.729412
|
| 377 |
-
0.443137 0.823529 0.729412
|
| 378 |
-
0.572549 0.823529 0.729412
|
| 379 |
-
0.698039 0.823529 0.729412
|
| 380 |
-
0.823529 0.823529 0.729412
|
| 381 |
-
0.952941 0.823529 0.729412
|
| 382 |
-
0.062745 0.952941 0.745098
|
| 383 |
-
0.192157 0.952941 0.745098
|
| 384 |
-
0.317647 0.952941 0.745098
|
| 385 |
-
0.443137 0.952941 0.745098
|
| 386 |
-
0.572549 0.952941 0.745098
|
| 387 |
-
0.698039 0.952941 0.745098
|
| 388 |
-
0.823529 0.952941 0.745098
|
| 389 |
-
0.952941 0.952941 0.745098
|
| 390 |
-
0.062745 0.062745 0.760784
|
| 391 |
-
0.192157 0.062745 0.760784
|
| 392 |
-
0.317647 0.062745 0.760784
|
| 393 |
-
0.443137 0.062745 0.760784
|
| 394 |
-
0.572549 0.062745 0.760784
|
| 395 |
-
0.698039 0.062745 0.760784
|
| 396 |
-
0.823529 0.062745 0.760784
|
| 397 |
-
0.952941 0.062745 0.760784
|
| 398 |
-
0.062745 0.192157 0.776471
|
| 399 |
-
0.192157 0.192157 0.776471
|
| 400 |
-
0.317647 0.192157 0.776471
|
| 401 |
-
0.443137 0.192157 0.776471
|
| 402 |
-
0.572549 0.192157 0.776471
|
| 403 |
-
0.698039 0.192157 0.776471
|
| 404 |
-
0.823529 0.192157 0.776471
|
| 405 |
-
0.952941 0.192157 0.776471
|
| 406 |
-
0.062745 0.317647 0.792157
|
| 407 |
-
0.192157 0.317647 0.792157
|
| 408 |
-
0.317647 0.317647 0.792157
|
| 409 |
-
0.443137 0.317647 0.792157
|
| 410 |
-
0.572549 0.317647 0.792157
|
| 411 |
-
0.698039 0.317647 0.792157
|
| 412 |
-
0.823529 0.317647 0.792157
|
| 413 |
-
0.952941 0.317647 0.792157
|
| 414 |
-
0.062745 0.443137 0.807843
|
| 415 |
-
0.192157 0.443137 0.807843
|
| 416 |
-
0.317647 0.443137 0.807843
|
| 417 |
-
0.443137 0.443137 0.807843
|
| 418 |
-
0.572549 0.443137 0.807843
|
| 419 |
-
0.698039 0.443137 0.807843
|
| 420 |
-
0.823529 0.443137 0.807843
|
| 421 |
-
0.952941 0.443137 0.807843
|
| 422 |
-
0.062745 0.572549 0.823529
|
| 423 |
-
0.192157 0.572549 0.823529
|
| 424 |
-
0.317647 0.572549 0.823529
|
| 425 |
-
0.443137 0.572549 0.823529
|
| 426 |
-
0.572549 0.572549 0.823529
|
| 427 |
-
0.698039 0.572549 0.823529
|
| 428 |
-
0.823529 0.572549 0.823529
|
| 429 |
-
0.952941 0.572549 0.823529
|
| 430 |
-
0.062745 0.698039 0.843137
|
| 431 |
-
0.192157 0.698039 0.843137
|
| 432 |
-
0.317647 0.698039 0.843137
|
| 433 |
-
0.443137 0.698039 0.843137
|
| 434 |
-
0.572549 0.698039 0.843137
|
| 435 |
-
0.698039 0.698039 0.843137
|
| 436 |
-
0.823529 0.698039 0.843137
|
| 437 |
-
0.952941 0.698039 0.843137
|
| 438 |
-
0.062745 0.823529 0.858824
|
| 439 |
-
0.192157 0.823529 0.858824
|
| 440 |
-
0.317647 0.823529 0.858824
|
| 441 |
-
0.443137 0.823529 0.858824
|
| 442 |
-
0.572549 0.823529 0.858824
|
| 443 |
-
0.698039 0.823529 0.858824
|
| 444 |
-
0.823529 0.823529 0.858824
|
| 445 |
-
0.952941 0.823529 0.858824
|
| 446 |
-
0.062745 0.952941 0.874510
|
| 447 |
-
0.192157 0.952941 0.874510
|
| 448 |
-
0.317647 0.952941 0.874510
|
| 449 |
-
0.443137 0.952941 0.874510
|
| 450 |
-
0.572549 0.952941 0.874510
|
| 451 |
-
0.698039 0.952941 0.874510
|
| 452 |
-
0.823529 0.952941 0.874510
|
| 453 |
-
0.952941 0.952941 0.874510
|
| 454 |
-
0.062745 0.062745 0.890196
|
| 455 |
-
0.192157 0.062745 0.890196
|
| 456 |
-
0.317647 0.062745 0.890196
|
| 457 |
-
0.443137 0.062745 0.890196
|
| 458 |
-
0.572549 0.062745 0.890196
|
| 459 |
-
0.698039 0.062745 0.890196
|
| 460 |
-
0.823529 0.062745 0.890196
|
| 461 |
-
0.952941 0.062745 0.890196
|
| 462 |
-
0.062745 0.192157 0.905882
|
| 463 |
-
0.192157 0.192157 0.905882
|
| 464 |
-
0.317647 0.192157 0.905882
|
| 465 |
-
0.443137 0.192157 0.905882
|
| 466 |
-
0.572549 0.192157 0.905882
|
| 467 |
-
0.698039 0.192157 0.905882
|
| 468 |
-
0.823529 0.192157 0.905882
|
| 469 |
-
0.952941 0.192157 0.905882
|
| 470 |
-
0.062745 0.317647 0.921569
|
| 471 |
-
0.192157 0.317647 0.921569
|
| 472 |
-
0.317647 0.317647 0.921569
|
| 473 |
-
0.443137 0.317647 0.921569
|
| 474 |
-
0.572549 0.317647 0.921569
|
| 475 |
-
0.698039 0.317647 0.921569
|
| 476 |
-
0.823529 0.317647 0.921569
|
| 477 |
-
0.952941 0.317647 0.921569
|
| 478 |
-
0.062745 0.443137 0.937255
|
| 479 |
-
0.192157 0.443137 0.937255
|
| 480 |
-
0.317647 0.443137 0.937255
|
| 481 |
-
0.443137 0.443137 0.937255
|
| 482 |
-
0.572549 0.443137 0.937255
|
| 483 |
-
0.698039 0.443137 0.937255
|
| 484 |
-
0.823529 0.443137 0.937255
|
| 485 |
-
0.952941 0.443137 0.937255
|
| 486 |
-
0.062745 0.572549 0.952941
|
| 487 |
-
0.192157 0.572549 0.952941
|
| 488 |
-
0.317647 0.572549 0.952941
|
| 489 |
-
0.443137 0.572549 0.952941
|
| 490 |
-
0.572549 0.572549 0.952941
|
| 491 |
-
0.698039 0.572549 0.952941
|
| 492 |
-
0.823529 0.572549 0.952941
|
| 493 |
-
0.952941 0.572549 0.952941
|
| 494 |
-
0.062745 0.698039 0.968627
|
| 495 |
-
0.192157 0.698039 0.968627
|
| 496 |
-
0.317647 0.698039 0.968627
|
| 497 |
-
0.443137 0.698039 0.968627
|
| 498 |
-
0.572549 0.698039 0.968627
|
| 499 |
-
0.698039 0.698039 0.968627
|
| 500 |
-
0.823529 0.698039 0.968627
|
| 501 |
-
0.952941 0.698039 0.968627
|
| 502 |
-
0.062745 0.823529 0.984314
|
| 503 |
-
0.192157 0.823529 0.984314
|
| 504 |
-
0.317647 0.823529 0.984314
|
| 505 |
-
0.443137 0.823529 0.984314
|
| 506 |
-
0.572549 0.823529 0.984314
|
| 507 |
-
0.698039 0.823529 0.984314
|
| 508 |
-
0.823529 0.823529 0.984314
|
| 509 |
-
0.952941 0.823529 0.984314
|
| 510 |
-
0.062745 0.952941 1.000000
|
| 511 |
-
0.192157 0.952941 1.000000
|
| 512 |
-
0.317647 0.952941 1.000000
|
| 513 |
-
0.443137 0.952941 1.000000
|
| 514 |
-
0.572549 0.952941 1.000000
|
| 515 |
-
0.698039 0.952941 1.000000
|
| 516 |
-
0.823529 0.952941 1.000000
|
| 517 |
-
0.952941 0.952941 1.000000
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app.py
CHANGED
|
@@ -1184,7 +1184,7 @@ with gr.Blocks(css_paths="style_20250314.css", title=title, theme='Surn/beeuty',
|
|
| 1184 |
btn_sketch_alpha_composite = gr.Button("Overlay Sketch on Input Image", elem_id="btn_sketchninput", elem_classes="solid")
|
| 1185 |
gr.Markdown("### Do Not add to image if using a fill model")
|
| 1186 |
|
| 1187 |
-
with gr.Column():
|
| 1188 |
with gr.Accordion("Hex Coloring and Exclusion", open = False):
|
| 1189 |
with gr.Row():
|
| 1190 |
with gr.Column():
|
|
@@ -1195,7 +1195,7 @@ with gr.Blocks(css_paths="style_20250314.css", title=title, theme='Surn/beeuty',
|
|
| 1195 |
exclude_color_button = gr.Button("Exclude Color", elem_id="exlude_color_button", elem_classes="solid")
|
| 1196 |
color_display = gr.DataFrame(label="List of Excluded RGBA Colors", headers=["R", "G", "B", "A"], elem_id="excluded_colors", type="array", value=build_dataframe(excluded_color_list), interactive=True, elem_classes="solid centered")
|
| 1197 |
selected_row = gr.Number(0, label="Selected Row", visible=False)
|
| 1198 |
-
delete_button = gr.Button("Delete Row", elem_id="delete_exclusion_button", elem_classes="solid")
|
| 1199 |
with gr.Accordion("Image Filters", open = False):
|
| 1200 |
with gr.Row():
|
| 1201 |
with gr.Column():
|
|
@@ -1212,7 +1212,7 @@ with gr.Blocks(css_paths="style_20250314.css", title=title, theme='Surn/beeuty',
|
|
| 1212 |
label="LUT cube File",
|
| 1213 |
height=120)
|
| 1214 |
with gr.Row():
|
| 1215 |
-
lut_intensity = gr.Slider(label="Filter Intensity", minimum=-200, maximum=200, value=100, interactive=True)
|
| 1216 |
apply_lut_button = gr.Button("Apply Filter (LUT)", elem_classes="solid", elem_id="apply_lut_button")
|
| 1217 |
with gr.Row():
|
| 1218 |
lut_example_image = gr.Image(type="pil", label="Filter (LUT) Example Image", value=constants.default_lut_example_img)
|
|
@@ -1220,22 +1220,21 @@ with gr.Blocks(css_paths="style_20250314.css", title=title, theme='Surn/beeuty',
|
|
| 1220 |
with gr.Column():
|
| 1221 |
gr.Markdown("""
|
| 1222 |
### Included Filters (LUTs)
|
| 1223 |
-
|
| 1224 |
-
|
| 1225 |
-
Try them on the example image before applying to your Input Image.
|
| 1226 |
""", elem_id="lut_markdown")
|
| 1227 |
with gr.Column():
|
| 1228 |
gr.Examples(elem_id="lut_examples",
|
| 1229 |
examples=[[f] for f in constants.lut_files],
|
| 1230 |
inputs=[lut_filename],
|
| 1231 |
outputs=[lut_filename],
|
| 1232 |
-
label="Select a Filter (LUT) file
|
| 1233 |
-
examples_per_page =
|
| 1234 |
)
|
| 1235 |
|
| 1236 |
lut_file.change(get_filename, inputs=[lut_file], outputs=[lut_filename])
|
| 1237 |
lut_filename.change(show_lut, inputs=[lut_filename, input_image, lut_intensity], outputs=[lut_example_image], scroll_to_output=True)
|
| 1238 |
-
lut_intensity.change(show_lut, inputs=[lut_filename, input_image, lut_intensity], outputs=[lut_example_image]
|
| 1239 |
apply_lut_button.click(
|
| 1240 |
lambda lut_filename, input_image, lut_intensity: gr.Warning("Please upload an Input Image to get started.") if input_image is None else apply_lut_to_image_path(lut_filename, input_image, lut_intensity)[1],
|
| 1241 |
inputs=[lut_filename, input_image, lut_intensity],
|
|
@@ -1251,7 +1250,12 @@ with gr.Blocks(css_paths="style_20250314.css", title=title, theme='Surn/beeuty',
|
|
| 1251 |
with gr.Row():
|
| 1252 |
with gr.Accordion("Generate AI Image (click here for options)", open = False):
|
| 1253 |
with gr.Row():
|
| 1254 |
-
with gr.Column():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1255 |
# model_options = gr.Dropdown(
|
| 1256 |
# label="Choose an AI Model*",
|
| 1257 |
# choices=constants.MODELS + constants.LORA_WEIGHTS + ["Manual Entry"],
|
|
@@ -1305,7 +1309,7 @@ with gr.Blocks(css_paths="style_20250314.css", title=title, theme='Surn/beeuty',
|
|
| 1305 |
label="Prompt",
|
| 1306 |
visible=False,
|
| 1307 |
elem_classes="solid",
|
| 1308 |
-
value="
|
| 1309 |
lines=4
|
| 1310 |
)
|
| 1311 |
negative_prompt_textbox = gr.Textbox(
|
|
@@ -1326,32 +1330,29 @@ with gr.Blocks(css_paths="style_20250314.css", title=title, theme='Surn/beeuty',
|
|
| 1326 |
inputs=[map_options],
|
| 1327 |
outputs=[prompt_textbox, negative_prompt_textbox, prompt_notes_label]
|
| 1328 |
)
|
| 1329 |
-
with gr.Row():
|
| 1330 |
-
generate_input_image = gr.Button(
|
| 1331 |
-
"Generate from Input Image & Options ",
|
| 1332 |
-
elem_id="generate_input_image",
|
| 1333 |
-
elem_classes="solid"
|
| 1334 |
-
)
|
| 1335 |
with gr.Column(scale=2):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1336 |
with gr.Accordion("Template Images", open = False):
|
| 1337 |
with gr.Row():
|
| 1338 |
with gr.Column(scale=2):
|
| 1339 |
# Gallery from PRE_RENDERED_IMAGES GOES HERE
|
| 1340 |
prerendered_image_gallery = gr.Gallery(label="Image Gallery", show_label=True, value=build_prerendered_images_by_quality(3,'thumbnail'), elem_id="gallery",
|
| 1341 |
elem_classes="solid", type="filepath", columns=[3], rows=[3], preview=False ,object_fit="contain", height="auto", format="png",allow_preview=False)
|
| 1342 |
-
|
| 1343 |
-
|
| 1344 |
-
"Replace Input Image",
|
| 1345 |
-
elem_id="prerendered_replace_input_image_button",
|
| 1346 |
-
elem_classes="solid"
|
| 1347 |
-
)
|
| 1348 |
-
generate_input_image_from_gallery = gr.Button(
|
| 1349 |
-
"Generate AI Image from Template Image & Options",
|
| 1350 |
-
elem_id="generate_input_image_from_gallery",
|
| 1351 |
-
elem_classes="solid"
|
| 1352 |
-
)
|
| 1353 |
-
image_guidance_stength = gr.Slider(label="Image Guidance Strength (prompt percentage)", minimum=0, maximum=1.0, value=0.85, step=0.01, interactive=True)
|
| 1354 |
-
|
| 1355 |
with gr.Accordion("Advanced Hexagon Settings", open = False):
|
| 1356 |
with gr.Row():
|
| 1357 |
start_x = gr.Number(label="Start X", value=20, minimum=-512, maximum= 512, precision=0)
|
|
|
|
| 1184 |
btn_sketch_alpha_composite = gr.Button("Overlay Sketch on Input Image", elem_id="btn_sketchninput", elem_classes="solid")
|
| 1185 |
gr.Markdown("### Do Not add to image if using a fill model")
|
| 1186 |
|
| 1187 |
+
with gr.Column(scale=1):
|
| 1188 |
with gr.Accordion("Hex Coloring and Exclusion", open = False):
|
| 1189 |
with gr.Row():
|
| 1190 |
with gr.Column():
|
|
|
|
| 1195 |
exclude_color_button = gr.Button("Exclude Color", elem_id="exlude_color_button", elem_classes="solid")
|
| 1196 |
color_display = gr.DataFrame(label="List of Excluded RGBA Colors", headers=["R", "G", "B", "A"], elem_id="excluded_colors", type="array", value=build_dataframe(excluded_color_list), interactive=True, elem_classes="solid centered")
|
| 1197 |
selected_row = gr.Number(0, label="Selected Row", visible=False)
|
| 1198 |
+
delete_button = gr.Button("Delete Row", elem_id="delete_exclusion_button", elem_classes="solid")
|
| 1199 |
with gr.Accordion("Image Filters", open = False):
|
| 1200 |
with gr.Row():
|
| 1201 |
with gr.Column():
|
|
|
|
| 1212 |
label="LUT cube File",
|
| 1213 |
height=120)
|
| 1214 |
with gr.Row():
|
| 1215 |
+
lut_intensity = gr.Slider(label="Filter Intensity", minimum=-200, maximum=200, value=100, info="0 none, negative inverts the filter", interactive=True)
|
| 1216 |
apply_lut_button = gr.Button("Apply Filter (LUT)", elem_classes="solid", elem_id="apply_lut_button")
|
| 1217 |
with gr.Row():
|
| 1218 |
lut_example_image = gr.Image(type="pil", label="Filter (LUT) Example Image", value=constants.default_lut_example_img)
|
|
|
|
| 1220 |
with gr.Column():
|
| 1221 |
gr.Markdown("""
|
| 1222 |
### Included Filters (LUTs)
|
| 1223 |
+
Try on Example Image then APPLY FILTER to Input Image.
|
| 1224 |
+
*-none.cube files are placebo controls
|
|
|
|
| 1225 |
""", elem_id="lut_markdown")
|
| 1226 |
with gr.Column():
|
| 1227 |
gr.Examples(elem_id="lut_examples",
|
| 1228 |
examples=[[f] for f in constants.lut_files],
|
| 1229 |
inputs=[lut_filename],
|
| 1230 |
outputs=[lut_filename],
|
| 1231 |
+
label="Select a Filter (LUT) file to populate the LUT File Name field",
|
| 1232 |
+
examples_per_page = 25,
|
| 1233 |
)
|
| 1234 |
|
| 1235 |
lut_file.change(get_filename, inputs=[lut_file], outputs=[lut_filename])
|
| 1236 |
lut_filename.change(show_lut, inputs=[lut_filename, input_image, lut_intensity], outputs=[lut_example_image], scroll_to_output=True)
|
| 1237 |
+
lut_intensity.change(show_lut, inputs=[lut_filename, input_image, lut_intensity], outputs=[lut_example_image])
|
| 1238 |
apply_lut_button.click(
|
| 1239 |
lambda lut_filename, input_image, lut_intensity: gr.Warning("Please upload an Input Image to get started.") if input_image is None else apply_lut_to_image_path(lut_filename, input_image, lut_intensity)[1],
|
| 1240 |
inputs=[lut_filename, input_image, lut_intensity],
|
|
|
|
| 1250 |
with gr.Row():
|
| 1251 |
with gr.Accordion("Generate AI Image (click here for options)", open = False):
|
| 1252 |
with gr.Row():
|
| 1253 |
+
with gr.Column(scale=1):
|
| 1254 |
+
generate_input_image = gr.Button(
|
| 1255 |
+
"Generate from Input Image & Options ",
|
| 1256 |
+
elem_id="generate_input_image",
|
| 1257 |
+
elem_classes="solid"
|
| 1258 |
+
)
|
| 1259 |
# model_options = gr.Dropdown(
|
| 1260 |
# label="Choose an AI Model*",
|
| 1261 |
# choices=constants.MODELS + constants.LORA_WEIGHTS + ["Manual Entry"],
|
|
|
|
| 1309 |
label="Prompt",
|
| 1310 |
visible=False,
|
| 1311 |
elem_classes="solid",
|
| 1312 |
+
value="Planetary overhead view, directly from above, centered on the planet’s surface, (rectangular tabletop_map) alien planet map, Battletech_boardgame scifi world with forests, lakes, oceans, continents and snow at the top and bottom, (middle is dark, no_reflections, no_shadows), looking straight down.",
|
| 1313 |
lines=4
|
| 1314 |
)
|
| 1315 |
negative_prompt_textbox = gr.Textbox(
|
|
|
|
| 1330 |
inputs=[map_options],
|
| 1331 |
outputs=[prompt_textbox, negative_prompt_textbox, prompt_notes_label]
|
| 1332 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1333 |
with gr.Column(scale=2):
|
| 1334 |
+
with gr.Row():
|
| 1335 |
+
with gr.Column():
|
| 1336 |
+
generate_input_image_from_gallery = gr.Button(
|
| 1337 |
+
"Generate AI Image from Template Options",
|
| 1338 |
+
elem_id="generate_input_image_from_gallery",
|
| 1339 |
+
elem_classes="solid"
|
| 1340 |
+
)
|
| 1341 |
+
with gr.Column():
|
| 1342 |
+
replace_input_image_button = gr.Button(
|
| 1343 |
+
"Replace Input Image with Template",
|
| 1344 |
+
elem_id="prerendered_replace_input_image_button",
|
| 1345 |
+
elem_classes="solid"
|
| 1346 |
+
)
|
| 1347 |
+
with gr.Row():
|
| 1348 |
with gr.Accordion("Template Images", open = False):
|
| 1349 |
with gr.Row():
|
| 1350 |
with gr.Column(scale=2):
|
| 1351 |
# Gallery from PRE_RENDERED_IMAGES GOES HERE
|
| 1352 |
prerendered_image_gallery = gr.Gallery(label="Image Gallery", show_label=True, value=build_prerendered_images_by_quality(3,'thumbnail'), elem_id="gallery",
|
| 1353 |
elem_classes="solid", type="filepath", columns=[3], rows=[3], preview=False ,object_fit="contain", height="auto", format="png",allow_preview=False)
|
| 1354 |
+
with gr.Row():
|
| 1355 |
+
image_guidance_stength = gr.Slider(label="Image Guidance Strength (prompt percentage)", info="applies to Input, Sketch and Template Image",minimum=0, maximum=1.0, value=0.85, step=0.01, interactive=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1356 |
with gr.Accordion("Advanced Hexagon Settings", open = False):
|
| 1357 |
with gr.Row():
|
| 1358 |
start_x = gr.Number(label="Start X", value=20, minimum=-512, maximum= 512, precision=0)
|
utils/constants.py
CHANGED
|
@@ -62,25 +62,29 @@ if not HF_API_TOKEN:
|
|
| 62 |
default_lut_example_img = "./LUT/daisy.jpg"
|
| 63 |
MAX_SEED = np.iinfo(np.int32).max
|
| 64 |
TARGET_SIZE = (2688,1536)
|
| 65 |
-
BASE_HEIGHT =
|
| 66 |
-
SCALE_FACTOR = (
|
| 67 |
TMPDIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'tmp')
|
| 68 |
os.makedirs(TMPDIR, exist_ok=True)
|
| 69 |
|
| 70 |
|
| 71 |
PROMPTS = {
|
| 72 |
-
"
|
| 73 |
-
"
|
| 74 |
-
"
|
| 75 |
-
"
|
| 76 |
-
"
|
| 77 |
-
"Alien
|
| 78 |
-
"
|
| 79 |
-
"
|
|
|
|
|
|
|
|
|
|
| 80 |
"Prompt": None # Indicates that the prompt should be taken from prompt_textbox
|
| 81 |
}
|
| 82 |
|
| 83 |
NEGATIVE_PROMPTS = {
|
|
|
|
| 84 |
"BorderBlack": "humans, modern_buildings, vehicles, text, logos, reflections, shadows, realistic map of the Earth, isometric",
|
| 85 |
"Earth": "humans, modern_buildings, vehicles, text, logos, reflections, shadows, missing map of the Earth, isometric",
|
| 86 |
"Beeuty": "humans, modern_buildings, vehicles, text, logos, reflections, shadows, map of the Earth, isometric",
|
|
@@ -89,6 +93,8 @@ NEGATIVE_PROMPTS = {
|
|
| 89 |
"Alien World": "Earth, humans, modern_buildings, vehicles, text, logos, reflections, shadows, realistic map of the Earth, isometric",
|
| 90 |
"Mystic Forest": "humans, modern_buildings, vehicles, text, logos, reflections, shadows, realistic map of the Earth, isometric",
|
| 91 |
"Medieval Battlefield": "humans, modern_buildings, vehicles, text, logos, reflections, shadows, realistic map of the Earth, isometric",
|
|
|
|
|
|
|
| 92 |
"Prompt": None # Indicates that the negative prompt should be taken from negative_prompt_textbox
|
| 93 |
}
|
| 94 |
|
|
|
|
| 62 |
default_lut_example_img = "./LUT/daisy.jpg"
|
| 63 |
MAX_SEED = np.iinfo(np.int32).max
|
| 64 |
TARGET_SIZE = (2688,1536)
|
| 65 |
+
BASE_HEIGHT = 640
|
| 66 |
+
SCALE_FACTOR = (12/5)
|
| 67 |
TMPDIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'tmp')
|
| 68 |
os.makedirs(TMPDIR, exist_ok=True)
|
| 69 |
|
| 70 |
|
| 71 |
PROMPTS = {
|
| 72 |
+
"Mecha Wasteland Arena": "Regional overhead view, directly from above, centered on the map, of a Mecha battlefield map. post-industrial wasteland with crumbling structures, volcanic ridges, scrapyards, and ash plains. Features elevated overwatch positions for long-range combat and tight brawling areas for close-quarters engagements. Colors: rusted red, charcoal gray, muted orange, ash white, dark brown. Partial edge hexes are black.",
|
| 73 |
+
"BorderBlack": "Planetary overhead view, directly from above, centered on the planet’s surface, of a hexagon-based alien world map with black borders. Features rivers, mountains, volcanoes, and polar snow regions. Colors: light blue, green, tan, brown. No reflections or shadows. Partial edge hexes are black.",
|
| 74 |
+
"Earth": "Planetary overhead view, directly from above, centered on the planet’s surface, of an Earth-like world map with rivers, mountains, volcanoes, and polar snow regions. Colors: light blue, green, tan, brown. No reflections or shadows. Partial edge hexes are black.",
|
| 75 |
+
"Beeuty": "Regional overhead view, directly from above, centered on the map, of a tabletop gaming map with honeycomb-shaped terrain, lakes, dense forests, magical flora, and hex grids. Designed for clarity and strategic gameplay. Colors: yellow, green, purple, brown. Partial edge hexes are black.",
|
| 76 |
+
"Scifi City": "Regional overhead view, directly from above, centered on the map, of a futuristic urban battlefield map with lakes, forests, ruined buildings, and city streets. Designed for clarity and strategic gameplay in tabletop games. Colors: teal, dark green, violet, brown. Partial edge hexes are black.",
|
| 77 |
+
"Alien Landscape": "Planetary overhead view, directly from above, centered on the planet’s surface, of a barren alien world map composed of hexagon tiles. Features light blue rivers, brown mountains, red volcanoes, and white polar snow. Colors: light blue, green, tan, brown. Partial edge hexes are black.",
|
| 78 |
+
"Alien World": "Planetary overhead view, directly from above, centered on the planet’s surface, of an alien world map built from hexagon tiles. Includes rivers, mountains, volcanoes, and snowy regions. Colors: light blue, green, tan, brown. Partial edge hexes are black.",
|
| 79 |
+
"Mystic Forest": "Regional overhead view, directly from above, centered on the map, of a mystic forest map with lakes, dense forests, magical flora, and hex grids. Designed for clarity and strategic gameplay in tabletop gaming. Colors: light blue, green, purple, brown. Partial edge hexes are black.",
|
| 80 |
+
"Medieval Battlefield": "Regional overhead view, directly from above, centered on the map, of a medieval battlefield map with lakes, forests, and magical fauna. Designed for clarity and strategic gameplay in tabletop games. Colors: teal, dark green, violet, brown. Partial edge hexes are black.",
|
| 81 |
+
"Dungeon Interior": "Regional overhead view, directly from above, centered on the map, of a dungeon interior map for tabletop gaming. Features stone walls, corridors, rooms with doors, traps, and treasure chests. Designed for clarity and strategic gameplay. Colors: gray, brown, dark blue. Partial edge hexes are black.",
|
| 82 |
+
"Desert Wasteland": "Regional overhead view, directly from above, centered on the map, of a desert wasteland map for tabletop gaming. Features sand dunes, rocky canyons, oases, and ancient ruins. Colors: yellow, tan, brown, blue, green. Partial edge hexes are black.",
|
| 83 |
"Prompt": None # Indicates that the prompt should be taken from prompt_textbox
|
| 84 |
}
|
| 85 |
|
| 86 |
NEGATIVE_PROMPTS = {
|
| 87 |
+
"Mecha Wasteland Arena": "humans, old_buildings, water, bright colors, text, logos, shadows, Earth geography, isometric",
|
| 88 |
"BorderBlack": "humans, modern_buildings, vehicles, text, logos, reflections, shadows, realistic map of the Earth, isometric",
|
| 89 |
"Earth": "humans, modern_buildings, vehicles, text, logos, reflections, shadows, missing map of the Earth, isometric",
|
| 90 |
"Beeuty": "humans, modern_buildings, vehicles, text, logos, reflections, shadows, map of the Earth, isometric",
|
|
|
|
| 93 |
"Alien World": "Earth, humans, modern_buildings, vehicles, text, logos, reflections, shadows, realistic map of the Earth, isometric",
|
| 94 |
"Mystic Forest": "humans, modern_buildings, vehicles, text, logos, reflections, shadows, realistic map of the Earth, isometric",
|
| 95 |
"Medieval Battlefield": "humans, modern_buildings, vehicles, text, logos, reflections, shadows, realistic map of the Earth, isometric",
|
| 96 |
+
"Dungeon Interior":"humans, modern_buildings, vehicles, text, logos, reflections, shadows, outdoor elements, realistic map of the Earth, isometric",
|
| 97 |
+
"Desert Wasteland":"humans, modern_buildings, vehicles, text, logos, reflections, shadows, lush forests, large bodies of water, snow, realistic map of the Earth, isometric",
|
| 98 |
"Prompt": None # Indicates that the negative prompt should be taken from negative_prompt_textbox
|
| 99 |
}
|
| 100 |
|