mirror of
https://github.com/sd-webui/stable-diffusion-webui.git
synced 2024-12-14 23:02:00 +03:00
a9bc7eae19
for more information, see https://pre-commit.ci
14 lines
380 B
Python
14 lines
380 B
Python
from diffusers import ModelMixin
|
|
import torch
|
|
|
|
|
|
class NoCheck(ModelMixin):
|
|
"""Can be used in place of safety checker. Use responsibly and at your own risk."""
|
|
|
|
def __init__(self):
|
|
super().__init__()
|
|
self.register_parameter(name="asdf", param=torch.nn.Parameter(torch.randn(3)))
|
|
|
|
def forward(self, images=None, **kwargs):
|
|
return images, [False]
|