css fixes

This commit is contained in:
Vladimir Mandic
2023-10-31 13:53:52 -04:00
parent 676ac120f1
commit ec0d49acb7
9 changed files with 12 additions and 11 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
:root {
--font: "Source Sans Pro", 'ui-sans-serif', 'system-ui', sans-serif;
--font-size: 16px;
--left-column: 490px;
--left-column: 500px;
--highlight-color: #8a3df6; /* Purple color */
--inactive-color: #404040; /* Darker shade of gray */
--background-color: #000000; /* Black */
+2 -2
View File
@@ -4,7 +4,7 @@
--font: 'NotoSans';
--font-mono: 'ui-monospace', 'Consolas', monospace;
--font-size: 16px;
--left-column: 490px;
--left-column: 500px;
--highlight-color: #ce6400;
--inactive-color: #4e1400;
--background-color: #000000;
@@ -39,7 +39,7 @@
--line-sm: 1.2em;
--line-md: 1.4em;
--text-sm: 12px;
--text-md: 13px;
--text-md: 14px;
--text-lg: 15px;
}
+2 -2
View File
@@ -4,7 +4,7 @@
--font: 'NotoSans';
--font-mono: 'ui-monospace', 'Consolas', monospace;
--font-size: 16px;
--left-column: 490px;
--left-column: 500px;
--primary-50: #7dffff;
--primary-100: #72e8e8;
--primary-200: #67d2d2;
@@ -36,7 +36,7 @@
--line-sm: 1.2em;
--line-md: 1.4em;
--text-sm: 12px;
--text-md: 13px;
--text-md: 14px;
--text-lg: 15px;
}
+1 -1
View File
@@ -3,7 +3,7 @@
--font: 'system-ui', 'ui-sans-serif', 'system-ui', "Roboto", sans-serif;
--font-mono: 'ui-monospace', 'Consolas', monospace;
--font-size: 16px;
--left-column: 490px;
--left-column: 500px;
--primary-100: #2b303b;
--primary-200: #15181e;
--primary-300: #0a0c0e;
+2 -2
View File
@@ -4,7 +4,7 @@
--font: 'NotoSans';
--font-mono: 'ui-monospace', 'Consolas', monospace;
--font-size: 16px;
--left-column: 490px;
--left-column: 500px;
--primary-50: #7dffff;
--primary-100: #72e8e8;
--primary-200: #67d2d2;
@@ -36,7 +36,7 @@
--line-sm: 1.2em;
--line-md: 1.4em;
--text-sm: 12px;
--text-md: 13px;
--text-md: 14px;
--text-lg: 15px;
}
+1 -1
View File
@@ -3,7 +3,7 @@
--font: "Source Sans Pro", 'ui-sans-serif', 'system-ui', "Roboto", sans-serif;
--font-mono: 'IBM Plex Mono', 'ui-monospace', 'Consolas', monospace;
--font-size: 14px;
--left-column: 490px;
--left-column: 500px;
--highlight-color: #ff00f2;
--inactive-color: #005485;
--background-color: #000000;
+1 -1
View File
@@ -1,5 +1,5 @@
@font-face { font-family: 'Roboto'; font-display: swap; font-style: normal; font-weight: 100; src: local('Roboto'), url('roboto.ttf') }
:root { --left-column: 490px; }
:root { --left-column: 500px; }
a { font-weight: bold; cursor: pointer; }
h2 { margin-top: 1em !important; font-size: 1.4em !important; }
footer { display: none; }
+1
View File
@@ -45,6 +45,7 @@ def single_sample_to_image(sample, approximation=None):
x_sample = x_sample[[2,1,0],:,:] # BGR to RGB
elif approximation == 2: # TAESD
x_sample = sd_vae_taesd.decode(sample)
x_sample = (1.0 + x_sample) / 2.0 # preview requires smaller range
elif approximation == 3: # Full VAE
x_sample = processing.decode_first_stage(shared.sd_model, sample.unsqueeze(0))[0] * 0.5 + 0.5
else:
+1 -1
View File
@@ -60,7 +60,7 @@ def decode(latents):
vae.to(devices.device, devices.dtype_vae)
enc = latents.unsqueeze(0).to(devices.device, devices.dtype_vae)
image = vae.decoder(enc).clamp(0, 1).detach()
image = 2.0 * image - 1.0
image = 2.0 * image - 1.0 # typical normalized range except for preview which runs denormalization
return image[0]