- 29 Nov, 2023 3 commits
-
-
hidenorly authored
-
hidenorly authored
This tries to execute interpolate with FP32 if it failed. Background is that on some environment such as Mx chip MacOS devices, we get error as follows: ``` "torch/nn/functional.py", line 3931, in interpolate return torch._C._nn.upsample_nearest2d(input, output_size, scale_factors) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: "upsample_nearest2d_channels_last" not implemented for 'Half' ``` In this case, ```--no-half``` doesn't help to solve. Therefore this commits add the FP32 fallback execution to solve it. Note that the ```upsample_nearest2d``` is called from ```torch.nn.functional.interpolate```. And the fallback for torch.nn.functional.interpolate is necessary at ```modules/sd_vae_approx.py``` 's ```VAEApprox.forward``` ```repositories/stable-diffusion-stability-ai/ldm/modules/diffusionmodules/openaimodel.py``` 's ```Upsample.forward```
-
hidenorly authored
This reverts commit 58c19545. Since the modification is expected to move to mac_specific.py (https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/14046#issuecomment-1826731532)
-
- 21 Nov, 2023 1 commit
-
-
hidenorly authored
This tries to execute interpolate with FP32 if it failed. Background is that on some environment such as Mx chip MacOS devices, we get error as follows: ``` "torch/nn/functional.py", line 3931, in interpolate return torch._C._nn.upsample_nearest2d(input, output_size, scale_factors) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: "upsample_nearest2d_channels_last" not implemented for 'Half' ``` In this case, ```--no-half``` doesn't help to solve. Therefore this commits add the FP32 fallback execution to solve it. Note that the submodule may require additional modifications. The following is the example modification on the other submodule. ```repositories/stable-diffusion-stability-ai/ldm/modules/diffusionmodules/openaimodel.py class Upsample(nn.Module): ..snip.. def forward(self, x): assert x.shape[1] == self.channels if self.dims == 3: x = F.interpolate( x, (x.shape[2], x.shape[3] * 2, x.shape[4] * 2), mode="nearest" ) else: try: x = F.interpolate(x, scale_factor=2, mode="nearest") except: x = F.interpolate(x.to(th.float32), scale_factor=2, mode="nearest").to(x.dtype) if self.use_conv: x = self.conv(x) return x ..snip.. ``` You can see the FP32 fallback execution as same as sd_vae_approx.py.
-
- 20 Nov, 2023 6 commits
-
-
AUTOMATIC1111 authored
Option to show batch img2img results in UI
-
AUTOMATIC1111 authored
-
AUTOMATIC1111 authored
implementing script metadata and DAG sorting mechanism
-
AUTOMATIC1111 authored
rework extensions metadata: use custom sorter that doesn't mess the order as much and ignores cyclic errors, use classes with named fields instead of dictionaries, eliminate some duplicated code
-
AUTOMATIC1111 authored
save sysinfo as .json
-
w-e-w authored
GitHub now allows uploading of .json files in issues
-
- 19 Nov, 2023 12 commits
-
-
w-e-w authored
shared.opts.img2img_batch_show_results_limit limit the number of images return to the UI for batch img2img default limit 32 0 no images are shown -1 unlimited, all images are shown
-
wfjsw authored
-
AUTOMATIC1111 authored
Enable prompt hotkeys in style editor
-
AUTOMATIC1111 authored
thread safe extra network list_items
-
AUTOMATIC1111 authored
Fix dependency address patch 1
-
AUTOMATIC1111 authored
Fixes generation restart not working for some users when 'Ctrl+Enter' is pressed
-
AUTOMATIC1111 authored
Adds 'Path' sorting for Extra network cards
-
AUTOMATIC1111 authored
Hotfix: call shared.state.end() after postprocessing done
-
AUTOMATIC1111 authored
Support inference with OFT networks
-
AUTOMATIC1111 authored
Adds tqdm handler to logging_config.py for progress bar integration
-
AUTOMATIC1111 authored
added accordion settings options
-
AUTOMATIC1111 authored
feat: fix randn found element of type float at pos 2
-
- 17 Nov, 2023 4 commits
-
-
storyicon authored
Signed-off-by: storyicon <storyicon@foxmail.com>
-
Your Name authored
-
Lucas Daniel Velazquez M authored
-
Lucas Daniel Velazquez M authored
-
- 16 Nov, 2023 1 commit
-
-
v0xie authored
-
- 15 Nov, 2023 2 commits
-
-
v0xie authored
-
AngelBottomless authored
-
- 14 Nov, 2023 1 commit
-
-
kaalibro authored
-
- 13 Nov, 2023 1 commit
-
-
kaalibro authored
-
- 12 Nov, 2023 4 commits
- 11 Nov, 2023 5 commits
-
-
wfjsw authored
-
wfjsw authored
-
wfjsw authored
-
Emily Zeng authored
-
w-e-w authored
-