initial commit
This commit is contained in:
28
modules/lowvram.py
Executable file
28
modules/lowvram.py
Executable file
@@ -0,0 +1,28 @@
|
||||
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
|
||||
Reference in New Issue
Block a user