Deepdanbooru linux fix

This commit is contained in:
Greendayle 2022-10-22 16:50:07 +02:00 committed by AUTOMATIC1111
parent dbc8ab65f6
commit 72383abacd
1 changed files with 2 additions and 1 deletions

View File

@ -50,7 +50,8 @@ def create_deepbooru_process(threshold, deepbooru_opts):
the tags. the tags.
""" """
from modules import shared # prevents circular reference 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_queue = shared.deepbooru_process_manager.Queue()
shared.deepbooru_process_return = shared.deepbooru_process_manager.dict() shared.deepbooru_process_return = shared.deepbooru_process_manager.dict()
shared.deepbooru_process_return["value"] = -1 shared.deepbooru_process_return["value"] = -1