1. 02 12月, 2023 15 次提交
  2. 01 12月, 2023 2 次提交
  3. 29 11月, 2023 3 次提交
    • H
      Fix the Ruff error about unused import · 81c00728
      hidenorly 提交于
      81c00728
    • H
      Add FP32 fallback support on torch.nn.functional.interpolate · a0096c58
      hidenorly 提交于
      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```
      a0096c58
    • H
      Revert "Add FP32 fallback support on sd_vae_approx" · 39eae9f0
      hidenorly 提交于
      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)
      39eae9f0
  4. 28 11月, 2023 3 次提交
  5. 27 11月, 2023 13 次提交
  6. 26 11月, 2023 4 次提交