portrait_matting icon indicating copy to clipboard operation
portrait_matting copied to clipboard

Error running Generate mean masks and grids.

Open usalexsantos opened this issue 5 years ago • 1 comments

When running the Generate mean masks and grids, I'm getting this error message.

lotlib.fontconfig_pattern', 'pyparsing', 'matplotlib.colors', 'matplotlib._color_data', 'cycler', 'matplotlib._version', 'dateutil', 'dateutil._version'] Traceback (most recent call last): File "scripts/prepare_seg_plus_dataset.py", line 21, in from face_mask import FaceMasker File "D:\Portrait_Matting\scripts\face_mask.py", line 10, in from .face_detector import FaceDetector ImportError: attempted relative import with no known parent package

Can you help me?

usalexsantos avatar Mar 06 '19 16:03 usalexsantos

Change "from .face_detector import FaceDetector" to "from face_detector import FaceDetector" will solve the problem.

mansentan avatar Mar 24 '19 02:03 mansentan