mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-04-27 09:41:31 +00:00
implement args for new backend
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import torch
|
||||
import argparse
|
||||
from backend import args
|
||||
|
||||
|
||||
def stream_context():
|
||||
@@ -56,11 +56,6 @@ current_stream = None
|
||||
mover_stream = None
|
||||
using_stream = False
|
||||
|
||||
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument("--cuda-stream", action="store_true")
|
||||
args = parser.parse_known_args()[0]
|
||||
|
||||
if args.cuda_stream:
|
||||
current_stream = get_current_stream()
|
||||
mover_stream = get_new_stream()
|
||||
|
||||
Reference in New Issue
Block a user