You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import os
import torch
from facexlib.utils.face_restoration_helper import FaceRestoreHelper
from torchvision.transforms.functional import normalize
from basicsr.utils import img2tensor, tensor2img
from gfpgan.archs.gfpganv1_clean_arch import GFPGANv1Clean
from basicsr.archs.rrdbnet_arch import RRDBNet
from realesrgan import RealESRGANer
import multiprocessing as mp
from multiprocessing import shared_memory, Pool
class WorkerManager:
def __init__(self):
self.preprocess_queue = mp.Manager().Queue(maxsize=400)
print("init preprocess queue")
self.pool = Pool(80)
if __name__ == '__main__':
wm = WorkerManager()
from basicsr.utils import img2tensor, tensor2img
from gfpgan.archs.gfpganv1_clean_arch import GFPGANv1Clean
from basicsr.archs.rrdbnet_arch import RRDBNet
from realesrgan import RealESRGANer
就不会崩溃。
请问如何解决呢
The text was updated successfully, but these errors were encountered:
开多进程,gfpgan/utils.py崩溃
定位原因:和python import package有关系
这四个import导致偶现的创建进程池崩溃
最小复现代码:
偶现崩溃,崩溃日志如下:
如果去掉下面这四个import
就不会崩溃。
请问如何解决呢
The text was updated successfully, but these errors were encountered: