diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-02-19 09:30:58 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-19 09:30:58 +0000 |
commit | cfc9849f3f64977936769b6479d6b2231ecbfc5b (patch) | |
tree | 51b29ea3b255fe43b0fe7560f9f7fdd23a475427 /modules/sd_samplers_common.py | |
parent | 5afd9e82c3829348c58803cd85b02c87308fffae (diff) | |
parent | d99bd04b3f8c7753e31aa6dea6109785c4bb92c9 (diff) | |
download | stable-diffusion-webui-gfx803-cfc9849f3f64977936769b6479d6b2231ecbfc5b.tar.gz stable-diffusion-webui-gfx803-cfc9849f3f64977936769b6479d6b2231ecbfc5b.tar.bz2 stable-diffusion-webui-gfx803-cfc9849f3f64977936769b6479d6b2231ecbfc5b.zip |
Merge branch 'master' into 6866-fix-hires-prompt-matrix
Diffstat (limited to 'modules/sd_samplers_common.py')
-rw-r--r-- | modules/sd_samplers_common.py | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/modules/sd_samplers_common.py b/modules/sd_samplers_common.py index 3c03d442..a1aac7cf 100644 --- a/modules/sd_samplers_common.py +++ b/modules/sd_samplers_common.py @@ -2,7 +2,6 @@ from collections import namedtuple import numpy as np
import torch
from PIL import Image
-import torchsde._brownian.brownian_interval
from modules import devices, processing, images, sd_vae_approx
from modules.shared import opts, state
@@ -61,18 +60,3 @@ def store_latent(decoded): class InterruptedException(BaseException):
pass
-
-
-# MPS fix for randn in torchsde
-# XXX move this to separate file for MPS
-def torchsde_randn(size, dtype, device, seed):
- if device.type == 'mps':
- generator = torch.Generator(devices.cpu).manual_seed(int(seed))
- return torch.randn(size, dtype=dtype, device=devices.cpu, generator=generator).to(device)
- else:
- generator = torch.Generator(device).manual_seed(int(seed))
- return torch.randn(size, dtype=dtype, device=device, generator=generator)
-
-
-torchsde._brownian.brownian_interval._randn = torchsde_randn
-
|