mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-09 06:45:09 +00:00
small fix
This commit is contained in:
@@ -2,7 +2,5 @@ import threading
|
|||||||
from typing import *
|
from typing import *
|
||||||
|
|
||||||
|
|
||||||
def fire_in_thread(f):
|
def fire_in_thread(f, *args, **kwargs):
|
||||||
def wrapped(*args, **kwargs):
|
threading.Thread(target=f, args=args, kwargs=kwargs).start()
|
||||||
threading.Thread(target=f, args=args, kwargs=kwargs).start()
|
|
||||||
return wrapped
|
|
||||||
Reference in New Issue
Block a user