File size: 13,792 Bytes
9b6dfd6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5ecb817
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Perfection Amateur ILXL - AI Image Generator</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://unpkg.com/[email protected]/dist/aos.css" rel="stylesheet">
    <script src="https://unpkg.com/[email protected]/dist/aos.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
    <script src="https://unpkg.com/feather-icons"></script>
    <script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.globe.min.js"></script>
    <style>
        .gradient-bg {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        .glass-effect {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        .result-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 1.5rem;
        }
        .result-card {
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        .result-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.15);
        }
        .prompt-input {
            min-height: 100px;
        }
        .nsfw-toggle {
            position: relative;
            display: inline-block;
            width: 60px;
            height: 30px;
        }
        .nsfw-toggle input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        .nsfw-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: .4s;
            border-radius: 34px;
        }
        .nsfw-slider:before {
            position: absolute;
            content: "";
            height: 22px;
            width: 22px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }
        input:checked + .nsfw-slider {
            background-color: #f56565;
        }
        input:checked + .nsfw-slider:before {
            transform: translateX(30px);
        }
    </style>
</head>
<body class="min-h-screen gradient-bg" id="vanta-bg">
    <div class="container mx-auto px-4 py-8">
        <!-- Header -->
        <header class="text-center mb-12" data-aos="fade-down">
            <h1 class="text-4xl md:text-5xl font-bold text-white mb-4">Perfection Amateur ILXL</h1>
            <p class="text-xl text-white opacity-90">Advanced SDXL Image Generation Interface</p>
        </header>

        <!-- Main Content -->
        <div class="grid grid-cols-1 lg:grid-cols-3 gap-8">
            <!-- Settings Panel -->
            <div class="lg:col-span-1 glass-effect rounded-2xl p-6" data-aos="fade-right">
                <h2 class="text-2xl font-semibold text-white mb-6">Generation Settings</h2>
                
                <!-- Model Selection -->
                <div class="mb-6">
                    <label class="block text-white mb-2">Checkpoint Model</label>
                    <select class="w-full bg-white bg-opacity-10 border border-white border-opacity-20 rounded-lg px-4 py-2 text-white">
                        <option value="perfectionAmateurILXL_30">perfectionAmateurILXL_30.safetensors</option>
                        <option value="custom">Load Custom Model...</option>
                    </select>
                </div>

                <!-- LoRA Selection -->
                <div class="mb-6">
                    <label class="block text-white mb-2">DMD2 LoRA</label>
                    <div class="space-y-2">
                        <label class="flex items-center text-white">
                            <input type="checkbox" class="mr-2" checked>
                            dmd2_sdxl_4step_lora.safetensors (FP32)
                        </label>
                        <label class="flex items-center text-white">
                            <input type="checkbox" class="mr-2" checked>
                            dmd2_sdxl_4step_lora_fp16.safetensors (FP16)
                        </label>
                    </div>
                    <div class="mt-2">
                        <label class="block text-white mb-2">LoRA Weight</label>
                        <input type="range" min="0" max="1" step="0.1" value="0.7" class="w-full">
                        <span class="text-white text-sm">0.7</span>
                    </div>
                </div>

                <!-- NSFW Toggle -->
                <div class="mb-6">
                    <label class="block text-white mb-2">Content Type</label>
                    <label class="nsfw-toggle">
                        <input type="checkbox">
                        <span class="nsfw-slider"></span>
                    </label>
                    <span class="ml-3 text-white">NSFW Content</span>
                </div>

                <!-- Prompt Input -->
                <div class="mb-6">
                    <label class="block text-white mb-2">Positive Prompt</label>
                    <textarea class="w-full prompt-input bg-white bg-opacity-10 border border-white border-opacity-20 rounded-lg px-4 py-2 text-white" placeholder="Describe your image..."></textarea>
                </div>

                <div class="mb-6">
                    <label class="block text-white mb-2">Negative Prompt</label>
                    <textarea class="w-full prompt-input bg-white bg-opacity-10 border border-white border-opacity-20 rounded-lg px-4 py-2 text-white" placeholder="What to avoid..."></textarea>
                </div>

                <!-- Generation Settings -->
                <div class="grid grid-cols-2 gap-4 mb-6">
                    <div>
                        <label class="block text-white mb-2">Steps</label>
                        <input type="number" value="30" class="w-full bg-white bg-opacity-10 border border-white border-opacity-20 rounded-lg px-4 py-2 text-white">
                    </div>
                    <div>
                        <label class="block text-white mb-2">CFG Scale</label>
                        <input type="number" value="3.0" step="0.1" class="w-full bg-white bg-opacity-10 border border-white border-opacity-20 rounded-lg px-4 py-2 text-white">
                    </div>
                </div>

                <div class="grid grid-cols-2 gap-4 mb-6">
                    <div>
                        <label class="block text-white mb-2">Sampler</label>
                        <select class="w-full bg-white bg-opacity-10 border border-white border-opacity-20 rounded-lg px-4 py-2 text-white">
                            <option value="dpmpp_3m_sde">DPM++ 3M SDE</option>
                            <option value="dpmpp_2m_sde">DPM++ 2M SDE</option>
                            <option value="euler_a">Euler a</option>
                            <option value="lcm">LCM</option>
                        </select>
                    </div>
                    <div>
                        <label class="block text-white mb-2">Scheduler</label>
                        <select class="w-full bg-white bg-opacity-10 border border-white border-opacity-20 rounded-lg px-4 py-2 text-white">
                            <option value="simple">Simple</option>
                            <option value="beta">Beta</option>
                            <option value="normal">Normal</option>
                        </select>
                    </div>
                </div>

                <!-- Hi-Res Fix Settings -->
                <div class="mb-6">
                    <label class="flex items-center text-white mb-2">
                        <input type="checkbox" class="mr-2" checked>
                        Enable Hi-Res Fix
                    </label>
                    <div class="ml-6 mt-2 space-y-2">
                        <div class="grid grid-cols-2 gap-2">
                            <div>
                                <label class="block text-white text-sm">Steps</label>
                                <input type="number" value="16" class="w-full bg-white bg-opacity-10 border border-white border-opacity-20 rounded-lg px-2 py-1 text-white text-sm">
                            </div>
                            <div>
                                <label class="block text-white text-sm">CFG</label>
                                <input type="number" value="4.0" step="0.1" class="w-full bg-white bg-opacity-10 border border-white border-opacity-20 rounded-lg px-2 py-1 text-white text-sm">
                            </div>
                        </div>
                        <div>
                            <label class="block text-white text-sm">Denoise</label>
                            <input type="number" value="0.35" step="0.05" class="w-full bg-white bg-opacity-10 border border-white border-opacity-20 rounded-lg px-2 py-1 text-white text-sm">
                        </div>
                    </div>
                </div>

                <!-- Generate Button -->
                <button class="w-full bg-purple-600 hover:bg-purple-700 text-white font-bold py-3 px-4 rounded-lg transition-colors">
                    Generate Image
                </button>
            </div>

            <!-- Results Panel -->
            <div class="lg:col-span-2">
                <!-- Current Generation -->
                <div class="glass-effect rounded-2xl p-6 mb-8" data-aos="fade-left">
                    <h2 class="text-2xl font-semibold text-white mb-4">Current Generation</h2>
                    <div class="aspect-square bg-black bg-opacity-30 rounded-lg flex items-center justify-center">
                        <div class="text-center text-white opacity-70">
                            <i data-feather="image" class="w-16 h-16 mx-auto mb-2"></i>
                            <p>Image will appear here after generation</p>
                        </div>
                    </div>
                    <div class="flex justify-between mt-4">
                        <button class="bg-gray-600 hover:bg-gray-700 text-white font-bold py-2 px-4 rounded-lg transition-colors">
                            <i data-feather="download" class="w-4 h-4 inline mr-2"></i>
                            Save Image
                        </button>
                        <button class="bg-blue-600 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-lg transition-colors">
                            <i data-feather="repeat" class="w-4 h-4 inline mr-2"></i>
                            Regenerate
                        </button>
                    </div>
                </div>

                <!-- Generation History -->
                <div class="glass-effect rounded-2xl p-6" data-aos="fade-up">
                    <h2 class="text-2xl font-semibold text-white mb-4">Generation History</h2>
                    <div class="result-grid">
                        <!-- Sample history items -->
                        <div class="result-card glass-effect rounded-lg overflow-hidden">
                            <img src="http://static.photos/art/320x240/1" alt="Generated image" class="w-full h-48 object-cover">
                            <div class="p-3">
                                <p class="text-white text-sm truncate">Portrait of a woman</p>
                                <p class="text-white text-xs opacity-70">2 hours ago</p>
                            </div>
                        </div>
                        <div class="result-card glass-effect rounded-lg overflow-hidden">
                            <img src="http://static.photos/nature/320x240/2" alt="Generated image" class="w-full h-48 object-cover">
                            <div class="p-3">
                                <p class="text-white text-sm truncate">Fantasy landscape</p>
                                <p class="text-white text-xs opacity-70">5 hours ago</p>
                            </div>
                        </div>
                        <div class="result-card glass-effect rounded-lg overflow-hidden">
                            <img src="http://static.photos/abstract/320x240/3" alt="Generated image" class="w-full h-48 object-cover">
                            <div class="p-3">
                                <p class="text-white text-sm truncate">Abstract art</p>
                                <p class="text-white text-xs opacity-70">Yesterday</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script>
        // Initialize Vanta.js background
        VANTA.GLOBE({
            el: "#vanta-bg",
            mouseControls: true,
            touchControls: true,
            gyroControls: false,
            minHeight: 200.00,
            minWidth: 200.00,
            scale: 1.00,
            scaleMobile: 1.00,
            color: 0x764ba2,
            backgroundColor: 0x667eea,
            size: 0.8
        });

        // Initialize AOS
        AOS.init({
            duration: 800,
            easing: 'ease-in-out',
            once: true
        });

        // Initialize Feather Icons
        feather.replace();

        // Slider value display
        document.querySelector('input[type="range"]').addEventListener('input', function() {
            this.nextElementSibling.textContent = this.value;
        });
    </script>
</body>
</html>