malcolmrey commited on
Commit
2112638
·
verified ·
1 Parent(s): b4cd3bf

Upload 13 files

Browse files
data-filenames.js CHANGED
The diff for this file is too large to render. See raw diff
 
data-filenames.json CHANGED
The diff for this file is too large to render. See raw diff
 
data-hf-images.js CHANGED
@@ -1052,6 +1052,28 @@ const hfImages = {
1052
  "framework": "Klein9"
1053
  }
1054
  ],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1055
  "LTX": [
1056
  {
1057
  "url": "https://huggingface.co/datasets/malcolmrey/samples/resolve/main/ltx/ltx2_feliciaday_00001_.png",
@@ -1180,6 +1202,28 @@ const hfImages = {
1180
  "framework": "Klein9"
1181
  }
1182
  ],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1183
  "WAN": [
1184
  {
1185
  "url": "https://huggingface.co/datasets/malcolmrey/samples/resolve/main/wan/wan_gilliananderson_00001_.png",
@@ -26722,6 +26766,18 @@ const hfImages = {
26722
  "framework": "Ideogram4"
26723
  }
26724
  ],
 
 
 
 
 
 
 
 
 
 
 
 
26725
  "WAN": [
26726
  {
26727
  "url": "https://huggingface.co/datasets/malcolmrey/samples/resolve/main/wan/wan_klaudiajachira_00001_.png",
@@ -41288,6 +41344,15 @@ const hfImages = {
41288
  }
41289
  ]
41290
  },
 
 
 
 
 
 
 
 
 
41291
  "aarontaylorjohnson": {
41292
  "WAN": [
41293
  {
 
1052
  "framework": "Klein9"
1053
  }
1054
  ],
1055
+ "Krea2": [
1056
+ {
1057
+ "url": "https://huggingface.co/datasets/malcolmrey/samples/resolve/main/krea2/krea2_feliciaday_00001_.png",
1058
+ "filename": "krea2_feliciaday_00001_.png",
1059
+ "framework": "Krea2"
1060
+ },
1061
+ {
1062
+ "url": "https://huggingface.co/datasets/malcolmrey/samples/resolve/main/krea2/krea2_feliciaday_00002_.png",
1063
+ "filename": "krea2_feliciaday_00002_.png",
1064
+ "framework": "Krea2"
1065
+ },
1066
+ {
1067
+ "url": "https://huggingface.co/datasets/malcolmrey/samples/resolve/main/krea2/krea2_feliciaday_00003_.png",
1068
+ "filename": "krea2_feliciaday_00003_.png",
1069
+ "framework": "Krea2"
1070
+ },
1071
+ {
1072
+ "url": "https://huggingface.co/datasets/malcolmrey/samples/resolve/main/krea2/krea2_feliciaday_00004_.png",
1073
+ "filename": "krea2_feliciaday_00004_.png",
1074
+ "framework": "Krea2"
1075
+ }
1076
+ ],
1077
  "LTX": [
1078
  {
1079
  "url": "https://huggingface.co/datasets/malcolmrey/samples/resolve/main/ltx/ltx2_feliciaday_00001_.png",
 
1202
  "framework": "Klein9"
1203
  }
1204
  ],
1205
+ "Krea2": [
1206
+ {
1207
+ "url": "https://huggingface.co/datasets/malcolmrey/samples/resolve/main/krea2/krea2_gilliananderson_00001_.png",
1208
+ "filename": "krea2_gilliananderson_00001_.png",
1209
+ "framework": "Krea2"
1210
+ },
1211
+ {
1212
+ "url": "https://huggingface.co/datasets/malcolmrey/samples/resolve/main/krea2/krea2_gilliananderson_00002_.png",
1213
+ "filename": "krea2_gilliananderson_00002_.png",
1214
+ "framework": "Krea2"
1215
+ },
1216
+ {
1217
+ "url": "https://huggingface.co/datasets/malcolmrey/samples/resolve/main/krea2/krea2_gilliananderson_00003_.png",
1218
+ "filename": "krea2_gilliananderson_00003_.png",
1219
+ "framework": "Krea2"
1220
+ },
1221
+ {
1222
+ "url": "https://huggingface.co/datasets/malcolmrey/samples/resolve/main/krea2/krea2_gilliananderson_00004_.png",
1223
+ "filename": "krea2_gilliananderson_00004_.png",
1224
+ "framework": "Krea2"
1225
+ }
1226
+ ],
1227
  "WAN": [
1228
  {
1229
  "url": "https://huggingface.co/datasets/malcolmrey/samples/resolve/main/wan/wan_gilliananderson_00001_.png",
 
26766
  "framework": "Ideogram4"
26767
  }
26768
  ],
26769
+ "Krea2": [
26770
+ {
26771
+ "url": "https://huggingface.co/datasets/malcolmrey/samples/resolve/main/krea2/krea2_klaudiajachira_00001_.png",
26772
+ "filename": "krea2_klaudiajachira_00001_.png",
26773
+ "framework": "Krea2"
26774
+ },
26775
+ {
26776
+ "url": "https://huggingface.co/datasets/malcolmrey/samples/resolve/main/krea2/krea2_klaudiajachira_00002_.png",
26777
+ "filename": "krea2_klaudiajachira_00002_.png",
26778
+ "framework": "Krea2"
26779
+ }
26780
+ ],
26781
  "WAN": [
26782
  {
26783
  "url": "https://huggingface.co/datasets/malcolmrey/samples/resolve/main/wan/wan_klaudiajachira_00001_.png",
 
41344
  }
41345
  ]
41346
  },
41347
+ "krea2feliciaday": {
41348
+ "Krea2": [
41349
+ {
41350
+ "url": "https://huggingface.co/datasets/malcolmrey/samples/resolve/main/krea2/krea2_krea2_feliciaday_00001_.png",
41351
+ "filename": "krea2_krea2_feliciaday_00001_.png",
41352
+ "framework": "Krea2"
41353
+ }
41354
+ ]
41355
+ },
41356
  "aarontaylorjohnson": {
41357
  "WAN": [
41358
  {
data-hf-images.json CHANGED
@@ -1052,6 +1052,28 @@
1052
  "framework": "Klein9"
1053
  }
1054
  ],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1055
  "LTX": [
1056
  {
1057
  "url": "https://huggingface.co/datasets/malcolmrey/samples/resolve/main/ltx/ltx2_feliciaday_00001_.png",
@@ -1180,6 +1202,28 @@
1180
  "framework": "Klein9"
1181
  }
1182
  ],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1183
  "WAN": [
1184
  {
1185
  "url": "https://huggingface.co/datasets/malcolmrey/samples/resolve/main/wan/wan_gilliananderson_00001_.png",
@@ -26722,6 +26766,18 @@
26722
  "framework": "Ideogram4"
26723
  }
26724
  ],
 
 
 
 
 
 
 
 
 
 
 
 
26725
  "WAN": [
26726
  {
26727
  "url": "https://huggingface.co/datasets/malcolmrey/samples/resolve/main/wan/wan_klaudiajachira_00001_.png",
@@ -41288,6 +41344,15 @@
41288
  }
41289
  ]
41290
  },
 
 
 
 
 
 
 
 
 
41291
  "aarontaylorjohnson": {
41292
  "WAN": [
41293
  {
@@ -43515,4 +43580,4 @@
43515
  }
43516
  ]
43517
  }
43518
- }
 
1052
  "framework": "Klein9"
1053
  }
1054
  ],
1055
+ "Krea2": [
1056
+ {
1057
+ "url": "https://huggingface.co/datasets/malcolmrey/samples/resolve/main/krea2/krea2_feliciaday_00001_.png",
1058
+ "filename": "krea2_feliciaday_00001_.png",
1059
+ "framework": "Krea2"
1060
+ },
1061
+ {
1062
+ "url": "https://huggingface.co/datasets/malcolmrey/samples/resolve/main/krea2/krea2_feliciaday_00002_.png",
1063
+ "filename": "krea2_feliciaday_00002_.png",
1064
+ "framework": "Krea2"
1065
+ },
1066
+ {
1067
+ "url": "https://huggingface.co/datasets/malcolmrey/samples/resolve/main/krea2/krea2_feliciaday_00003_.png",
1068
+ "filename": "krea2_feliciaday_00003_.png",
1069
+ "framework": "Krea2"
1070
+ },
1071
+ {
1072
+ "url": "https://huggingface.co/datasets/malcolmrey/samples/resolve/main/krea2/krea2_feliciaday_00004_.png",
1073
+ "filename": "krea2_feliciaday_00004_.png",
1074
+ "framework": "Krea2"
1075
+ }
1076
+ ],
1077
  "LTX": [
1078
  {
1079
  "url": "https://huggingface.co/datasets/malcolmrey/samples/resolve/main/ltx/ltx2_feliciaday_00001_.png",
 
1202
  "framework": "Klein9"
1203
  }
1204
  ],
1205
+ "Krea2": [
1206
+ {
1207
+ "url": "https://huggingface.co/datasets/malcolmrey/samples/resolve/main/krea2/krea2_gilliananderson_00001_.png",
1208
+ "filename": "krea2_gilliananderson_00001_.png",
1209
+ "framework": "Krea2"
1210
+ },
1211
+ {
1212
+ "url": "https://huggingface.co/datasets/malcolmrey/samples/resolve/main/krea2/krea2_gilliananderson_00002_.png",
1213
+ "filename": "krea2_gilliananderson_00002_.png",
1214
+ "framework": "Krea2"
1215
+ },
1216
+ {
1217
+ "url": "https://huggingface.co/datasets/malcolmrey/samples/resolve/main/krea2/krea2_gilliananderson_00003_.png",
1218
+ "filename": "krea2_gilliananderson_00003_.png",
1219
+ "framework": "Krea2"
1220
+ },
1221
+ {
1222
+ "url": "https://huggingface.co/datasets/malcolmrey/samples/resolve/main/krea2/krea2_gilliananderson_00004_.png",
1223
+ "filename": "krea2_gilliananderson_00004_.png",
1224
+ "framework": "Krea2"
1225
+ }
1226
+ ],
1227
  "WAN": [
1228
  {
1229
  "url": "https://huggingface.co/datasets/malcolmrey/samples/resolve/main/wan/wan_gilliananderson_00001_.png",
 
26766
  "framework": "Ideogram4"
26767
  }
26768
  ],
26769
+ "Krea2": [
26770
+ {
26771
+ "url": "https://huggingface.co/datasets/malcolmrey/samples/resolve/main/krea2/krea2_klaudiajachira_00001_.png",
26772
+ "filename": "krea2_klaudiajachira_00001_.png",
26773
+ "framework": "Krea2"
26774
+ },
26775
+ {
26776
+ "url": "https://huggingface.co/datasets/malcolmrey/samples/resolve/main/krea2/krea2_klaudiajachira_00002_.png",
26777
+ "filename": "krea2_klaudiajachira_00002_.png",
26778
+ "framework": "Krea2"
26779
+ }
26780
+ ],
26781
  "WAN": [
26782
  {
26783
  "url": "https://huggingface.co/datasets/malcolmrey/samples/resolve/main/wan/wan_klaudiajachira_00001_.png",
 
41344
  }
41345
  ]
41346
  },
41347
+ "krea2feliciaday": {
41348
+ "Krea2": [
41349
+ {
41350
+ "url": "https://huggingface.co/datasets/malcolmrey/samples/resolve/main/krea2/krea2_krea2_feliciaday_00001_.png",
41351
+ "filename": "krea2_krea2_feliciaday_00001_.png",
41352
+ "framework": "Krea2"
41353
+ }
41354
+ ]
41355
+ },
41356
  "aarontaylorjohnson": {
41357
  "WAN": [
41358
  {
 
43580
  }
43581
  ]
43582
  }
43583
+ }
data-hf-uploaded.js CHANGED
The diff for this file is too large to render. See raw diff
 
data-hf-uploaded.json CHANGED
The diff for this file is too large to render. See raw diff
 
data-huggingface.js CHANGED
The diff for this file is too large to render. See raw diff
 
data-huggingface.json CHANGED
The diff for this file is too large to render. See raw diff
 
data-unique-people.json CHANGED
@@ -1,7 +1,7 @@
1
  {
2
  "_metadata": {
3
- "generated": "2026-06-24T19:10:22.917Z",
4
- "totalPeople": 1506
5
  },
6
  "people": [
7
  "aaliyah",
@@ -232,10 +232,7 @@
232
  "biancablanchard",
233
  "biancacensori",
234
  "billieeilish",
235
- "billieeilishblonde",
236
- "billieeilishblueblack",
237
  "billieeilishgreen",
238
- "billieeilishgrey",
239
  "billielourd",
240
  "billiepiper",
241
  "billmurray",
@@ -303,9 +300,7 @@
303
  "cathrinebell",
304
  "catwoman",
305
  "cbg",
306
- "characterfuumakotarou",
307
  "characterharold",
308
- "charactermeredithstout",
309
  "charismacarpenter",
310
  "charlidamelio",
311
  "charliecox",
@@ -1511,4 +1506,4 @@
1511
  "zofiajastrzebska",
1512
  "zuleikharobinson"
1513
  ]
1514
- }
 
