mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-04-30 19:21:21 +00:00
Fix CQ tests (#141)
* Make test client run on cpu * test on cpu try fix device try fix device try fix device * Use real SD1.5 model for testing * ckpt nits * Remove coverage calls
This commit is contained in:
@@ -5,6 +5,7 @@ from ldm_patched.modules.args_parser import args
|
||||
import ldm_patched.modules.utils
|
||||
import torch
|
||||
import sys
|
||||
import os
|
||||
|
||||
class VRAMState(Enum):
|
||||
DISABLED = 0 #No vram present: no need to move models to vram
|
||||
@@ -58,7 +59,7 @@ try:
|
||||
except:
|
||||
pass
|
||||
|
||||
if args.always_cpu:
|
||||
if args.always_cpu or os.environ.get("FORGE_CQ_TEST", ""):
|
||||
cpu_state = CPUState.CPU
|
||||
|
||||
def is_intel_xpu():
|
||||
|
||||
Reference in New Issue
Block a user