Skip to content

Commit e3fa46f

Browse files
committed
Fix various typos with crate-ci/typos
1 parent e2a8745 commit e3fa46f

36 files changed

+76
-71
lines changed

CHANGELOG.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* Add support for DAT upscaler models ([#14690](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/14690), [#15039](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/15039))
1515
* Extra Networks Tree View ([#14588](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/14588), [#14900](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/14900))
1616
* NPU Support ([#14801](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/14801))
17-
* Propmpt comments support
17+
* Prompt comments support
1818

1919
### Minor:
2020
* Allow pasting in WIDTHxHEIGHT strings into the width/height fields ([#14296](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/14296))
@@ -59,7 +59,7 @@
5959
* modules/api/api.py: add api endpoint to refresh embeddings list ([#14715](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/14715))
6060
* set_named_arg ([#14773](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/14773))
6161
* add before_token_counter callback and use it for prompt comments
62-
* ResizeHandleRow - allow overriden column scale parameter ([#15004](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/15004))
62+
* ResizeHandleRow - allow overridden column scale parameter ([#15004](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/15004))
6363

6464
### Performance
6565
* Massive performance improvement for extra networks directories with a huge number of files in them in an attempt to tackle #14507 ([#14528](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/14528))
@@ -101,7 +101,7 @@
101101
* Gracefully handle mtime read exception from cache ([#14933](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/14933))
102102
* Only trigger interrupt on `Esc` when interrupt button visible ([#14932](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/14932))
103103
* Disable prompt token counters option actually disables token counting rather than just hiding results.
104-
* avoid doble upscaling in inpaint ([#14966](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/14966))
104+
* avoid double upscaling in inpaint ([#14966](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/14966))
105105
* Fix #14591 using translated content to do categories mapping ([#14995](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/14995))
106106
* fix: the `split_threshold` parameter does not work when running Split oversized images ([#15006](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/15006))
107107
* Fix resize-handle for mobile ([#15010](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/15010), [#15065](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/15065))
@@ -171,7 +171,7 @@
171171
* infotext updates: add option to disregard certain infotext fields, add option to not include VAE in infotext, add explanation to infotext settings page, move some options to infotext settings page
172172
* add FP32 fallback support on sd_vae_approx ([#14046](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/14046))
173173
* support XYZ scripts / split hires path from unet ([#14126](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/14126))
174-
* allow use of mutiple styles csv files ([#14125](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/14125))
174+
* allow use of multiple styles csv files ([#14125](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/14125))
175175
* make extra network card description plaintext by default, with an option (Treat card description as HTML) to re-enable HTML as it was (originally by [#13241](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/13241))
176176

177177
### Extensions and API:
@@ -308,7 +308,7 @@
308308
* new samplers: Restart, DPM++ 2M SDE Exponential, DPM++ 2M SDE Heun, DPM++ 2M SDE Heun Karras, DPM++ 2M SDE Heun Exponential, DPM++ 3M SDE, DPM++ 3M SDE Karras, DPM++ 3M SDE Exponential ([#12300](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/12300), [#12519](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/12519), [#12542](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/12542))
309309
* rework DDIM, PLMS, UniPC to use CFG denoiser same as in k-diffusion samplers:
310310
* makes all of them work with img2img
311-
* makes prompt composition posssible (AND)
311+
* makes prompt composition possible (AND)
312312
* makes them available for SDXL
313313
* always show extra networks tabs in the UI ([#11808](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/11808))
314314
* use less RAM when creating models ([#11958](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/11958), [#12599](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/12599))
@@ -484,7 +484,7 @@
484484
* user metadata system for custom networks
485485
* extended Lora metadata editor: set activation text, default weight, view tags, training info
486486
* Lora extension rework to include other types of networks (all that were previously handled by LyCORIS extension)
487-
* show github stars for extenstions
487+
* show github stars for extensions
488488
* img2img batch mode can read extra stuff from png info
489489
* img2img batch works with subdirectories
490490
* hotkeys to move prompt elements: alt+left/right
@@ -703,7 +703,7 @@
703703
* do not wait for Stable Diffusion model to load at startup
704704
* add filename patterns: `[denoising]`
705705
* directory hiding for extra networks: dirs starting with `.` will hide their cards on extra network tabs unless specifically searched for
706-
* LoRA: for the `<...>` text in prompt, use name of LoRA that is in the metdata of the file, if present, instead of filename (both can be used to activate LoRA)
706+
* LoRA: for the `<...>` text in prompt, use name of LoRA that is in the metadata of the file, if present, instead of filename (both can be used to activate LoRA)
707707
* LoRA: read infotext params from kohya-ss's extension parameters if they are present and if his extension is not active
708708
* LoRA: fix some LoRAs not working (ones that have 3x3 convolution layer)
709709
* LoRA: add an option to use old method of applying LoRAs (producing same results as with kohya-ss)
@@ -733,7 +733,7 @@
733733
* fix gamepad navigation
734734
* make the lightbox fullscreen image function properly
735735
* fix squished thumbnails in extras tab
736-
* keep "search" filter for extra networks when user refreshes the tab (previously it showed everthing after you refreshed)
736+
* keep "search" filter for extra networks when user refreshes the tab (previously it showed everything after you refreshed)
737737
* fix webui showing the same image if you configure the generation to always save results into same file
738738
* fix bug with upscalers not working properly
739739
* fix MPS on PyTorch 2.0.1, Intel Macs
@@ -751,7 +751,7 @@
751751
* switch to PyTorch 2.0.0 (except for AMD GPUs)
752752
* visual improvements to custom code scripts
753753
* add filename patterns: `[clip_skip]`, `[hasprompt<>]`, `[batch_number]`, `[generation_number]`
754-
* add support for saving init images in img2img, and record their hashes in infotext for reproducability
754+
* add support for saving init images in img2img, and record their hashes in infotext for reproducibility
755755
* automatically select current word when adjusting weight with ctrl+up/down
756756
* add dropdowns for X/Y/Z plot
757757
* add setting: Stable Diffusion/Random number generator source: makes it possible to make images generated from a given manual seed consistent across different GPUs

_typos.toml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[default.extend-words]
2+
# Part of "RGBa" (Pillow's pre-multiplied alpha RGB mode)
3+
Ba = "Ba"
4+
# HSA is something AMD uses for their GPUs
5+
HSA = "HSA"

extensions-builtin/LDSR/sd_hijack_ddpm_v1.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def p_losses(self, x_start, t, noise=None):
301301
elif self.parameterization == "x0":
302302
target = x_start
303303
else:
304-
raise NotImplementedError(f"Paramterization {self.parameterization} not yet supported")
304+
raise NotImplementedError(f"Parameterization {self.parameterization} not yet supported")
305305

306306
loss = self.get_loss(model_out, target, mean=False).mean(dim=[1, 2, 3])
307307

@@ -880,7 +880,7 @@ def forward(self, x, c, *args, **kwargs):
880880
def apply_model(self, x_noisy, t, cond, return_ids=False):
881881

882882
if isinstance(cond, dict):
883-
# hybrid case, cond is exptected to be a dict
883+
# hybrid case, cond is expected to be a dict
884884
pass
885885
else:
886886
if not isinstance(cond, list):
@@ -916,7 +916,7 @@ def apply_model(self, x_noisy, t, cond, return_ids=False):
916916
cond_list = [{c_key: [c[:, :, :, :, i]]} for i in range(c.shape[-1])]
917917

918918
elif self.cond_stage_key == 'coordinates_bbox':
919-
assert 'original_image_size' in self.split_input_params, 'BoudingBoxRescaling is missing original_image_size'
919+
assert 'original_image_size' in self.split_input_params, 'BoundingBoxRescaling is missing original_image_size'
920920

921921
# assuming padding of unfold is always 0 and its dilation is always 1
922922
n_patches_per_row = int((w - ks[0]) / stride[0] + 1)
@@ -926,7 +926,7 @@ def apply_model(self, x_noisy, t, cond, return_ids=False):
926926
num_downs = self.first_stage_model.encoder.num_resolutions - 1
927927
rescale_latent = 2 ** (num_downs)
928928

929-
# get top left postions of patches as conforming for the bbbox tokenizer, therefore we
929+
# get top left positions of patches as conforming for the bbbox tokenizer, therefore we
930930
# need to rescale the tl patch coordinates to be in between (0,1)
931931
tl_patch_coordinates = [(rescale_latent * stride[0] * (patch_nr % n_patches_per_row) / full_img_w,
932932
rescale_latent * stride[1] * (patch_nr // n_patches_per_row) / full_img_h)

extensions-builtin/Lora/lyco_helpers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def factorization(dimension: int, factor:int=-1) -> tuple[int, int]:
3030
In LoRA with Kroneckor Product, first value is a value for weight scale.
3131
secon value is a value for weight.
3232
33-
Becuase of non-commutative property, A⊗B ≠ B⊗A. Meaning of two matrices is slightly different.
33+
Because of non-commutative property, A⊗B ≠ B⊗A. Meaning of two matrices is slightly different.
3434
3535
examples)
3636
factor

extensions-builtin/Lora/networks.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ def network_apply_weights(self: Union[torch.nn.Conv2d, torch.nn.Linear, torch.nn
355355
"""
356356
Applies the currently selected set of networks to the weights of torch layer self.
357357
If weights already have this particular set of networks applied, does nothing.
358-
If not, restores orginal weights from backup and alters weights according to networks.
358+
If not, restores original weights from backup and alters weights according to networks.
359359
"""
360360

361361
network_layer_name = getattr(self, 'network_layer_name', None)

extensions-builtin/canvas-zoom-and-pan/javascript/zoom.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ onUiLoaded(async() => {
292292

293293
// Create tooltip
294294
function createTooltip() {
295-
const toolTipElemnt =
295+
const toolTipElement =
296296
targetElement.querySelector(".image-container");
297297
const tooltip = document.createElement("div");
298298
tooltip.className = "canvas-tooltip";
@@ -355,7 +355,7 @@ onUiLoaded(async() => {
355355
tooltip.appendChild(tooltipContent);
356356

357357
// Add a hint element to the target element
358-
toolTipElemnt.appendChild(tooltip);
358+
toolTipElement.appendChild(tooltip);
359359
}
360360

361361
//Show tool tip if setting enable

extensions-builtin/canvas-zoom-and-pan/scripts/hotkey_config.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"canvas_hotkey_grow_brush": shared.OptionInfo("W", "Enlarge the brush size"),
99
"canvas_hotkey_move": shared.OptionInfo("F", "Moving the canvas").info("To work correctly in firefox, turn off 'Automatically search the page text when typing' in the browser settings"),
1010
"canvas_hotkey_fullscreen": shared.OptionInfo("S", "Fullscreen Mode, maximizes the picture so that it fits into the screen and stretches it to its full width "),
11-
"canvas_hotkey_reset": shared.OptionInfo("R", "Reset zoom and canvas positon"),
12-
"canvas_hotkey_overlap": shared.OptionInfo("O", "Toggle overlap").info("Technical button, neededs for testing"),
11+
"canvas_hotkey_reset": shared.OptionInfo("R", "Reset zoom and canvas position"),
12+
"canvas_hotkey_overlap": shared.OptionInfo("O", "Toggle overlap").info("Technical button, needed for testing"),
1313
"canvas_show_tooltip": shared.OptionInfo(True, "Enable tooltip on the canvas"),
1414
"canvas_auto_expand": shared.OptionInfo(True, "Automatically expands an image that does not fit completely in the canvas area, similar to manually pressing the S and R buttons"),
1515
"canvas_blur_prompt": shared.OptionInfo(False, "Take the focus off the prompt when working with a canvas"),

extensions-builtin/soft-inpainting/scripts/soft_inpainting.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def latent_blend(settings, a, b, t):
104104

105105
def get_modified_nmask(settings, nmask, sigma):
106106
"""
107-
Converts a negative mask representing the transparency of the original latent vectors being overlayed
107+
Converts a negative mask representing the transparency of the original latent vectors being overlaid
108108
to a mask that is scaled according to the denoising strength for this step.
109109
110110
Where:

javascript/aspectRatioOverlay.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,17 @@ function dimensionChange(e, is_width, is_height) {
5050
var scaledx = targetElement.naturalWidth * viewportscale;
5151
var scaledy = targetElement.naturalHeight * viewportscale;
5252

53-
var cleintRectTop = (viewportOffset.top + window.scrollY);
54-
var cleintRectLeft = (viewportOffset.left + window.scrollX);
55-
var cleintRectCentreY = cleintRectTop + (targetElement.clientHeight / 2);
56-
var cleintRectCentreX = cleintRectLeft + (targetElement.clientWidth / 2);
53+
var clientRectTop = (viewportOffset.top + window.scrollY);
54+
var clientRectLeft = (viewportOffset.left + window.scrollX);
55+
var clientRectCentreY = clientRectTop + (targetElement.clientHeight / 2);
56+
var clientRectCentreX = clientRectLeft + (targetElement.clientWidth / 2);
5757

5858
var arscale = Math.min(scaledx / currentWidth, scaledy / currentHeight);
5959
var arscaledx = currentWidth * arscale;
6060
var arscaledy = currentHeight * arscale;
6161

62-
var arRectTop = cleintRectCentreY - (arscaledy / 2);
63-
var arRectLeft = cleintRectCentreX - (arscaledx / 2);
62+
var arRectTop = clientRectCentreY - (arscaledy / 2);
63+
var arRectLeft = clientRectCentreX - (arscaledx / 2);
6464
var arRectWidth = arscaledx;
6565
var arRectHeight = arscaledy;
6666

javascript/extraNetworks.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ function extraNetworksTreeProcessDirectoryClick(event, btn, tabname, extra_netwo
290290
* Processes `onclick` events when user clicks on directories in tree.
291291
*
292292
* Here is how the tree reacts to clicks for various states:
293-
* unselected unopened directory: Diretory is selected and expanded.
293+
* unselected unopened directory: Directory is selected and expanded.
294294
* unselected opened directory: Directory is selected.
295295
* selected opened directory: Directory is collapsed and deselected.
296296
* chevron is clicked: Directory is expanded or collapsed. Selected state unchanged.

javascript/ui.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ function switchWidthHeight(tabname) {
411411

412412
var onEditTimers = {};
413413

414-
// calls func after afterMs milliseconds has passed since the input elem has beed enited by user
414+
// calls func after afterMs milliseconds has passed since the input elem has been edited by user
415415
function onEdit(editId, elem, afterMs, func) {
416416
var edited = function() {
417417
var existingTimer = onEditTimers[editId];

modules/api/api.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ def init_script_args(self, request, default_script_args, selectable_scripts, sel
360360
return script_args
361361

362362
def apply_infotext(self, request, tabname, *, script_runner=None, mentioned_script_args=None):
363-
"""Processes `infotext` field from the `request`, and sets other fields of the `request` accoring to what's in infotext.
363+
"""Processes `infotext` field from the `request`, and sets other fields of the `request` according to what's in infotext.
364364
365365
If request already has a field set, and that field is encountered in infotext too, the value from infotext is ignored.
366366
@@ -409,8 +409,8 @@ def get_field_value(field, params):
409409
if request.override_settings is None:
410410
request.override_settings = {}
411411

412-
overriden_settings = infotext_utils.get_override_settings(params)
413-
for _, setting_name, value in overriden_settings:
412+
overridden_settings = infotext_utils.get_override_settings(params)
413+
for _, setting_name, value in overridden_settings:
414414
if setting_name not in request.override_settings:
415415
request.override_settings[setting_name] = value
416416

modules/call_queue.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ def f(*args, extra_outputs_array=extra_outputs, **kwargs):
100100
sys_pct = sys_peak/max(sys_total, 1) * 100
101101

102102
toltip_a = "Active: peak amount of video memory used during generation (excluding cached data)"
103-
toltip_r = "Reserved: total amout of video memory allocated by the Torch library "
104-
toltip_sys = "System: peak amout of video memory allocated by all running programs, out of total capacity"
103+
toltip_r = "Reserved: total amount of video memory allocated by the Torch library "
104+
toltip_sys = "System: peak amount of video memory allocated by all running programs, out of total capacity"
105105

106106
text_a = f"<abbr title='{toltip_a}'>A</abbr>: <span class='measurement'>{active_peak/1024:.2f} GB</span>"
107107
text_r = f"<abbr title='{toltip_r}'>R</abbr>: <span class='measurement'>{reserved_peak/1024:.2f} GB</span>"

modules/devices.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ def test_for_nans(x, where):
259259
def first_time_calculation():
260260
"""
261261
just do any calculation with pytorch layers - the first time this is done it allocaltes about 700MB of memory and
262-
spends about 2.7 seconds doing that, at least wih NVidia.
262+
spends about 2.7 seconds doing that, at least with NVidia.
263263
"""
264264

265265
x = torch.zeros((1, 1)).to(device, dtype)

modules/extra_networks.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def activate(self, p, params_list):
6060
Where name matches the name of this ExtraNetwork object, and arg1:arg2:arg3 are any natural number of text arguments
6161
separated by colon.
6262
63-
Even if the user does not mention this ExtraNetwork in his prompt, the call will stil be made, with empty params_list -
63+
Even if the user does not mention this ExtraNetwork in his prompt, the call will still be made, with empty params_list -
6464
in this case, all effects of this extra networks should be disabled.
6565
6666
Can be called multiple times before deactivate() - each new call should override the previous call completely.

modules/initialize.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def load_model():
139139
"""
140140
Accesses shared.sd_model property to load model.
141141
After it's available, if it has been loaded before this access by some extension,
142-
its optimization may be None because the list of optimizaers has neet been filled
142+
its optimization may be None because the list of optimizers has not been filled
143143
by that time, so we apply optimization again.
144144
"""
145145
from modules import devices

modules/mac_specific.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
# before torch version 1.13, has_mps is only available in nightly pytorch and macOS 12.3+,
1414
# use check `getattr` and try it for compatibility.
15-
# in torch version 1.13, backends.mps.is_available() and backends.mps.is_built() are introduced in to check mps availabilty,
15+
# in torch version 1.13, backends.mps.is_available() and backends.mps.is_built() are introduced in to check mps availability,
1616
# since torch 2.0.1+ nightly build, getattr(torch, 'has_mps', False) was deprecated, see https://github.com/pytorch/pytorch/pull/103279
1717
def check_for_mps() -> bool:
1818
if version.parse(torch.__version__) <= version.parse("2.0.1"):

0 commit comments

Comments
 (0)