Deepdanbooru linux fix
This commit is contained in:
parent
dbc8ab65f6
commit
72383abacd
1 changed files with 2 additions and 1 deletions
|
@ -50,7 +50,8 @@ def create_deepbooru_process(threshold, deepbooru_opts):
|
|||
the tags.
|
||||
"""
|
||||
from modules import shared # prevents circular reference
|
||||
shared.deepbooru_process_manager = multiprocessing.Manager()
|
||||
context = multiprocessing.get_context("spawn")
|
||||
shared.deepbooru_process_manager = context.Manager()
|
||||
shared.deepbooru_process_queue = shared.deepbooru_process_manager.Queue()
|
||||
shared.deepbooru_process_return = shared.deepbooru_process_manager.dict()
|
||||
shared.deepbooru_process_return["value"] = -1
|
||||
|
|
Loading…
Reference in a new issue