improved logics

pull/20/head
Haoming 2024-03-04 18:12:52 +08:00
parent 0300e12e70
commit df38c3662e
7 changed files with 20 additions and 18 deletions

View File

@ -1,4 +1,7 @@
### v2.0.0 - 2024 Mar.04
- Improved Logics
### v2.0.zeta - 2024 Mar.04
- Support **SDXL**
### v2.0.gamma - 2024 Mar.01

View File

@ -111,7 +111,7 @@ Therefore, I added a scaling option to modify the offset amount throughout the p
- **Pos. Prompt:** `[high quality, best quality], 1girl, solo, casual, night, street, city, <lora:SDXL_Lightning_8steps:1>`
- **Neg. Prompt:** `lowres, [low quality, worst quality], jpeg`
- `Euler A SGMUniform`; `10 steps`; `2.0 CFG`; **Seed:** `2836968120`
- `Straight Abs.` ; `Flat`
- `Multi-Res Abs.` ; `Cos`
<p align="center">
<code>Disabled</code><br>
@ -119,14 +119,14 @@ Therefore, I added a scaling option to modify the offset amount throughout the p
</p>
<p align="center">
<code>Brightness: 2.5 ; Contrast: -0.5 ; Saturation: 1.5<br>
R: 2.5; G: 2.5; B: -4</code><br>
<code>Brightness: 2.0 ; Contrast: -0.5 ; Saturation: 1.5<br>
R: 2.5; G: 1.5; B: -3</code><br>
<img src="samples/01.jpg" width=768>
</p>
<p align="center">
<code>Brightness: -2.5 ; Contrast: 0.5 ; Saturation: 1.5<br>
R: -1; G: -1; B: 2.5</code><br>
<code>Brightness: -2.5 ; Contrast: 1 ; Saturation: 0.75<br>
R: -1.5; G: -1.5; B: 4</code><br>
<img src="samples/02.jpg" width=768>
</p>

View File

@ -68,10 +68,12 @@ class VectorscopeCC {
});
});
wheel.addEventListener('mouseup', () => {
updateInput(sliders[0][1]);
updateInput(sliders[1][1]);
updateInput(sliders[2][1]);
['mouseleave', 'mouseup'].forEach((event) => {
wheel.addEventListener(event, () => {
updateInput(sliders[0][0]);
updateInput(sliders[1][0]);
updateInput(sliders[2][0]);
});
});
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 170 KiB

After

Width:  |  Height:  |  Size: 148 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 193 KiB

After

Width:  |  Height:  |  Size: 195 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 158 KiB

After

Width:  |  Height:  |  Size: 114 KiB

View File

@ -222,15 +222,12 @@ class VectorscopeCC(scripts.Script):
p.extra_generation_params['Vec CC Scaling'] = scaling
p.extra_generation_params['Vec CC Version'] = VERSION
# Decouple from Steps
scale:int = 16
bri /= scale
con /= scale
sat = pow(sat, 1.0 / scale)
r /= scale
g /= scale
b /= scale
bri /= steps
con /= steps
sat = pow(sat, 1.0 / steps)
r /= steps
g /= steps
b /= steps
mode = 'x' if latent else 'denoised'