-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
153 lines (143 loc) · 6.92 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SD3.5L Style Test Gallery</title>
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
max-width: 1200px;
margin: 0 auto;
padding: 20px;
background-color: #f5f5f5;
line-height: 1.6;
}
.intro {
background-color: white;
padding: 20px;
border-radius: 8px;
margin-bottom: 20px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.gallery {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 20px;
padding: 20px 0;
}
.gallery-item {
background-color: white;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
transition: transform 0.2s;
}
.gallery-item:hover {
transform: translateY(-5px);
}
.gallery-item img {
width: 100%;
height: auto;
display: block;
}
.gallery-item .caption {
padding: 15px;
}
.gallery-item .style-name {
font-weight: bold;
margin-bottom: 8px;
font-size: 1.1em;
}
.gallery-item .prompt {
font-style: italic;
font-size: 0.9em;
color: #666;
}
h1 {
margin-top: 0;
}
</style>
</head>
<body>
<div class="intro">
<h1>SD3.5L Style Test Gallery</h1>
<p>This gallery showcases various artistic styles implemented in Stable Diffusion 3.5 Large. Each image demonstrates a unique style application, accompanied by the prompt used to generate it.</p>
<p>The collection includes over 140 different styles, ranging from traditional art forms to modern digital techniques. Each style demonstrates the capabilities of SD3.5L in interpreting and applying various artistic approaches.</p>
</div>
<div id="imageGallery" class="gallery">
<!-- Gallery items will be dynamically loaded here -->
</div>
<script>
async function fetchPrompt(style) {
try {
const response = await fetch(`gallery-assets/${style}.txt`);
if (!response.ok) throw new Error('Failed to fetch prompt');
const text = await response.text();
return text.trim();
} catch (error) {
console.error(`Error loading prompt for ${style}:`, error);
return 'Prompt not available';
}
}
async function loadGallery() {
const gallery = document.getElementById('imageGallery');
// List of styles from your file structure
const styles = [
'16-bitPixelArt', '3DModeling', '8-bitPixelArt', 'Aboriginal',
'AbstractExpressionism', 'AcrylicPainting', 'AerialPhotography',
'AfricanArt', 'Airbrush', 'Anime', 'ArchitecturalPhotography',
'ArtBrut', 'ArtDeco', 'ArtNouveau', 'ASCIIArt', 'Assemblage',
'Astrophotography', 'Baroque', 'Batik', 'Bauhaus', 'BlackandWhitePhotography',
'Bokeh', 'Byzantine', 'Calligraphy', 'Celtic', 'CGI', 'CharcoalDrawing',
'Classicism', 'Collage', 'ColorPencil', 'ConceptArt', 'Constructivism',
'Cubism', 'Cyanotype', 'Dadaism', 'DeStijl', 'DigitalArt', 'DigitalGlitchArt',
'DocumentaryPhotography', 'DoubleExposure', 'Duotone', 'Editorial', 'Encaustic',
'Etching', 'Expressionism', 'FashionIllustration', 'FashionPhotography',
'Fauvism', 'FluidArt', 'FolkArt', 'FoodPhotography', 'FoundObjectArt',
'GameArt', 'GlassArt', 'Gothic', 'Gouache', 'Graffiti', 'GraphiteDrawing',
'HDR', 'HighContrast', 'HolographicArt', 'IconDesign', 'Impressionism',
'Infographic', 'InfraredPhotography', 'InkWash', 'InstallationArt',
'IslamicArt', 'Isometric', 'JapaneseUkiyo-e', 'KineticArt', 'LandArt',
'LandscapePhotography', 'LightArt', 'LightLeaks', 'LightPainting',
'Linocut', 'Lithography', 'Lomography', 'LongExposure', 'LowPoly',
'MacroPhotography', 'Manga', 'MarbleArt', 'MaterialDesign', 'Metalwork',
'Minimalism', 'MixedMedia', 'Modernism', 'Mosaic', 'MotionGraphics',
'Mughal', 'MultipleExposure', 'NaiveArt', 'NativeAmerican', 'Neo-Classical',
'NetArt', 'NightPhotography', 'OilPainting', 'PaperArt', 'Pastel',
'PenandInk', 'PerformanceArt', 'PersianMiniature', 'PixelArt', 'PopArt',
'PortraitPhotography', 'Post-Impressionism', 'Precisionism', 'Primitivism',
'Printmaking', 'Pyrography', 'Quilling', 'Rajasthani', 'Realism', 'Rococo',
'Romanticism', 'Scratchboard', 'ScreenPrinting', 'Sculpture', 'SelectiveColor',
'Sepia', 'Solarization', 'StreetArt', 'StreetPhotography', 'StringArt',
'Surrealism', 'Symbolism', 'TechnicalIllustration', 'Tempera', 'TextileArt',
'Thangka', 'Tibetan', 'Tilt-shift', 'Time-lapsePhotography', 'Tonalism',
'UI-UXDesign', 'UnderwaterPhotography', 'VectorArt', 'Victorian', 'VideoArt',
'VintageEffect', 'VoxelArt', 'Watercolor', 'WireArt', 'WoodblockPrinting',
'Woodburning'
];
// Create and append gallery items
for (const style of styles) {
const prompt = await fetchPrompt(style);
const item = document.createElement('div');
item.className = 'gallery-item';
// Format the style name for display (e.g., "ArtDeco" -> "Art Deco")
const displayName = style
.replace(/([A-Z])/g, ' $1') // Add space before capital letters
.replace(/^./, str => str.toUpperCase()) // Capitalize first letter
.trim();
item.innerHTML = `
<img src="gallery-assets/${style}.png" alt="${displayName}" loading="lazy">
<div class="caption">
<div class="style-name">${displayName}</div>
<div class="prompt">${prompt}</div>
</div>
`;
gallery.appendChild(item);
}
}
// Load gallery when page loads
window.addEventListener('load', loadGallery);
</script>
</body>
</html>