1
  {
2
  "_metadata": {
3
+ "generated": "2026-06-30T15:46:26.946Z",
4
+ "totalPeople": 1501
5
  },
6
  "people": [
7
  "aaliyah",
 
232
  "biancablanchard",
233
  "biancacensori",
234
  "billieeilish",
 
 
235
  "billieeilishgreen",
 
236
  "billielourd",
237
  "billiepiper",
238
  "billmurray",
 
300
  "cathrinebell",
301
  "catwoman",
302
  "cbg",
 
303
  "characterharold",
 
304
  "charismacarpenter",
305
  "charlidamelio",
306
  "charliecox",
 
1506
  "zofiajastrzebska",
1507
  "zuleikharobinson"
1508
  ]
1509
+ }
gallery.html CHANGED
@@ -1,1018 +1,1022 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <title>Samples Gallery</title>
7
- <script type="text/javascript" src="data-hf-images.js"></script>
8
- <script type="text/javascript" src="data-hf-uploaded.js"></script>
9
- <script type="text/javascript" src="data-filenames.js"></script>
10
- <script type="text/javascript" src="data-thumbnails.js"></script>
11
- <script type="text/javascript" src="data-civitai.js"></script>
12
- <link rel="preconnect" href="https://fonts.googleapis.com">
13
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
14
- <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
15
- <style>
16
- :root {
17
- --bg-gradient-start: #0f172a;
18
- --bg-gradient-end: #1e293b;
19
- --text-primary: #f1f5f9;
20
- --text-secondary: #94a3b8;
21
- --text-muted: #64748b;
22
- --link-color: #60a5fa;
23
- --card-bg: rgba(30, 41, 59, 0.7);
24
- --card-border: rgba(148, 163, 184, 0.1);
25
- --input-bg: rgba(15, 23, 42, 0.6);
26
- --input-border: rgba(148, 163, 184, 0.2);
27
- --input-text: #e2e8f0;
28
- --hover-bg: rgba(96, 165, 250, 0.2);
29
- --modal-overlay: rgba(0, 0, 0, 0.85);
30
- --shadow-color: rgba(0, 0, 0, 0.3);
31
- }
32
-
33
- [data-theme="light"] {
34
- --bg-gradient-start: #f8fafc;
35
- --bg-gradient-end: #e2e8f0;
36
- --text-primary: #1e293b;
37
- --text-secondary: #475569;
38
- --text-muted: #64748b;
39
- --link-color: #2563eb;
40
- --card-bg: rgba(255, 255, 255, 0.9);
41
- --card-border: rgba(148, 163, 184, 0.3);
42
- --input-bg: rgba(255, 255, 255, 0.8);
43
- --input-border: rgba(148, 163, 184, 0.4);
44
- --input-text: #1e293b;
45
- --hover-bg: rgba(37, 99, 235, 0.1);
46
- --modal-overlay: rgba(0, 0, 0, 0.5);
47
- --shadow-color: rgba(0, 0, 0, 0.1);
48
- }
49
-
50
- * { margin: 0; padding: 0; box-sizing: border-box; }
51
-
52
- body {
53
- font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
54
- background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
55
- color: var(--text-primary);
56
- min-height: 100vh;
57
- padding: 20px;
58
- }
59
-
60
- a { text-decoration: none; color: var(--link-color); }
61
- a:hover { color: #93c5fd; }
62
-
63
- .header {
64
- display: flex;
65
- align-items: center;
66
- gap: 16px;
67
- margin-bottom: 24px;
68
- flex-wrap: wrap;
69
- }
70
-
71
- .header h1 {
72
- font-size: 1.5rem;
73
- font-weight: 700;
74
- background: linear-gradient(135deg, #60a5fa, #a78bfa);
75
- -webkit-background-clip: text;
76
- -webkit-text-fill-color: transparent;
77
- }
78
-
79
- .back-link {
80
- font-size: 14px;
81
- padding: 6px 12px;
82
- border-radius: 8px;
83
- background: var(--card-bg);
84
- border: 1px solid var(--card-border);
85
- }
86
-
87
- .controls {
88
- display: flex;
89
- gap: 12px;
90
- align-items: center;
91
- flex-wrap: wrap;
92
- margin-bottom: 24px;
93
- padding: 16px;
94
- background: var(--card-bg);
95
- border: 1px solid var(--card-border);
96
- border-radius: 12px;
97
- }
98
-
99
- .control-group {
100
- display: flex;
101
- flex-direction: column;
102
- gap: 4px;
103
- }
104
-
105
- .control-group label {
106
- font-size: 11px;
107
- font-weight: 600;
108
- text-transform: uppercase;
109
- letter-spacing: 0.5px;
110
- color: var(--text-muted);
111
- }
112
-
113
- select {
114
- padding: 8px 12px;
115
- border-radius: 8px;
116
- border: 1px solid var(--input-border);
117
- background: var(--input-bg);
118
- color: var(--input-text);
119
- font-size: 14px;
120
- min-width: 160px;
121
- cursor: pointer;
122
- }
123
-
124
- #searchInput {
125
- padding: 8px 12px;
126
- border-radius: 8px;
127
- border: 1px solid var(--input-border);
128
- background: var(--input-bg);
129
- color: var(--input-text);
130
- font-size: 14px;
131
- min-width: 180px;
132
- outline: none;
133
- }
134
- #searchInput:focus { border-color: var(--link-color); }
135
-
136
- .stats-bar {
137
- display: flex;
138
- gap: 16px;
139
- align-items: center;
140
- margin-bottom: 16px;
141
- font-size: 14px;
142
- color: var(--text-secondary);
143
- }
144
-
145
- .stats-bar strong { color: var(--text-primary); }
146
-
147
- .gallery-grid {
148
- display: grid;
149
- grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
150
- gap: 16px;
151
- }
152
-
153
- .gallery-card {
154
- background: var(--card-bg);
155
- border: 1px solid var(--card-border);
156
- border-radius: 12px;
157
- overflow: hidden;
158
- cursor: pointer;
159
- transition: transform 0.2s, box-shadow 0.2s;
160
- }
161
-
162
- .gallery-card:hover {
163
- transform: translateY(-3px);
164
- box-shadow: 0 8px 24px var(--shadow-color);
165
- }
166
-
167
- .gallery-card img {
168
- width: 100%;
169
- aspect-ratio: 3/4;
170
- object-fit: cover;
171
- display: block;
172
- }
173
-
174
- .gallery-card video {
175
- width: 100%;
176
- aspect-ratio: 3/4;
177
- object-fit: cover;
178
- display: block;
179
- }
180
-
181
- .gallery-card-info {
182
- padding: 10px 12px;
183
- display: flex;
184
- flex-direction: column;
185
- gap: 4px;
186
- }
187
-
188
- .gallery-card-name {
189
- font-size: 13px;
190
- font-weight: 600;
191
- white-space: nowrap;
192
- overflow: hidden;
193
- text-overflow: ellipsis;
194
- }
195
-
196
- .gallery-card-meta {
197
- font-size: 11px;
198
- color: var(--text-muted);
199
- white-space: nowrap;
200
- overflow: hidden;
201
- text-overflow: ellipsis;
202
- }
203
-
204
- .gallery-card-badge {
205
- display: inline-block;
206
- font-size: 10px;
207
- font-weight: 600;
208
- padding: 2px 8px;
209
- border-radius: 8px;
210
- text-transform: uppercase;
211
- letter-spacing: 0.3px;
212
- color: #fff;
213
- background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
214
- }
215
-
216
- .gallery-card-badge[data-type="wan"] { background: linear-gradient(135deg, #dc2626, #f59e0b); }
217
- .gallery-card-badge[data-type="flux"] { background: linear-gradient(135deg, #7c3aed, #c026d3); }
218
- .gallery-card-badge[data-type="klein9"] { background: linear-gradient(135deg, #8b5cf6, #a855f7); }
219
- .gallery-card-badge[data-type="ernie"] { background: linear-gradient(135deg, #be185d, #f472b6); }
220
- .gallery-card-badge[data-type="ideogram4"] { background: linear-gradient(135deg, #d97706, #fbbf24); }
221
- .gallery-card-badge[data-type="zimage"] { background: linear-gradient(135deg, #e11d48, #fb7185); }
222
- .gallery-card-badge[data-type="zbase"] { background: linear-gradient(135deg, #0f766e, #14b8a6); }
223
- .gallery-card-badge[data-type="ltx"] { background: linear-gradient(135deg, #0369a1, #22d3ee); }
224
- .gallery-card-badge[data-type="sdxl"] { background: linear-gradient(135deg, #65a30d, #84cc16); }
225
- .gallery-card-badge[data-type="locon"] { background: linear-gradient(135deg, #16a34a, #22c55e); }
226
- .gallery-card-badge[data-type="lora"] { background: linear-gradient(135deg, #3b82f6, #6366f1); }
227
- .gallery-card-badge[data-type="embedding"] { background: linear-gradient(135deg, #92400e, #f59e0b); }
228
- .gallery-card-badge[data-type="qwen"] { background: linear-gradient(135deg, #0284c7, #38bdf8); }
229
-
230
- .no-results {
231
- text-align: center;
232
- padding: 60px 20px;
233
- color: var(--text-muted);
234
- font-size: 16px;
235
- }
236
-
237
- /* Modal */
238
- .modal-overlay {
239
- display: none;
240
- position: fixed;
241
- inset: 0;
242
- background: var(--modal-overlay);
243
- z-index: 1000;
244
- align-items: center;
245
- justify-content: center;
246
- }
247
-
248
- .modal-overlay.active {
249
- display: flex;
250
- }
251
-
252
- .modal-box {
253
- background: var(--card-bg);
254
- border: 1px solid var(--card-border);
255
- border-radius: 16px;
256
- max-width: 90vw;
257
- max-height: 90vh;
258
- display: flex;
259
- flex-direction: column;
260
- overflow: hidden;
261
- box-shadow: 0 25px 50px var(--shadow-color);
262
- }
263
-
264
- .modal-top {
265
- display: flex;
266
- align-items: center;
267
- justify-content: space-between;
268
- padding: 16px 20px;
269
- border-bottom: 1px solid var(--card-border);
270
- }
271
-
272
- .modal-title {
273
- font-size: 16px;
274
- font-weight: 600;
275
- }
276
-
277
- .modal-person-link {
278
- font-size: 13px;
279
- margin-left: 12px;
280
- }
281
-
282
- .modal-close-btn {
283
- background: none;
284
- border: none;
285
- color: var(--text-secondary);
286
- font-size: 24px;
287
- cursor: pointer;
288
- padding: 4px 8px;
289
- border-radius: 8px;
290
- }
291
-
292
- .modal-close-btn:hover { background: var(--hover-bg); color: var(--text-primary); }
293
-
294
- .modal-media-wrap {
295
- position: relative;
296
- display: flex;
297
- align-items: center;
298
- justify-content: center;
299
- padding: 16px;
300
- min-height: 400px;
301
- }
302
-
303
- .modal-media-wrap img,
304
- .modal-media-wrap video {
305
- max-width: 100%;
306
- max-height: 70vh;
307
- border-radius: 8px;
308
- object-fit: contain;
309
- }
310
-
311
- .nav-btn {
312
- position: absolute;
313
- top: 50%;
314
- transform: translateY(-50%);
315
- background: rgba(0, 0, 0, 0.6);
316
- border: none;
317
- color: #fff;
318
- font-size: 28px;
319
- width: 44px;
320
- height: 44px;
321
- border-radius: 50%;
322
- cursor: pointer;
323
- display: flex;
324
- align-items: center;
325
- justify-content: center;
326
- }
327
-
328
- .nav-btn:hover { background: rgba(0, 0, 0, 0.85); }
329
- .nav-btn.prev { left: 12px; }
330
- .nav-btn.next { right: 12px; }
331
-
332
- .modal-bottom {
333
- display: flex;
334
- align-items: center;
335
- justify-content: space-between;
336
- padding: 12px 20px;
337
- border-top: 1px solid var(--card-border);
338
- gap: 12px;
339
- flex-wrap: wrap;
340
- }
341
-
342
- .modal-counter {
343
- font-size: 13px;
344
- color: var(--text-secondary);
345
- }
346
-
347
- .modal-filename {
348
- font-size: 12px;
349
- color: var(--text-muted);
350
- white-space: nowrap;
351
- overflow: hidden;
352
- text-overflow: ellipsis;
353
- max-width: 300px;
354
- }
355
-
356
- .modal-actions {
357
- display: flex;
358
- gap: 8px;
359
- }
360
-
361
- .btn {
362
- padding: 6px 14px;
363
- border-radius: 8px;
364
- border: 1px solid var(--input-border);
365
- background: var(--input-bg);
366
- color: var(--input-text);
367
- font-size: 13px;
368
- cursor: pointer;
369
- text-decoration: none;
370
- display: inline-flex;
371
- align-items: center;
372
- gap: 4px;
373
- }
374
-
375
- .btn:hover { background: var(--hover-bg); color: var(--text-primary); }
376
-
377
- .theme-toggle {
378
- position: fixed;
379
- top: 20px;
380
- right: 20px;
381
- width: 44px;
382
- height: 44px;
383
- border-radius: 50%;
384
- background: var(--card-bg);
385
- border: 2px solid var(--card-border);
386
- cursor: pointer;
387
- display: flex;
388
- align-items: center;
389
- justify-content: center;
390
- font-size: 20px;
391
- z-index: 1000;
392
- box-shadow: 0 4px 12px var(--shadow-color);
393
- transition: all 0.3s ease;
394
- }
395
- .theme-toggle:hover { transform: scale(1.1); border-color: var(--link-color); }
396
- .theme-toggle .sun-icon { display: none; }
397
- .theme-toggle .moon-icon { display: block; }
398
- [data-theme="light"] .theme-toggle .sun-icon { display: block; }
399
- [data-theme="light"] .theme-toggle .moon-icon { display: none; }
400
-
401
- .pagination-bar { margin: 12px 0; }
402
- .pagination-controls {
403
- display: flex;
404
- align-items: center;
405
- justify-content: space-between;
406
- flex-wrap: wrap;
407
- gap: 8px;
408
- }
409
- .pagination-info { font-size: 13px; color: var(--text-secondary); }
410
- .pagination-buttons { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
411
- .pagination-buttons .btn { min-width: 36px; justify-content: center; }
412
- .pagination-buttons .btn[disabled] { opacity: 0.4; cursor: default; pointer-events: none; }
413
- .pagination-active { background: var(--link-color) !important; color: #fff !important; border-color: var(--link-color) !important; }
414
- .pagination-ellipsis { padding: 0 6px; color: var(--text-muted); }
415
- </style>
416
- </head>
417
- <body>
418
- <button class="theme-toggle" onclick="toggleTheme()" title="Toggle dark/light mode">
419
- <span class="moon-icon">🌙</span>
420
- <span class="sun-icon">☀️</span>
421
- </button>
422
-
423
- <div class="header">
424
- <h1>🖼️ Samples Gallery</h1>
425
- <a class="back-link" href="index.html">← Back to Browser</a>
426
- </div>
427
-
428
- <div class="controls">
429
- <div class="control-group">
430
- <label>Date</label>
431
- <select id="dateSelect" onchange="currentPage=1;renderGallery()"></select>
432
- </div>
433
- <div class="control-group">
434
- <label>Model Type</label>
435
- <select id="typeSelect" onchange="currentPage=1;renderGallery()">
436
- <option value="all">All Types</option>
437
- <option value="zbase">ZBase</option>
438
- <option value="zimage">ZImage</option>
439
- <option value="klein9">Klein9</option>
440
- <option value="ernie">Ernie</option>
441
- <option value="ideogram4">Ideogram4</option>
442
- <option value="flux">Flux</option>
443
- <option value="wan">WAN</option>
444
- <option value="sdxl">SDXL</option>
445
- <option value="ltx">LTX</option>
446
- <option value="locon">LyCORIS</option>
447
- <option value="lora">Lora</option>
448
- <option value="embedding">Embedding</option>
449
- <option value="qwen">Qwen</option>
450
- </select>
451
- </div>
452
- <div class="control-group">
453
- <label>Search</label>
454
- <input type="text" id="searchInput" placeholder="Filter by name…" oninput="currentPage=1;renderGallery()" />
455
- </div>
456
- <div class="control-group">
457
- <label>Per Page</label>
458
- <select id="pageSizeSelect" onchange="onPageSizeChange()">
459
- <option value="24">24</option>
460
- <option value="48">48</option>
461
- <option value="96">96</option>
462
- <option value="all">All</option>
463
- </select>
464
- </div>
465
- <div class="control-group" style="justify-content:flex-end;">
466
- <label>&nbsp;</label>
467
- <button class="btn" onclick="clearFilters()">✕ Clear</button>
468
- </div>
469
- <div class="control-group" style="justify-content:flex-end;">
470
- <label>&nbsp;</label>
471
- <button class="btn" id="copyLinkBtn" onclick="copyLink()">🔗 Copy Link</button>
472
- </div>
473
- </div>
474
-
475
- <div class="stats-bar" id="statsBar"></div>
476
- <div class="pagination-bar" id="paginationTop"></div>
477
- <div class="gallery-grid" id="galleryGrid"></div>
478
- <div class="pagination-bar" id="paginationBottom"></div>
479
- <div class="no-results" id="noResults" style="display:none;">No samples found for this selection.</div>
480
-
481
- <!-- Gallery Modal -->
482
- <div class="modal-overlay" id="galleryModal" onclick="if(event.target===this)closeGalleryModal()">
483
- <div class="modal-box">
484
- <div class="modal-top">
485
- <div>
486
- <span class="modal-title" id="modalPersonName"></span>
487
- <a class="modal-person-link" id="modalPersonLink" href="#" target="_blank">open in browser →</a>
488
- </div>
489
- <button class="modal-close-btn" onclick="closeGalleryModal()">×</button>
490
- </div>
491
- <div class="modal-media-wrap">
492
- <button class="nav-btn prev" onclick="navImage(-1)">‹</button>
493
- <img id="modalImg" src="" alt="" />
494
- <video id="modalVideo" autoplay loop muted style="display:none;"></video>
495
- <button class="nav-btn next" onclick="navImage(1)">›</button>
496
- </div>
497
- <div class="modal-bottom">
498
- <span class="modal-counter" id="modalCounter"></span>
499
- <span class="modal-filename" id="modalFilename"></span>
500
- <div class="modal-actions">
501
- <button class="btn" id="modalDownloadSample" onclick="downloadCurrentSample()">🖼️ Download Sample</button>
502
- <a class="btn" id="modalDownload" href="#" target="_blank">⬇️ Download Model</a>
503
- </div>
504
- </div>
505
- </div>
506
- </div>
507
-
508
- <script>
509
- // Theme management
510
- function toggleTheme() {
511
- const currentTheme = document.body.getAttribute('data-theme');
512
- const newTheme = currentTheme === 'light' ? 'dark' : 'light';
513
- if (newTheme === 'dark') {
514
- document.body.removeAttribute('data-theme');
515
- } else {
516
- document.body.setAttribute('data-theme', newTheme);
517
- }
518
- localStorage.setItem('theme', newTheme);
519
- }
520
- // Restore saved theme
521
- (function() {
522
- const saved = localStorage.getItem('theme');
523
- if (saved === 'light') document.body.setAttribute('data-theme', 'light');
524
- })();
525
-
526
- // Data references (use window.X to avoid redeclaration of globals from data-*.js)
527
- const _hfImages = window.hfImages || {};
528
- const _uploadData = window.uploadedData || {};
529
- const _dates = window.uploadDates || [];
530
- const _filenamesData = window.filenames || {};
531
- const _thumbnailsData = window.thumbnails || {};
532
-
533
- const FOLDER_MAP = {
534
- locon: 'lycoris',
535
- lora: 'small-loras',
536
- embedding: 'embeddings',
537
- flux: 'flux',
538
- wan: 'wan',
539
- sdxl: 'sdxl',
540
- ltx: 'ltx',
541
- qwen: 'qwen',
542
- zimage: 'zimage',
543
- zbase: 'zbase',
544
- klein9: 'klein9',
545
- ernie: 'ernie',
546
- ideogram4: 'ideogram',
547
- };
548
-
549
- const FRAMEWORK_TO_TYPE = {
550
- 'ZBase': 'zbase',
551
- 'ZImage': 'zimage',
552
- 'Klein9': 'klein9',
553
- 'Ernie': 'ernie',
554
- 'Ideogram4': 'ideogram4',
555
- 'WAN': 'wan',
556
- 'LTX': 'ltx',
557
- 'Flux': 'flux',
558
- 'SDXL': 'sdxl',
559
- 'LyCORIS': 'locon',
560
- 'Lora': 'lora',
561
- 'Embedding': 'embedding',
562
- 'Qwen': 'qwen',
563
- };
564
-
565
- // Gallery state
566
- let galleryItems = [];
567
- let allFilteredItems = [];
568
- let modalItems = [];
569
- let modalIndex = 0;
570
- let currentPage = 1;
571
- let pageSize = 24;
572
-
573
- // Initialize
574
- function init() {
575
- const dateSelect = document.getElementById('dateSelect');
576
- const dateOptions = _dates.map(d => {
577
- const display = new Date(d).toLocaleDateString('en-US', {
578
- weekday: 'short', year: 'numeric', month: 'short', day: 'numeric'
579
- });
580
- return `<option value="${d}">${display}</option>`;
581
- }).join('');
582
- dateSelect.innerHTML = `<option value="all">All Dates</option>${dateOptions}`;
583
-
584
- // Restore URL params
585
- const params = new URLSearchParams(window.location.search);
586
- const paramDate = params.get('date');
587
- const paramType = params.get('type');
588
- const paramSearch = params.get('q');
589
- const paramPageSize = params.get('size');
590
- const paramPage = params.get('page');
591
-
592
- if (paramDate === 'all' || (paramDate && _dates.includes(paramDate))) {
593
- dateSelect.value = paramDate;
594
- }
595
- if (paramType) {
596
- document.getElementById('typeSelect').value = paramType;
597
- }
598
- if (paramSearch) {
599
- document.getElementById('searchInput').value = paramSearch;
600
- }
601
- if (paramPageSize) {
602
- const sizeSelect = document.getElementById('pageSizeSelect');
603
- sizeSelect.value = paramPageSize;
604
- pageSize = paramPageSize === 'all' ? 'all' : parseInt(paramPageSize, 10);
605
- }
606
- if (paramPage) {
607
- currentPage = parseInt(paramPage, 10) || 1;
608
- }
609
-
610
- renderGallery();
611
- }
612
-
613
- function getUploadsForDate(date) {
614
- const results = [];
615
- const seen = new Set();
616
-
617
- for (const [personKey, personData] of Object.entries(_uploadData)) {
618
- if (!personData.models) continue;
619
-
620
- for (const [modelType, models] of Object.entries(personData.models)) {
621
- for (const model of models) {
622
- const uploadDate = model.uploadedAt.split('T')[0];
623
- if (uploadDate === date) {
624
- // Deduplicate: one card per person+modelType
625
- const dedupeKey = `${personKey}|${modelType}`;
626
- if (seen.has(dedupeKey)) continue;
627
- seen.add(dedupeKey);
628
-
629
- results.push({
630
- person: personKey,
631
- modelType,
632
- filename: model.filename,
633
- uploadedAt: model.uploadedAt,
634
- });
635
- }
636
- }
637
- }
638
- }
639
-
640
- return results;
641
- }
642
-
643
- // Civitai type mapping
644
- const CIVITAI_TYPE_MAP = { 'LoCon': 'LyCORIS', 'LORA': 'Lora', 'TextualInversion': 'Embedding' };
645
- const CIVITAI_COLLECTIONS = {
646
- locon: 'lycorises', lora: 'loras', embedding: 'embeddings',
647
- flux: 'fluxes', wan: 'wans', sdxl: 'sdxls', ltx: 'ltxes', qwen: 'qwens',
648
- };
649
-
650
- function getCivitaiImage(personKey, modelType) {
651
- const collection = CIVITAI_COLLECTIONS[modelType];
652
- if (!collection || !models || !models[collection]) return null;
653
- const civitaiModel = models[collection].find(m => {
654
- const normalized = m.name.toLowerCase().replaceAll(' ', '').replaceAll('-', '').replaceAll("'", '');
655
- return normalized === personKey;
656
- });
657
- if (civitaiModel && civitaiModel.imageUrl) {
658
- const fw = CIVITAI_TYPE_MAP[civitaiModel.type] || civitaiModel.type;
659
- return {
660
- url: civitaiModel.imageUrl,
661
- filename: civitaiModel.imageUrl.split('/').pop() || 'civitai-sample',
662
- framework: fw,
663
- };
664
- }
665
- return null;
666
- }
667
-
668
- function getSampleImage(personKey, modelType) {
669
- const personImages = _hfImages[personKey] || {};
670
- // Map modelType to framework name
671
- const frameworkNames = {
672
- locon: 'LyCORIS', lora: 'Lora', embedding: 'Embedding',
673
- flux: 'Flux', wan: 'WAN', sdxl: 'SDXL', ltx: 'LTX',
674
- qwen: 'Qwen', zimage: 'ZImage', zbase: 'ZBase',
675
- klein9: 'Klein9', ernie: 'Ernie', ideogram4: 'Ideogram4',
676
- };
677
- const fw = frameworkNames[modelType];
678
- if (fw && personImages[fw] && personImages[fw].length > 0) {
679
- return personImages[fw][0];
680
- }
681
- // Fallback to Civitai
682
- const civitaiImg = getCivitaiImage(personKey, modelType);
683
- if (civitaiImg) return civitaiImg;
684
- // Fallback to thumbnail
685
- if (_thumbnailsData[personKey]) {
686
- return {
687
- url: `https://huggingface.co/datasets/malcolmrey/samples/resolve/main/thumbnails/${encodeURIComponent(personKey)}.jpg`,
688
- filename: `${personKey}.jpg`,
689
- framework: 'Thumbnail',
690
- };
691
- }
692
- return null;
693
- }
694
-
695
- function getAllSampleImages(personKey, modelType) {
696
- const personImages = _hfImages[personKey] || {};
697
- const frameworkNames = {
698
- locon: 'LyCORIS', lora: 'Lora', embedding: 'Embedding',
699
- flux: 'Flux', wan: 'WAN', sdxl: 'SDXL', ltx: 'LTX',
700
- qwen: 'Qwen', zimage: 'ZImage', zbase: 'ZBase',
701
- klein9: 'Klein9', ernie: 'Ernie', ideogram4: 'Ideogram4',
702
- };
703
- const fw = frameworkNames[modelType];
704
- const images = [];
705
- if (fw && personImages[fw] && personImages[fw].length > 0) {
706
- images.push(...personImages[fw]);
707
- }
708
- // Add Civitai image if not already covered by HF
709
- const civitaiImg = getCivitaiImage(personKey, modelType);
710
- if (civitaiImg && !images.some(img => img.url === civitaiImg.url)) {
711
- images.push(civitaiImg);
712
- }
713
- return images;
714
- }
715
-
716
- function getDownloadUrl(personKey, modelType) {
717
- const folder = FOLDER_MAP[modelType];
718
- if (!folder) return '#';
719
- const personFilenames = _filenamesData[personKey];
720
- const files = personFilenames?.[modelType];
721
- if (!files || files.length === 0) {
722
- return `https://huggingface.co/malcolmrey/${folder}`;
723
- }
724
- const filename = files[0];
725
- const filePath = modelType === 'wan' ? `wan2.1/${filename}` : filename;
726
- return `https://huggingface.co/malcolmrey/${folder}/resolve/main/${filePath}?download=true`;
727
- }
728
-
729
- function syncUrlParams(date, type, search) {
730
- const params = new URLSearchParams();
731
- if (date && date !== 'all') params.set('date', date);
732
- if (date === 'all') params.set('date', 'all');
733
- if (type && type !== 'all') params.set('type', type);
734
- if (search) params.set('q', search);
735
- if (pageSize !== 24 && pageSize !== 'all') params.set('size', String(pageSize));
736
- if (pageSize === 'all') params.set('size', 'all');
737
- if (currentPage > 1) params.set('page', String(currentPage));
738
- const qs = params.toString();
739
- const newUrl = window.location.pathname + (qs ? '?' + qs : '');
740
- history.replaceState(null, '', newUrl);
741
- }
742
-
743
- function renderGallery() {
744
- const date = document.getElementById('dateSelect').value;
745
- const typeFilter = document.getElementById('typeSelect').value;
746
-
747
- if (!date) {
748
- document.getElementById('galleryGrid').innerHTML = '';
749
- document.getElementById('noResults').style.display = 'block';
750
- document.getElementById('statsBar').innerHTML = '';
751
- return;
752
- }
753
-
754
- const uploads = date === 'all'
755
- ? _dates.flatMap(d => getUploadsForDate(d))
756
- : getUploadsForDate(date);
757
-
758
- // Deduplicate: one card per person+modelType (driven by samples, not models)
759
- const seenKeys = new Set();
760
- const deduped = [];
761
- for (const u of uploads) {
762
- const key = `${u.person}|${u.modelType}`;
763
- if (seenKeys.has(key)) continue;
764
- seenKeys.add(key);
765
- deduped.push(u);
766
- }
767
-
768
- // Filter by type
769
- let filtered = typeFilter === 'all'
770
- ? deduped
771
- : deduped.filter(u => u.modelType === typeFilter);
772
-
773
- // Filter by search term
774
- const searchTerm = document.getElementById('searchInput').value.trim().toLowerCase();
775
- if (searchTerm) {
776
- filtered = filtered.filter(u => u.person.toLowerCase().includes(searchTerm));
777
- }
778
-
779
- // Skip entries without sample images (only keep those with actual samples or thumbnails)
780
- filtered = filtered.filter(u => getSampleImage(u.person, u.modelType) !== null);
781
-
782
- // Sort: by model type, then person name
783
- filtered.sort((a, b) => {
784
- if (a.modelType !== b.modelType) return a.modelType.localeCompare(b.modelType);
785
- return a.person.localeCompare(b.person);
786
- });
787
-
788
- allFilteredItems = filtered;
789
-
790
- // Sync state to URL
791
- syncUrlParams(date, typeFilter, searchTerm);
792
-
793
- const grid = document.getElementById('galleryGrid');
794
- const noResults = document.getElementById('noResults');
795
- const statsBar = document.getElementById('statsBar');
796
-
797
- if (filtered.length === 0) {
798
- grid.innerHTML = '';
799
- noResults.style.display = 'block';
800
- statsBar.innerHTML = '';
801
- document.getElementById('paginationTop').innerHTML = '';
802
- document.getElementById('paginationBottom').innerHTML = '';
803
- return;
804
- }
805
-
806
- noResults.style.display = 'none';
807
-
808
- // Pagination
809
- const totalItems = filtered.length;
810
- const totalPages = pageSize === 'all' ? 1 : Math.ceil(totalItems / pageSize);
811
- if (currentPage > totalPages) currentPage = totalPages;
812
- const startIdx = pageSize === 'all' ? 0 : (currentPage - 1) * pageSize;
813
- const endIdx = pageSize === 'all' ? totalItems : Math.min(startIdx + pageSize, totalItems);
814
- const pageItems = filtered.slice(startIdx, endIdx);
815
- galleryItems = pageItems;
816
-
817
- // Stats
818
- const typeCount = {};
819
- filtered.forEach(u => { typeCount[u.modelType] = (typeCount[u.modelType] || 0) + 1; });
820
- const typeSummary = Object.entries(typeCount).map(([t, c]) => `${t}: <strong>${c}</strong>`).join(' · ');
821
- statsBar.innerHTML = `<span>Total: <strong>${filtered.length}</strong> samples</span><span>${typeSummary}</span>`;
822
-
823
- // Pagination controls
824
- const paginationHtml = totalPages > 1 ? buildPaginationHtml(currentPage, totalPages, startIdx + 1, endIdx, totalItems) : '';
825
- document.getElementById('paginationTop').innerHTML = paginationHtml;
826
- document.getElementById('paginationBottom').innerHTML = paginationHtml;
827
-
828
- // Render cards
829
- grid.innerHTML = pageItems.map((item, idx) => {
830
- const sample = getSampleImage(item.person, item.modelType);
831
- const imgUrl = sample?.url || '';
832
- const isVideo = imgUrl.toLowerCase().endsWith('.mp4');
833
-
834
- const mediaHtml = isVideo
835
- ? `<video src="${imgUrl}" muted loop autoplay playsinline></video>`
836
- : `<img src="${imgUrl}" alt="${item.person}" loading="lazy" onerror="this.src='unknown.jpg'" />`;
837
-
838
- return `
839
- <div class="gallery-card" onclick="openGalleryModal(${idx})">
840
- ${mediaHtml}
841
- <div class="gallery-card-info">
842
- <span class="gallery-card-name">${item.person}</span>
843
- <span class="gallery-card-badge" data-type="${item.modelType}">${item.modelType}</span>
844
- </div>
845
- </div>
846
- `;
847
- }).join('');
848
- }
849
-
850
- // Pagination helpers
851
- function buildPaginationHtml(page, totalPages, from, to, total) {
852
- let buttons = '';
853
- const prevDisabled = page <= 1 ? 'disabled' : '';
854
- const nextDisabled = page >= totalPages ? 'disabled' : '';
855
- buttons += `<button class="btn" onclick="goToPage(${page - 1})" ${prevDisabled}>← Prev</button>`;
856
-
857
- // Page numbers
858
- const range = getPageRange(page, totalPages);
859
- for (const p of range) {
860
- if (p === '...') {
861
- buttons += `<span class="pagination-ellipsis">…</span>`;
862
- } else {
863
- const active = p === page ? 'pagination-active' : '';
864
- buttons += `<button class="btn ${active}" onclick="goToPage(${p})">${p}</button>`;
865
- }
866
- }
867
-
868
- buttons += `<button class="btn" onclick="goToPage(${page + 1})" ${nextDisabled}>Next →</button>`;
869
- return `<div class="pagination-controls"><span class="pagination-info">Showing ${from}–${to} of ${total}</span><div class="pagination-buttons">${buttons}</div></div>`;
870
- }
871
-
872
- function getPageRange(current, total) {
873
- if (total <= 7) return Array.from({length: total}, (_, i) => i + 1);
874
- const pages = [];
875
- pages.push(1);
876
- if (current > 3) pages.push('...');
877
- for (let i = Math.max(2, current - 1); i <= Math.min(total - 1, current + 1); i++) {
878
- pages.push(i);
879
- }
880
- if (current < total - 2) pages.push('...');
881
- pages.push(total);
882
- return pages;
883
- }
884
-
885
- function goToPage(page) {
886
- const totalPages = pageSize === 'all' ? 1 : Math.ceil(allFilteredItems.length / pageSize);
887
- if (page < 1 || page > totalPages) return;
888
- currentPage = page;
889
- renderGallery();
890
- window.scrollTo({ top: 0, behavior: 'smooth' });
891
- }
892
-
893
- function onPageSizeChange() {
894
- const val = document.getElementById('pageSizeSelect').value;
895
- pageSize = val === 'all' ? 'all' : parseInt(val, 10);
896
- currentPage = 1;
897
- renderGallery();
898
- }
899
-
900
- function clearFilters() {
901
- document.getElementById('dateSelect').value = 'all';
902
- document.getElementById('typeSelect').value = 'all';
903
- document.getElementById('searchInput').value = '';
904
- document.getElementById('pageSizeSelect').value = '24';
905
- pageSize = 24;
906
- currentPage = 1;
907
- renderGallery();
908
- }
909
-
910
- function copyLink() {
911
- const url = window.location.href;
912
- navigator.clipboard.writeText(url).then(() => {
913
- const btn = document.getElementById('copyLinkBtn');
914
- btn.textContent = '✓ Copied!';
915
- setTimeout(() => { btn.textContent = '🔗 Copy Link'; }, 2000);
916
- });
917
- }
918
-
919
- function downloadCurrentSample() {
920
- if (modalItems.length === 0) return;
921
- const current = modalItems[modalIndex];
922
- if (!current || !current.url) return;
923
- const a = document.createElement('a');
924
- a.href = current.url;
925
- a.download = current.filename || current.url.split('/').pop() || 'sample';
926
- a.target = '_blank';
927
- document.body.appendChild(a);
928
- a.click();
929
- document.body.removeChild(a);
930
- }
931
-
932
- // Modal
933
- function openGalleryModal(idx) {
934
- const item = galleryItems[idx];
935
- if (!item) return;
936
-
937
- // Build images list for this person+type
938
- modalItems = getAllSampleImages(item.person, item.modelType);
939
- if (modalItems.length === 0) {
940
- // Show the card image if no dedicated samples
941
- const sample = getSampleImage(item.person, item.modelType);
942
- if (sample) modalItems = [sample];
943
- }
944
- modalIndex = 0;
945
-
946
- document.getElementById('modalPersonName').textContent = item.person;
947
- const personLink = document.getElementById('modalPersonLink');
948
- personLink.href = `index.html?personcode=${encodeURIComponent(item.person)}`;
949
-
950
- const downloadLink = getDownloadUrl(item.person, item.modelType);
951
- document.getElementById('modalDownload').href = downloadLink;
952
-
953
- document.getElementById('galleryModal').classList.add('active');
954
- document.body.style.overflow = 'hidden';
955
- updateModal();
956
- }
957
-
958
- function closeGalleryModal() {
959
- document.getElementById('galleryModal').classList.remove('active');
960
- document.body.style.overflow = '';
961
- const video = document.getElementById('modalVideo');
962
- video.pause();
963
- video.removeAttribute('src');
964
- video.load();
965
- }
966
-
967
- function navImage(dir) {
968
- if (modalItems.length <= 1) return;
969
- modalIndex = (modalIndex + dir + modalItems.length) % modalItems.length;
970
- updateModal();
971
- }
972
-
973
- function updateModal() {
974
- const img = document.getElementById('modalImg');
975
- const video = document.getElementById('modalVideo');
976
- const counter = document.getElementById('modalCounter');
977
- const filenameEl = document.getElementById('modalFilename');
978
-
979
- if (modalItems.length === 0) return;
980
-
981
- const current = modalItems[modalIndex];
982
- const isVideo = current.url.toLowerCase().endsWith('.mp4');
983
-
984
- if (isVideo) {
985
- video.src = current.url;
986
- video.style.display = 'block';
987
- img.style.display = 'none';
988
- } else {
989
- img.src = current.url;
990
- img.alt = current.filename || '';
991
- img.style.display = 'block';
992
- video.style.display = 'none';
993
- video.pause();
994
- video.removeAttribute('src');
995
- video.load();
996
- }
997
-
998
- counter.textContent = modalItems.length > 1 ? `${modalIndex + 1} / ${modalItems.length}` : '';
999
- filenameEl.textContent = current.filename || '';
1000
-
1001
- // Show/hide nav buttons
1002
- const showNav = modalItems.length > 1;
1003
- document.querySelectorAll('.nav-btn').forEach(b => b.style.display = showNav ? 'flex' : 'none');
1004
- }
1005
-
1006
- // Keyboard
1007
- document.addEventListener('keydown', (e) => {
1008
- const modal = document.getElementById('galleryModal');
1009
- if (!modal.classList.contains('active')) return;
1010
- if (e.key === 'Escape') closeGalleryModal();
1011
- if (e.key === 'ArrowLeft') navImage(-1);
1012
- if (e.key === 'ArrowRight') navImage(1);
1013
- });
1014
-
1015
- init();
1016
- </script>
1017
- </body>
1018
- </html>
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>Samples Gallery</title>
7
+ <script type="text/javascript" src="data-hf-images.js"></script>
8
+ <script type="text/javascript" src="data-hf-uploaded.js"></script>
9
+ <script type="text/javascript" src="data-filenames.js"></script>
10
+ <script type="text/javascript" src="data-thumbnails.js"></script>
11
+ <script type="text/javascript" src="data-civitai.js"></script>
12
+ <link rel="preconnect" href="https://fonts.googleapis.com">
13
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
14
+ <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
15
+ <style>
16
+ :root {
17
+ --bg-gradient-start: #0f172a;
18
+ --bg-gradient-end: #1e293b;
19
+ --text-primary: #f1f5f9;
20
+ --text-secondary: #94a3b8;
21
+ --text-muted: #64748b;
22
+ --link-color: #60a5fa;
23
+ --card-bg: rgba(30, 41, 59, 0.7);
24
+ --card-border: rgba(148, 163, 184, 0.1);
25
+ --input-bg: rgba(15, 23, 42, 0.6);
26
+ --input-border: rgba(148, 163, 184, 0.2);
27
+ --input-text: #e2e8f0;
28
+ --hover-bg: rgba(96, 165, 250, 0.2);
29
+ --modal-overlay: rgba(0, 0, 0, 0.85);
30
+ --shadow-color: rgba(0, 0, 0, 0.3);
31
+ }
32
+
33
+ [data-theme="light"] {
34
+ --bg-gradient-start: #f8fafc;
35
+ --bg-gradient-end: #e2e8f0;
36
+ --text-primary: #1e293b;
37
+ --text-secondary: #475569;
38
+ --text-muted: #64748b;
39
+ --link-color: #2563eb;
40
+ --card-bg: rgba(255, 255, 255, 0.9);
41
+ --card-border: rgba(148, 163, 184, 0.3);
42
+ --input-bg: rgba(255, 255, 255, 0.8);
43
+ --input-border: rgba(148, 163, 184, 0.4);
44
+ --input-text: #1e293b;
45
+ --hover-bg: rgba(37, 99, 235, 0.1);
46
+ --modal-overlay: rgba(0, 0, 0, 0.5);
47
+ --shadow-color: rgba(0, 0, 0, 0.1);
48
+ }
49
+
50
+ * { margin: 0; padding: 0; box-sizing: border-box; }
51
+
52
+ body {
53
+ font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
54
+ background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
55
+ color: var(--text-primary);
56
+ min-height: 100vh;
57
+ padding: 20px;
58
+ }
59
+
60
+ a { text-decoration: none; color: var(--link-color); }
61
+ a:hover { color: #93c5fd; }
62
+
63
+ .header {
64
+ display: flex;
65
+ align-items: center;
66
+ gap: 16px;
67
+ margin-bottom: 24px;
68
+ flex-wrap: wrap;
69
+ }
70
+
71
+ .header h1 {
72
+ font-size: 1.5rem;
73
+ font-weight: 700;
74
+ background: linear-gradient(135deg, #60a5fa, #a78bfa);
75
+ -webkit-background-clip: text;
76
+ -webkit-text-fill-color: transparent;
77
+ }
78
+
79
+ .back-link {
80
+ font-size: 14px;
81
+ padding: 6px 12px;
82
+ border-radius: 8px;
83
+ background: var(--card-bg);
84
+ border: 1px solid var(--card-border);
85
+ }
86
+
87
+ .controls {
88
+ display: flex;
89
+ gap: 12px;
90
+ align-items: center;
91
+ flex-wrap: wrap;
92
+ margin-bottom: 24px;
93
+ padding: 16px;
94
+ background: var(--card-bg);
95
+ border: 1px solid var(--card-border);
96
+ border-radius: 12px;
97
+ }
98
+
99
+ .control-group {
100
+ display: flex;
101
+ flex-direction: column;
102
+ gap: 4px;
103
+ }
104
+
105
+ .control-group label {
106
+ font-size: 11px;
107
+ font-weight: 600;
108
+ text-transform: uppercase;
109
+ letter-spacing: 0.5px;
110
+ color: var(--text-muted);
111
+ }
112
+
113
+ select {
114
+ padding: 8px 12px;
115
+ border-radius: 8px;
116
+ border: 1px solid var(--input-border);
117
+ background: var(--input-bg);
118
+ color: var(--input-text);
119
+ font-size: 14px;
120
+ min-width: 160px;
121
+ cursor: pointer;
122
+ }
123
+
124
+ #searchInput {
125
+ padding: 8px 12px;
126
+ border-radius: 8px;
127
+ border: 1px solid var(--input-border);
128
+ background: var(--input-bg);
129
+ color: var(--input-text);
130
+ font-size: 14px;
131
+ min-width: 180px;
132
+ outline: none;
133
+ }
134
+ #searchInput:focus { border-color: var(--link-color); }
135
+
136
+ .stats-bar {
137
+ display: flex;
138
+ gap: 16px;
139
+ align-items: center;
140
+ margin-bottom: 16px;
141
+ font-size: 14px;
142
+ color: var(--text-secondary);
143
+ }
144
+
145
+ .stats-bar strong { color: var(--text-primary); }
146
+
147
+ .gallery-grid {
148
+ display: grid;
149
+ grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
150
+ gap: 16px;
151
+ }
152
+
153
+ .gallery-card {
154
+ background: var(--card-bg);
155
+ border: 1px solid var(--card-border);
156
+ border-radius: 12px;
157
+ overflow: hidden;
158
+ cursor: pointer;
159
+ transition: transform 0.2s, box-shadow 0.2s;
160
+ }
161
+
162
+ .gallery-card:hover {
163
+ transform: translateY(-3px);
164
+ box-shadow: 0 8px 24px var(--shadow-color);
165
+ }
166
+
167
+ .gallery-card img {
168
+ width: 100%;
169
+ aspect-ratio: 3/4;
170
+ object-fit: cover;
171
+ display: block;
172
+ }
173
+
174
+ .gallery-card video {
175
+ width: 100%;
176
+ aspect-ratio: 3/4;
177
+ object-fit: cover;
178
+ display: block;
179
+ }
180
+
181
+ .gallery-card-info {
182
+ padding: 10px 12px;
183
+ display: flex;
184
+ flex-direction: column;
185
+ gap: 4px;
186
+ }
187
+
188
+ .gallery-card-name {
189
+ font-size: 13px;
190
+ font-weight: 600;
191
+ white-space: nowrap;
192
+ overflow: hidden;
193
+ text-overflow: ellipsis;
194
+ }
195
+
196
+ .gallery-card-meta {
197
+ font-size: 11px;
198
+ color: var(--text-muted);
199
+ white-space: nowrap;
200
+ overflow: hidden;
201
+ text-overflow: ellipsis;
202
+ }
203
+
204
+ .gallery-card-badge {
205
+ display: inline-block;
206
+ font-size: 10px;
207
+ font-weight: 600;
208
+ padding: 2px 8px;
209
+ border-radius: 8px;
210
+ text-transform: uppercase;
211
+ letter-spacing: 0.3px;
212
+ color: #fff;
213
+ background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
214
+ }
215
+
216
+ .gallery-card-badge[data-type="wan"] { background: linear-gradient(135deg, #dc2626, #f59e0b); }
217
+ .gallery-card-badge[data-type="flux"] { background: linear-gradient(135deg, #7c3aed, #c026d3); }
218
+ .gallery-card-badge[data-type="klein9"] { background: linear-gradient(135deg, #8b5cf6, #a855f7); }
219
+ .gallery-card-badge[data-type="ernie"] { background: linear-gradient(135deg, #be185d, #f472b6); }
220
+ .gallery-card-badge[data-type="ideogram4"] { background: linear-gradient(135deg, #d97706, #fbbf24); }
221
+ .gallery-card-badge[data-type="krea2"] { background: linear-gradient(135deg, #16a34a, #4ade80); }
222
+ .gallery-card-badge[data-type="zimage"] { background: linear-gradient(135deg, #e11d48, #fb7185); }
223
+ .gallery-card-badge[data-type="zbase"] { background: linear-gradient(135deg, #0f766e, #14b8a6); }
224
+ .gallery-card-badge[data-type="ltx"] { background: linear-gradient(135deg, #0369a1, #22d3ee); }
225
+ .gallery-card-badge[data-type="sdxl"] { background: linear-gradient(135deg, #65a30d, #84cc16); }
226
+ .gallery-card-badge[data-type="locon"] { background: linear-gradient(135deg, #16a34a, #22c55e); }
227
+ .gallery-card-badge[data-type="lora"] { background: linear-gradient(135deg, #3b82f6, #6366f1); }
228
+ .gallery-card-badge[data-type="embedding"] { background: linear-gradient(135deg, #92400e, #f59e0b); }
229
+ .gallery-card-badge[data-type="qwen"] { background: linear-gradient(135deg, #0284c7, #38bdf8); }
230
+
231
+ .no-results {
232
+ text-align: center;
233
+ padding: 60px 20px;
234
+ color: var(--text-muted);
235
+ font-size: 16px;
236
+ }
237
+
238
+ /* Modal */
239
+ .modal-overlay {
240
+ display: none;
241
+ position: fixed;
242
+ inset: 0;
243
+ background: var(--modal-overlay);
244
+ z-index: 1000;
245
+ align-items: center;
246
+ justify-content: center;
247
+ }
248
+
249
+ .modal-overlay.active {
250
+ display: flex;
251
+ }
252
+
253
+ .modal-box {
254
+ background: var(--card-bg);
255
+ border: 1px solid var(--card-border);
256
+ border-radius: 16px;
257
+ max-width: 90vw;
258
+ max-height: 90vh;
259
+ display: flex;
260
+ flex-direction: column;
261
+ overflow: hidden;
262
+ box-shadow: 0 25px 50px var(--shadow-color);
263
+ }
264
+
265
+ .modal-top {
266
+ display: flex;
267
+ align-items: center;
268
+ justify-content: space-between;
269
+ padding: 16px 20px;
270
+ border-bottom: 1px solid var(--card-border);
271
+ }
272
+
273
+ .modal-title {
274
+ font-size: 16px;
275
+ font-weight: 600;
276
+ }
277
+
278
+ .modal-person-link {
279
+ font-size: 13px;
280
+ margin-left: 12px;
281
+ }
282
+
283
+ .modal-close-btn {
284
+ background: none;
285
+ border: none;
286
+ color: var(--text-secondary);
287
+ font-size: 24px;
288
+ cursor: pointer;
289
+ padding: 4px 8px;
290
+ border-radius: 8px;
291
+ }
292
+
293
+ .modal-close-btn:hover { background: var(--hover-bg); color: var(--text-primary); }
294
+
295
+ .modal-media-wrap {
296
+ position: relative;
297
+ display: flex;
298
+ align-items: center;
299
+ justify-content: center;
300
+ padding: 16px;
301
+ min-height: 400px;
302
+ }
303
+
304
+ .modal-media-wrap img,
305
+ .modal-media-wrap video {
306
+ max-width: 100%;
307
+ max-height: 70vh;
308
+ border-radius: 8px;
309
+ object-fit: contain;
310
+ }
311
+
312
+ .nav-btn {
313
+ position: absolute;
314
+ top: 50%;
315
+ transform: translateY(-50%);
316
+ background: rgba(0, 0, 0, 0.6);
317
+ border: none;
318
+ color: #fff;
319
+ font-size: 28px;
320
+ width: 44px;
321
+ height: 44px;
322
+ border-radius: 50%;
323
+ cursor: pointer;
324
+ display: flex;
325
+ align-items: center;
326
+ justify-content: center;
327
+ }
328
+
329
+ .nav-btn:hover { background: rgba(0, 0, 0, 0.85); }
330
+ .nav-btn.prev { left: 12px; }
331
+ .nav-btn.next { right: 12px; }
332
+
333
+ .modal-bottom {
334
+ display: flex;
335
+ align-items: center;
336
+ justify-content: space-between;
337
+ padding: 12px 20px;
338
+ border-top: 1px solid var(--card-border);
339
+ gap: 12px;
340
+ flex-wrap: wrap;
341
+ }
342
+
343
+ .modal-counter {
344
+ font-size: 13px;
345
+ color: var(--text-secondary);
346
+ }
347
+
348
+ .modal-filename {
349
+ font-size: 12px;
350
+ color: var(--text-muted);
351
+ white-space: nowrap;
352
+ overflow: hidden;
353
+ text-overflow: ellipsis;
354
+ max-width: 300px;
355
+ }
356
+
357
+ .modal-actions {
358
+ display: flex;
359
+ gap: 8px;
360
+ }
361
+
362
+ .btn {
363
+ padding: 6px 14px;
364
+ border-radius: 8px;
365
+ border: 1px solid var(--input-border);
366
+ background: var(--input-bg);
367
+ color: var(--input-text);
368
+ font-size: 13px;
369
+ cursor: pointer;
370
+ text-decoration: none;
371
+ display: inline-flex;
372
+ align-items: center;
373
+ gap: 4px;
374
+ }
375
+
376
+ .btn:hover { background: var(--hover-bg); color: var(--text-primary); }
377
+
378
+ .theme-toggle {
379
+ position: fixed;
380
+ top: 20px;
381
+ right: 20px;
382
+ width: 44px;
383
+ height: 44px;
384
+ border-radius: 50%;
385
+ background: var(--card-bg);
386
+ border: 2px solid var(--card-border);
387
+ cursor: pointer;
388
+ display: flex;
389
+ align-items: center;
390
+ justify-content: center;
391
+ font-size: 20px;
392
+ z-index: 1000;
393
+ box-shadow: 0 4px 12px var(--shadow-color);
394
+ transition: all 0.3s ease;
395
+ }
396
+ .theme-toggle:hover { transform: scale(1.1); border-color: var(--link-color); }
397
+ .theme-toggle .sun-icon { display: none; }
398
+ .theme-toggle .moon-icon { display: block; }
399
+ [data-theme="light"] .theme-toggle .sun-icon { display: block; }
400
+ [data-theme="light"] .theme-toggle .moon-icon { display: none; }
401
+
402
+ .pagination-bar { margin: 12px 0; }
403
+ .pagination-controls {
404
+ display: flex;
405
+ align-items: center;
406
+ justify-content: space-between;
407
+ flex-wrap: wrap;
408
+ gap: 8px;
409
+ }
410
+ .pagination-info { font-size: 13px; color: var(--text-secondary); }
411
+ .pagination-buttons { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
412
+ .pagination-buttons .btn { min-width: 36px; justify-content: center; }
413
+ .pagination-buttons .btn[disabled] { opacity: 0.4; cursor: default; pointer-events: none; }
414
+ .pagination-active { background: var(--link-color) !important; color: #fff !important; border-color: var(--link-color) !important; }
415
+ .pagination-ellipsis { padding: 0 6px; color: var(--text-muted); }
416
+ </style>
417
+ </head>
418
+ <body>
419
+ <button class="theme-toggle" onclick="toggleTheme()" title="Toggle dark/light mode">
420
+ <span class="moon-icon">🌙</span>
421
+ <span class="sun-icon">☀️</span>
422
+ </button>
423
+
424
+ <div class="header">
425
+ <h1>🖼️ Samples Gallery</h1>
426
+ <a class="back-link" href="index.html">← Back to Browser</a>
427
+ </div>
428
+
429
+ <div class="controls">
430
+ <div class="control-group">
431
+ <label>Date</label>
432
+ <select id="dateSelect" onchange="currentPage=1;renderGallery()"></select>
433
+ </div>
434
+ <div class="control-group">
435
+ <label>Model Type</label>
436
+ <select id="typeSelect" onchange="currentPage=1;renderGallery()">
437
+ <option value="all">All Types</option>
438
+ <option value="zbase">ZBase</option>
439
+ <option value="zimage">ZImage</option>
440
+ <option value="klein9">Klein9</option>
441
+ <option value="ernie">Ernie</option>
442
+ <option value="ideogram4">Ideogram4</option>
443
+ <option value="krea2">Krea 2</option>
444
+ <option value="flux">Flux</option>
445
+ <option value="wan">WAN</option>
446
+ <option value="sdxl">SDXL</option>
447
+ <option value="ltx">LTX</option>
448
+ <option value="locon">LyCORIS</option>
449
+ <option value="lora">Lora</option>
450
+ <option value="embedding">Embedding</option>
451
+ <option value="qwen">Qwen</option>
452
+ </select>
453
+ </div>
454
+ <div class="control-group">
455
+ <label>Search</label>
456
+ <input type="text" id="searchInput" placeholder="Filter by name…" oninput="currentPage=1;renderGallery()" />
457
+ </div>
458
+ <div class="control-group">
459
+ <label>Per Page</label>
460
+ <select id="pageSizeSelect" onchange="onPageSizeChange()">
461
+ <option value="24">24</option>
462
+ <option value="48">48</option>
463
+ <option value="96">96</option>
464
+ <option value="all">All</option>
465
+ </select>
466
+ </div>
467
+ <div class="control-group" style="justify-content:flex-end;">
468
+ <label>&nbsp;</label>
469
+ <button class="btn" onclick="clearFilters()">✕ Clear</button>
470
+ </div>
471
+ <div class="control-group" style="justify-content:flex-end;">
472
+ <label>&nbsp;</label>
473
+ <button class="btn" id="copyLinkBtn" onclick="copyLink()">🔗 Copy Link</button>
474
+ </div>
475
+ </div>
476
+
477
+ <div class="stats-bar" id="statsBar"></div>
478
+ <div class="pagination-bar" id="paginationTop"></div>
479
+ <div class="gallery-grid" id="galleryGrid"></div>
480
+ <div class="pagination-bar" id="paginationBottom"></div>
481
+ <div class="no-results" id="noResults" style="display:none;">No samples found for this selection.</div>
482
+
483
+ <!-- Gallery Modal -->
484
+ <div class="modal-overlay" id="galleryModal" onclick="if(event.target===this)closeGalleryModal()">
485
+ <div class="modal-box">
486
+ <div class="modal-top">
487
+ <div>
488
+ <span class="modal-title" id="modalPersonName"></span>
489
+ <a class="modal-person-link" id="modalPersonLink" href="#" target="_blank">open in browser →</a>
490
+ </div>
491
+ <button class="modal-close-btn" onclick="closeGalleryModal()">×</button>
492
+ </div>
493
+ <div class="modal-media-wrap">
494
+ <button class="nav-btn prev" onclick="navImage(-1)">‹</button>
495
+ <img id="modalImg" src="" alt="" />
496
+ <video id="modalVideo" autoplay loop muted style="display:none;"></video>
497
+ <button class="nav-btn next" onclick="navImage(1)">›</button>
498
+ </div>
499
+ <div class="modal-bottom">
500
+ <span class="modal-counter" id="modalCounter"></span>
501
+ <span class="modal-filename" id="modalFilename"></span>
502
+ <div class="modal-actions">
503
+ <button class="btn" id="modalDownloadSample" onclick="downloadCurrentSample()">🖼️ Download Sample</button>
504
+ <a class="btn" id="modalDownload" href="#" target="_blank">⬇️ Download Model</a>
505
+ </div>
506
+ </div>
507
+ </div>
508
+ </div>
509
+
510
+ <script>
511
+ // Theme management
512
+ function toggleTheme() {
513
+ const currentTheme = document.body.getAttribute('data-theme');
514
+ const newTheme = currentTheme === 'light' ? 'dark' : 'light';
515
+ if (newTheme === 'dark') {
516
+ document.body.removeAttribute('data-theme');
517
+ } else {
518
+ document.body.setAttribute('data-theme', newTheme);
519
+ }
520
+ localStorage.setItem('theme', newTheme);
521
+ }
522
+ // Restore saved theme
523
+ (function() {
524
+ const saved = localStorage.getItem('theme');
525
+ if (saved === 'light') document.body.setAttribute('data-theme', 'light');
526
+ })();
527
+
528
+ // Data references (use window.X to avoid redeclaration of globals from data-*.js)
529
+ const _hfImages = window.hfImages || {};
530
+ const _uploadData = window.uploadedData || {};
531
+ const _dates = window.uploadDates || [];
532
+ const _filenamesData = window.filenames || {};
533
+ const _thumbnailsData = window.thumbnails || {};
534
+
535
+ const FOLDER_MAP = {
536
+ locon: 'lycoris',
537
+ lora: 'small-loras',
538
+ embedding: 'embeddings',
539
+ flux: 'flux',
540
+ wan: 'wan',
541
+ sdxl: 'sdxl',
542
+ ltx: 'ltx',
543
+ qwen: 'qwen',
544
+ zimage: 'zimage',
545
+ zbase: 'zbase',
546
+ klein9: 'klein9',
547
+ ernie: 'ernie',
548
+ ideogram4: 'ideogram',
549
+ krea2: 'krea2',
550
+ };
551
+
552
+ const FRAMEWORK_TO_TYPE = {
553
+ 'ZBase': 'zbase',
554
+ 'ZImage': 'zimage',
555
+ 'Klein9': 'klein9',
556
+ 'Ernie': 'ernie',
557
+ 'Ideogram4': 'ideogram4',
558
+ 'Krea2': 'krea2',
559
+ 'WAN': 'wan',
560
+ 'LTX': 'ltx',
561
+ 'Flux': 'flux',
562
+ 'SDXL': 'sdxl',
563
+ 'LyCORIS': 'locon',
564
+ 'Lora': 'lora',
565
+ 'Embedding': 'embedding',
566
+ 'Qwen': 'qwen',
567
+ };
568
+
569
+ // Gallery state
570
+ let galleryItems = [];
571
+ let allFilteredItems = [];
572
+ let modalItems = [];
573
+ let modalIndex = 0;
574
+ let currentPage = 1;
575
+ let pageSize = 24;
576
+
577
+ // Initialize
578
+ function init() {
579
+ const dateSelect = document.getElementById('dateSelect');
580
+ const dateOptions = _dates.map(d => {
581
+ const display = new Date(d).toLocaleDateString('en-US', {
582
+ weekday: 'short', year: 'numeric', month: 'short', day: 'numeric'
583
+ });
584
+ return `<option value="${d}">${display}</option>`;
585
+ }).join('');
586
+ dateSelect.innerHTML = `<option value="all">All Dates</option>${dateOptions}`;
587
+
588
+ // Restore URL params
589
+ const params = new URLSearchParams(window.location.search);
590
+ const paramDate = params.get('date');
591
+ const paramType = params.get('type');
592
+ const paramSearch = params.get('q');
593
+ const paramPageSize = params.get('size');
594
+ const paramPage = params.get('page');
595
+
596
+ if (paramDate === 'all' || (paramDate && _dates.includes(paramDate))) {
597
+ dateSelect.value = paramDate;
598
+ }
599
+ if (paramType) {
600
+ document.getElementById('typeSelect').value = paramType;
601
+ }
602
+ if (paramSearch) {
603
+ document.getElementById('searchInput').value = paramSearch;
604
+ }
605
+ if (paramPageSize) {
606
+ const sizeSelect = document.getElementById('pageSizeSelect');
607
+ sizeSelect.value = paramPageSize;
608
+ pageSize = paramPageSize === 'all' ? 'all' : parseInt(paramPageSize, 10);
609
+ }
610
+ if (paramPage) {
611
+ currentPage = parseInt(paramPage, 10) || 1;
612
+ }
613
+
614
+ renderGallery();
615
+ }
616
+
617
+ function getUploadsForDate(date) {
618
+ const results = [];
619
+ const seen = new Set();
620
+
621
+ for (const [personKey, personData] of Object.entries(_uploadData)) {
622
+ if (!personData.models) continue;
623
+
624
+ for (const [modelType, models] of Object.entries(personData.models)) {
625
+ for (const model of models) {
626
+ const uploadDate = model.uploadedAt.split('T')[0];
627
+ if (uploadDate === date) {
628
+ // Deduplicate: one card per person+modelType
629
+ const dedupeKey = `${personKey}|${modelType}`;
630
+ if (seen.has(dedupeKey)) continue;
631
+ seen.add(dedupeKey);
632
+
633
+ results.push({
634
+ person: personKey,
635
+ modelType,
636
+ filename: model.filename,
637
+ uploadedAt: model.uploadedAt,
638
+ });
639
+ }
640
+ }
641
+ }
642
+ }
643
+
644
+ return results;
645
+ }
646
+
647
+ // Civitai type mapping
648
+ const CIVITAI_TYPE_MAP = { 'LoCon': 'LyCORIS', 'LORA': 'Lora', 'TextualInversion': 'Embedding' };
649
+ const CIVITAI_COLLECTIONS = {
650
+ locon: 'lycorises', lora: 'loras', embedding: 'embeddings',
651
+ flux: 'fluxes', wan: 'wans', sdxl: 'sdxls', ltx: 'ltxes', qwen: 'qwens',
652
+ };
653
+
654
+ function getCivitaiImage(personKey, modelType) {
655
+ const collection = CIVITAI_COLLECTIONS[modelType];
656
+ if (!collection || !models || !models[collection]) return null;
657
+ const civitaiModel = models[collection].find(m => {
658
+ const normalized = m.name.toLowerCase().replaceAll(' ', '').replaceAll('-', '').replaceAll("'", '');
659
+ return normalized === personKey;
660
+ });
661
+ if (civitaiModel && civitaiModel.imageUrl) {
662
+ const fw = CIVITAI_TYPE_MAP[civitaiModel.type] || civitaiModel.type;
663
+ return {
664
+ url: civitaiModel.imageUrl,
665
+ filename: civitaiModel.imageUrl.split('/').pop() || 'civitai-sample',
666
+ framework: fw,
667
+ };
668
+ }
669
+ return null;
670
+ }
671
+
672
+ function getSampleImage(personKey, modelType) {
673
+ const personImages = _hfImages[personKey] || {};
674
+ // Map modelType to framework name
675
+ const frameworkNames = {
676
+ locon: 'LyCORIS', lora: 'Lora', embedding: 'Embedding',
677
+ flux: 'Flux', wan: 'WAN', sdxl: 'SDXL', ltx: 'LTX',
678
+ qwen: 'Qwen', zimage: 'ZImage', zbase: 'ZBase',
679
+ klein9: 'Klein9', ernie: 'Ernie', ideogram4: 'Ideogram4', krea2: 'Krea2',
680
+ };
681
+ const fw = frameworkNames[modelType];
682
+ if (fw && personImages[fw] && personImages[fw].length > 0) {
683
+ return personImages[fw][0];
684
+ }
685
+ // Fallback to Civitai
686
+ const civitaiImg = getCivitaiImage(personKey, modelType);
687
+ if (civitaiImg) return civitaiImg;
688
+ // Fallback to thumbnail
689
+ if (_thumbnailsData[personKey]) {
690
+ return {
691
+ url: `https://huggingface.co/datasets/malcolmrey/samples/resolve/main/thumbnails/${encodeURIComponent(personKey)}.jpg`,
692
+ filename: `${personKey}.jpg`,
693
+ framework: 'Thumbnail',
694
+ };
695
+ }
696
+ return null;
697
+ }
698
+
699
+ function getAllSampleImages(personKey, modelType) {
700
+ const personImages = _hfImages[personKey] || {};
701
+ const frameworkNames = {
702
+ locon: 'LyCORIS', lora: 'Lora', embedding: 'Embedding',
703
+ flux: 'Flux', wan: 'WAN', sdxl: 'SDXL', ltx: 'LTX',
704
+ qwen: 'Qwen', zimage: 'ZImage', zbase: 'ZBase',
705
+ klein9: 'Klein9', ernie: 'Ernie', ideogram4: 'Ideogram4', krea2: 'Krea2',
706
+ };
707
+ const fw = frameworkNames[modelType];
708
+ const images = [];
709
+ if (fw && personImages[fw] && personImages[fw].length > 0) {
710
+ images.push(...personImages[fw]);
711
+ }
712
+ // Add Civitai image if not already covered by HF
713
+ const civitaiImg = getCivitaiImage(personKey, modelType);
714
+ if (civitaiImg && !images.some(img => img.url === civitaiImg.url)) {
715
+ images.push(civitaiImg);
716
+ }
717
+ return images;
718
+ }
719
+
720
+ function getDownloadUrl(personKey, modelType) {
721
+ const folder = FOLDER_MAP[modelType];
722
+ if (!folder) return '#';
723
+ const personFilenames = _filenamesData[personKey];
724
+ const files = personFilenames?.[modelType];
725
+ if (!files || files.length === 0) {
726
+ return `https://huggingface.co/malcolmrey/${folder}`;
727
+ }
728
+ const filename = files[0];
729
+ const filePath = modelType === 'wan' ? `wan2.1/${filename}` : filename;
730
+ return `https://huggingface.co/malcolmrey/${folder}/resolve/main/${filePath}?download=true`;
731
+ }
732
+
733
+ function syncUrlParams(date, type, search) {
734
+ const params = new URLSearchParams();
735
+ if (date && date !== 'all') params.set('date', date);
736
+ if (date === 'all') params.set('date', 'all');
737
+ if (type && type !== 'all') params.set('type', type);
738
+ if (search) params.set('q', search);
739
+ if (pageSize !== 24 && pageSize !== 'all') params.set('size', String(pageSize));
740
+ if (pageSize === 'all') params.set('size', 'all');
741
+ if (currentPage > 1) params.set('page', String(currentPage));
742
+ const qs = params.toString();
743
+ const newUrl = window.location.pathname + (qs ? '?' + qs : '');
744
+ history.replaceState(null, '', newUrl);
745
+ }
746
+
747
+ function renderGallery() {
748
+ const date = document.getElementById('dateSelect').value;
749
+ const typeFilter = document.getElementById('typeSelect').value;
750
+
751
+ if (!date) {
752
+ document.getElementById('galleryGrid').innerHTML = '';
753
+ document.getElementById('noResults').style.display = 'block';
754
+ document.getElementById('statsBar').innerHTML = '';
755
+ return;
756
+ }
757
+
758
+ const uploads = date === 'all'
759
+ ? _dates.flatMap(d => getUploadsForDate(d))
760
+ : getUploadsForDate(date);
761
+
762
+ // Deduplicate: one card per person+modelType (driven by samples, not models)
763
+ const seenKeys = new Set();
764
+ const deduped = [];
765
+ for (const u of uploads) {
766
+ const key = `${u.person}|${u.modelType}`;
767
+ if (seenKeys.has(key)) continue;
768
+ seenKeys.add(key);
769
+ deduped.push(u);
770
+ }
771
+
772
+ // Filter by type
773
+ let filtered = typeFilter === 'all'
774
+ ? deduped
775
+ : deduped.filter(u => u.modelType === typeFilter);
776
+
777
+ // Filter by search term
778
+ const searchTerm = document.getElementById('searchInput').value.trim().toLowerCase();
779
+ if (searchTerm) {
780
+ filtered = filtered.filter(u => u.person.toLowerCase().includes(searchTerm));
781
+ }
782
+
783
+ // Skip entries without sample images (only keep those with actual samples or thumbnails)
784
+ filtered = filtered.filter(u => getSampleImage(u.person, u.modelType) !== null);
785
+
786
+ // Sort: by model type, then person name
787
+ filtered.sort((a, b) => {
788
+ if (a.modelType !== b.modelType) return a.modelType.localeCompare(b.modelType);
789
+ return a.person.localeCompare(b.person);
790
+ });
791
+
792
+ allFilteredItems = filtered;
793
+
794
+ // Sync state to URL
795
+ syncUrlParams(date, typeFilter, searchTerm);
796
+
797
+ const grid = document.getElementById('galleryGrid');
798
+ const noResults = document.getElementById('noResults');
799
+ const statsBar = document.getElementById('statsBar');
800
+
801
+ if (filtered.length === 0) {
802
+ grid.innerHTML = '';
803
+ noResults.style.display = 'block';
804
+ statsBar.innerHTML = '';
805
+ document.getElementById('paginationTop').innerHTML = '';
806
+ document.getElementById('paginationBottom').innerHTML = '';
807
+ return;
808
+ }
809
+
810
+ noResults.style.display = 'none';
811
+
812
+ // Pagination
813
+ const totalItems = filtered.length;
814
+ const totalPages = pageSize === 'all' ? 1 : Math.ceil(totalItems / pageSize);
815
+ if (currentPage > totalPages) currentPage = totalPages;
816
+ const startIdx = pageSize === 'all' ? 0 : (currentPage - 1) * pageSize;
817
+ const endIdx = pageSize === 'all' ? totalItems : Math.min(startIdx + pageSize, totalItems);
818
+ const pageItems = filtered.slice(startIdx, endIdx);
819
+ galleryItems = pageItems;
820
+
821
+ // Stats
822
+ const typeCount = {};
823
+ filtered.forEach(u => { typeCount[u.modelType] = (typeCount[u.modelType] || 0) + 1; });
824
+ const typeSummary = Object.entries(typeCount).map(([t, c]) => `${t}: <strong>${c}</strong>`).join(' · ');
825
+ statsBar.innerHTML = `<span>Total: <strong>${filtered.length}</strong> samples</span><span>${typeSummary}</span>`;
826
+
827
+ // Pagination controls
828
+ const paginationHtml = totalPages > 1 ? buildPaginationHtml(currentPage, totalPages, startIdx + 1, endIdx, totalItems) : '';
829
+ document.getElementById('paginationTop').innerHTML = paginationHtml;
830
+ document.getElementById('paginationBottom').innerHTML = paginationHtml;
831
+
832
+ // Render cards
833
+ grid.innerHTML = pageItems.map((item, idx) => {
834
+ const sample = getSampleImage(item.person, item.modelType);
835
+ const imgUrl = sample?.url || '';
836
+ const isVideo = imgUrl.toLowerCase().endsWith('.mp4');
837
+
838
+ const mediaHtml = isVideo
839
+ ? `<video src="${imgUrl}" muted loop autoplay playsinline></video>`
840
+ : `<img src="${imgUrl}" alt="${item.person}" loading="lazy" onerror="this.src='unknown.jpg'" />`;
841
+
842
+ return `
843
+ <div class="gallery-card" onclick="openGalleryModal(${idx})">
844
+ ${mediaHtml}
845
+ <div class="gallery-card-info">
846
+ <span class="gallery-card-name">${item.person}</span>
847
+ <span class="gallery-card-badge" data-type="${item.modelType}">${item.modelType}</span>
848
+ </div>
849
+ </div>
850
+ `;
851
+ }).join('');
852
+ }
853
+
854
+ // Pagination helpers
855
+ function buildPaginationHtml(page, totalPages, from, to, total) {
856
+ let buttons = '';
857
+ const prevDisabled = page <= 1 ? 'disabled' : '';
858
+ const nextDisabled = page >= totalPages ? 'disabled' : '';
859
+ buttons += `<button class="btn" onclick="goToPage(${page - 1})" ${prevDisabled}>← Prev</button>`;
860
+
861
+ // Page numbers
862
+ const range = getPageRange(page, totalPages);
863
+ for (const p of range) {
864
+ if (p === '...') {
865
+ buttons += `<span class="pagination-ellipsis">…</span>`;
866
+ } else {
867
+ const active = p === page ? 'pagination-active' : '';
868
+ buttons += `<button class="btn ${active}" onclick="goToPage(${p})">${p}</button>`;
869
+ }
870
+ }
871
+
872
+ buttons += `<button class="btn" onclick="goToPage(${page + 1})" ${nextDisabled}>Next →</button>`;
873
+ return `<div class="pagination-controls"><span class="pagination-info">Showing ${from}–${to} of ${total}</span><div class="pagination-buttons">${buttons}</div></div>`;
874
+ }
875
+
876
+ function getPageRange(current, total) {
877
+ if (total <= 7) return Array.from({length: total}, (_, i) => i + 1);
878
+ const pages = [];
879
+ pages.push(1);
880
+ if (current > 3) pages.push('...');
881
+ for (let i = Math.max(2, current - 1); i <= Math.min(total - 1, current + 1); i++) {
882
+ pages.push(i);
883
+ }
884
+ if (current < total - 2) pages.push('...');
885
+ pages.push(total);
886
+ return pages;
887
+ }
888
+
889
+ function goToPage(page) {
890
+ const totalPages = pageSize === 'all' ? 1 : Math.ceil(allFilteredItems.length / pageSize);
891
+ if (page < 1 || page > totalPages) return;
892
+ currentPage = page;
893
+ renderGallery();
894
+ window.scrollTo({ top: 0, behavior: 'smooth' });
895
+ }
896
+
897
+ function onPageSizeChange() {
898
+ const val = document.getElementById('pageSizeSelect').value;
899
+ pageSize = val === 'all' ? 'all' : parseInt(val, 10);
900
+ currentPage = 1;
901
+ renderGallery();
902
+ }
903
+
904
+ function clearFilters() {
905
+ document.getElementById('dateSelect').value = 'all';
906
+ document.getElementById('typeSelect').value = 'all';
907
+ document.getElementById('searchInput').value = '';
908
+ document.getElementById('pageSizeSelect').value = '24';
909
+ pageSize = 24;
910
+ currentPage = 1;
911
+ renderGallery();
912
+ }
913
+
914
+ function copyLink() {
915
+ const url = window.location.href;
916
+ navigator.clipboard.writeText(url).then(() => {
917
+ const btn = document.getElementById('copyLinkBtn');
918
+ btn.textContent = '✓ Copied!';
919
+ setTimeout(() => { btn.textContent = '🔗 Copy Link'; }, 2000);
920
+ });
921
+ }
922
+
923
+ function downloadCurrentSample() {
924
+ if (modalItems.length === 0) return;
925
+ const current = modalItems[modalIndex];
926
+ if (!current || !current.url) return;
927
+ const a = document.createElement('a');
928
+ a.href = current.url;
929
+ a.download = current.filename || current.url.split('/').pop() || 'sample';
930
+ a.target = '_blank';
931
+ document.body.appendChild(a);
932
+ a.click();
933
+ document.body.removeChild(a);
934
+ }
935
+
936
+ // Modal
937
+ function openGalleryModal(idx) {
938
+ const item = galleryItems[idx];
939
+ if (!item) return;
940
+
941
+ // Build images list for this person+type
942
+ modalItems = getAllSampleImages(item.person, item.modelType);
943
+ if (modalItems.length === 0) {
944
+ // Show the card image if no dedicated samples
945
+ const sample = getSampleImage(item.person, item.modelType);
946
+ if (sample) modalItems = [sample];
947
+ }
948
+ modalIndex = 0;
949
+
950
+ document.getElementById('modalPersonName').textContent = item.person;
951
+ const personLink = document.getElementById('modalPersonLink');
952
+ personLink.href = `index.html?personcode=${encodeURIComponent(item.person)}`;
953
+
954
+ const downloadLink = getDownloadUrl(item.person, item.modelType);
955
+ document.getElementById('modalDownload').href = downloadLink;
956
+
957
+ document.getElementById('galleryModal').classList.add('active');
958
+ document.body.style.overflow = 'hidden';
959
+ updateModal();
960
+ }
961
+
962
+ function closeGalleryModal() {
963
+ document.getElementById('galleryModal').classList.remove('active');
964
+ document.body.style.overflow = '';
965
+ const video = document.getElementById('modalVideo');
966
+ video.pause();
967
+ video.removeAttribute('src');
968
+ video.load();
969
+ }
970
+
971
+ function navImage(dir) {
972
+ if (modalItems.length <= 1) return;
973
+ modalIndex = (modalIndex + dir + modalItems.length) % modalItems.length;
974
+ updateModal();
975
+ }
976
+
977
+ function updateModal() {
978
+ const img = document.getElementById('modalImg');
979
+ const video = document.getElementById('modalVideo');
980
+ const counter = document.getElementById('modalCounter');
981
+ const filenameEl = document.getElementById('modalFilename');
982
+
983
+ if (modalItems.length === 0) return;
984
+
985
+ const current = modalItems[modalIndex];
986
+ const isVideo = current.url.toLowerCase().endsWith('.mp4');
987
+
988
+ if (isVideo) {
989
+ video.src = current.url;
990
+ video.style.display = 'block';
991
+ img.style.display = 'none';
992
+ } else {
993
+ img.src = current.url;
994
+ img.alt = current.filename || '';
995
+ img.style.display = 'block';
996
+ video.style.display = 'none';
997
+ video.pause();
998
+ video.removeAttribute('src');
999
+ video.load();
1000
+ }
1001
+
1002
+ counter.textContent = modalItems.length > 1 ? `${modalIndex + 1} / ${modalItems.length}` : '';
1003
+ filenameEl.textContent = current.filename || '';
1004
+
1005
+ // Show/hide nav buttons
1006
+ const showNav = modalItems.length > 1;
1007
+ document.querySelectorAll('.nav-btn').forEach(b => b.style.display = showNav ? 'flex' : 'none');
1008
+ }
1009
+
1010
+ // Keyboard
1011
+ document.addEventListener('keydown', (e) => {
1012
+ const modal = document.getElementById('galleryModal');
1013
+ if (!modal.classList.contains('active')) return;
1014
+ if (e.key === 'Escape') closeGalleryModal();
1015
+ if (e.key === 'ArrowLeft') navImage(-1);
1016
+ if (e.key === 'ArrowRight') navImage(1);
1017
+ });
1018
+
1019
+ init();
1020
+ </script>
1021
+ </body>
1022
+ </html>
index.html CHANGED
@@ -1124,6 +1124,10 @@
1124
  background: linear-gradient(135deg, #d97706 0%, #fbbf24 100%);
1125
  }
1126
 
 
 
 
 
1127
  /* Pagination Controls */
1128
  .pagination-controls {
1129
  display: flex;
@@ -1482,6 +1486,11 @@
1482
  color: #f9a8d4;
1483
  }
1484
 
 
 
 
 
 
1485
  .daily-upload-model[data-type="sdxl"] {
1486
  background: rgba(101, 163, 13, 0.22);
1487
  color: #d9f99d;
@@ -2069,6 +2078,15 @@
2069
  <span>Ideogram4</span>
2070
  </label>
2071
 
 
 
 
 
 
 
 
 
 
2072
  <label class="checkbox-label">
2073
  <input
2074
  id="selectedQwen"
@@ -2541,6 +2559,8 @@
2541
  zbase: 'Z Image Base',
2542
  klein9: 'Klein9',
2543
  ernie: 'Ernie',
 
 
2544
  qwen: 'Qwen'
2545
  };
2546
  return baseNames[baseType] || baseType;
@@ -2559,6 +2579,7 @@
2559
  klein9: 'klein9',
2560
  ernie: 'ernie',
2561
  ideogram4: 'ideogram',
 
2562
  wan: 'wan',
2563
  sdxl: 'sdxl',
2564
  ltx: 'ltx',
@@ -2904,6 +2925,7 @@
2904
  if (document.getElementById('selectedKlein9').checked) selectedTypes.push('klein9');
2905
  if (document.getElementById('selectedErnie').checked) selectedTypes.push('ernie');
2906
  if (document.getElementById('selectedIdeogram4').checked) selectedTypes.push('ideogram4');
 
2907
  return selectedTypes;
2908
  }
2909
 
@@ -2947,6 +2969,8 @@
2947
  flux: 'Flux',
2948
  klein9: 'Klein9',
2949
  ernie: 'Ernie',
 
 
2950
  wan: 'WAN',
2951
  sdxl: 'SDXL',
2952
  ltx: 'LTX',
@@ -3060,6 +3084,7 @@
3060
  'klein9',
3061
  'ernie',
3062
  'ideogram4',
 
3063
  'qwen'
3064
  ];
3065
  const orderIndex = new Map(modelTypeOrder.map((t, i) => [t, i]));
@@ -3277,6 +3302,12 @@
3277
  ${formatModalHFLinks(element.ideogram4, 'ideogram', personFilenames.ideogram4)}
3278
  </span>
3279
  </div>
 
 
 
 
 
 
3280
  <div class="modal-stat-row">
3281
  <span class="modal-stat-label">${yesNo(element.qwen)} Qwen</span>
3282
  <span class="modal-stat-value">
@@ -3438,6 +3469,7 @@
3438
  klein9: presence[property].klein9,
3439
  ernie: presence[property].ernie,
3440
  ideogram4: presence[property].ideogram4,
 
3441
  wan: presence[property].wan,
3442
  sdxl: presence[property].sdxl,
3443
  ltx: presence[property].ltx,
@@ -3455,6 +3487,7 @@
3455
  klein9HFLink: presence[property]?.klein9HFLink,
3456
  ernieHFLink: presence[property]?.ernieHFLink,
3457
  ideogram4HFLink: presence[property]?.ideogram4HFLink,
 
3458
  wanHFLink: presence[property]?.wanHFLink,
3459
  sdxlHFLink: presence[property]?.sdxlHFLink,
3460
  ltxHFLink: presence[property]?.ltxHFLink,
@@ -3469,7 +3502,7 @@
3469
  const personData = uploadData.data[personKey];
3470
  if (!personData || !personData.models) return false;
3471
 
3472
- const allTypes = ['locon', 'lora', 'embedding', 'flux', 'wan', 'sdxl', 'ltx', 'qwen', 'zimage', 'zbase', 'klein9', 'ernie', 'ideogram4'];
3473
  const typesToCheck = types && types.length > 0 ? types : allTypes;
3474
 
3475
  for (const modelType of typesToCheck) {
@@ -3523,6 +3556,7 @@
3523
  { selected: document.getElementById('selectedKlein9').checked, property: element.klein9 },
3524
  { selected: document.getElementById('selectedErnie').checked, property: element.ernie },
3525
  { selected: document.getElementById('selectedIdeogram4').checked, property: element.ideogram4 },
 
3526
  { selected: document.getElementById('selectedQwen').checked, property: element.qwen },
3527
  ];
3528
 
@@ -3761,6 +3795,11 @@
3761
  images.push(...personHFImages.Ideogram4);
3762
  }
3763
 
 
 
 
 
 
3764
  // 5. Add WAN samples (from HF samples data)
3765
  if (personHFImages.WAN) {
3766
  images.push(...personHFImages.WAN);
 
1124
  background: linear-gradient(135deg, #d97706 0%, #fbbf24 100%);
1125
  }
1126
 
1127
+ .framework-label[data-framework="Krea2"] {
1128
+ background: linear-gradient(135deg, #059669 0%, #34d399 100%);
1129
+ }
1130
+
1131
  /* Pagination Controls */
1132
  .pagination-controls {
1133
  display: flex;
 
1486
  color: #f9a8d4;
1487
  }
1488
 
1489
+ .daily-upload-model[data-type="krea2"] {
1490
+ background: rgba(5, 150, 105, 0.22);
1491
+ color: #6ee7b7;
1492
+ }
1493
+
1494
  .daily-upload-model[data-type="sdxl"] {
1495
  background: rgba(101, 163, 13, 0.22);
1496
  color: #d9f99d;
 
2078
  <span>Ideogram4</span>
2079
  </label>
2080
 
2081
+ <label class="checkbox-label">
2082
+ <input
2083
+ id="selectedKrea2"
2084
+ type="checkbox"
2085
+ onclick="javascript:searchModels(getCurrentSearchValue());"
2086
+ />
2087
+ <span>Krea 2</span>
2088
+ </label>
2089
+
2090
  <label class="checkbox-label">
2091
  <input
2092
  id="selectedQwen"
 
2559
  zbase: 'Z Image Base',
2560
  klein9: 'Klein9',
2561
  ernie: 'Ernie',
2562
+ ideogram4: 'Ideogram4',
2563
+ krea2: 'Krea 2',
2564
  qwen: 'Qwen'
2565
  };
2566
  return baseNames[baseType] || baseType;
 
2579
  klein9: 'klein9',
2580
  ernie: 'ernie',
2581
  ideogram4: 'ideogram',
2582
+ krea2: 'krea2',
2583
  wan: 'wan',
2584
  sdxl: 'sdxl',
2585
  ltx: 'ltx',
 
2925
  if (document.getElementById('selectedKlein9').checked) selectedTypes.push('klein9');
2926
  if (document.getElementById('selectedErnie').checked) selectedTypes.push('ernie');
2927
  if (document.getElementById('selectedIdeogram4').checked) selectedTypes.push('ideogram4');
2928
+ if (document.getElementById('selectedKrea2').checked) selectedTypes.push('krea2');
2929
  return selectedTypes;
2930
  }
2931
 
 
2969
  flux: 'Flux',
2970
  klein9: 'Klein9',
2971
  ernie: 'Ernie',
2972
+ ideogram4: 'Ideogram4',
2973
+ krea2: 'Krea 2',
2974
  wan: 'WAN',
2975
  sdxl: 'SDXL',
2976
  ltx: 'LTX',
 
3084
  'klein9',
3085
  'ernie',
3086
  'ideogram4',
3087
+ 'krea2',
3088
  'qwen'
3089
  ];
3090
  const orderIndex = new Map(modelTypeOrder.map((t, i) => [t, i]));
 
3302
  ${formatModalHFLinks(element.ideogram4, 'ideogram', personFilenames.ideogram4)}
3303
  </span>
3304
  </div>
3305
+ <div class="modal-stat-row">
3306
+ <span class="modal-stat-label">${yesNo(element.krea2)} Krea 2</span>
3307
+ <span class="modal-stat-value">
3308
+ ${formatModalHFLinks(element.krea2, 'krea2', personFilenames.krea2)}
3309
+ </span>
3310
+ </div>
3311
  <div class="modal-stat-row">
3312
  <span class="modal-stat-label">${yesNo(element.qwen)} Qwen</span>
3313
  <span class="modal-stat-value">
 
3469
  klein9: presence[property].klein9,
3470
  ernie: presence[property].ernie,
3471
  ideogram4: presence[property].ideogram4,
3472
+ krea2: presence[property].krea2,
3473
  wan: presence[property].wan,
3474
  sdxl: presence[property].sdxl,
3475
  ltx: presence[property].ltx,
 
3487
  klein9HFLink: presence[property]?.klein9HFLink,
3488
  ernieHFLink: presence[property]?.ernieHFLink,
3489
  ideogram4HFLink: presence[property]?.ideogram4HFLink,
3490
+ krea2HFLink: presence[property]?.krea2HFLink,
3491
  wanHFLink: presence[property]?.wanHFLink,
3492
  sdxlHFLink: presence[property]?.sdxlHFLink,
3493
  ltxHFLink: presence[property]?.ltxHFLink,
 
3502
  const personData = uploadData.data[personKey];
3503
  if (!personData || !personData.models) return false;
3504
 
3505
+ const allTypes = ['locon', 'lora', 'embedding', 'flux', 'wan', 'sdxl', 'ltx', 'qwen', 'zimage', 'zbase', 'klein9', 'ernie', 'ideogram4', 'krea2'];
3506
  const typesToCheck = types && types.length > 0 ? types : allTypes;
3507
 
3508
  for (const modelType of typesToCheck) {
 
3556
  { selected: document.getElementById('selectedKlein9').checked, property: element.klein9 },
3557
  { selected: document.getElementById('selectedErnie').checked, property: element.ernie },
3558
  { selected: document.getElementById('selectedIdeogram4').checked, property: element.ideogram4 },
3559
+ { selected: document.getElementById('selectedKrea2').checked, property: element.krea2 },
3560
  { selected: document.getElementById('selectedQwen').checked, property: element.qwen },
3561
  ];
3562
 
 
3795
  images.push(...personHFImages.Ideogram4);
3796
  }
3797
 
3798
+ // 4c. Add Krea2 samples (from HF samples data)
3799
+ if (personHFImages.Krea2) {
3800
+ images.push(...personHFImages.Krea2);
3801
+ }
3802
+
3803
  // 5. Add WAN samples (from HF samples data)
3804
  if (personHFImages.WAN) {
3805
  images.push(...personHFImages.WAN);