mirror of
https://github.com/vladmandic/automatic
synced 2026-08-30 00:50:59 +02:00
df0e89be48
Unstable & need more test.
6 lines
364 B
Python
6 lines
364 B
Python
import torch
|
|
|
|
from modules.sd_hijack_utils import CondFunc
|
|
|
|
CondFunc('torchsde._brownian.brownian_interval._randn', lambda _, size, dtype, device, seed: torch.randn(size, dtype=dtype, device=torch.device("cpu"), generator=torch.Generator(torch.device("cpu")).manual_seed(int(seed))).to(device), lambda _, size, dtype, device, seed: device.type == 'privateuseone')
|