mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-01-26 19:09:45 +00:00
29 lines
478 B
Python
29 lines
478 B
Python
from collections import namedtuple
|
|
|
|
import torch
|
|
from modules import devices, shared
|
|
|
|
module_in_gpu = None
|
|
cpu = torch.device("cpu")
|
|
|
|
ModuleWithParent = namedtuple('ModuleWithParent', ['module', 'parent'], defaults=['None'])
|
|
|
|
def send_everything_to_cpu():
|
|
return
|
|
|
|
|
|
def is_needed(sd_model):
|
|
return False
|
|
|
|
|
|
def apply(sd_model):
|
|
return
|
|
|
|
|
|
def setup_for_low_vram(sd_model, use_medvram):
|
|
return
|
|
|
|
|
|
def is_enabled(sd_model):
|
|
return False
|