hukenovs/easyportrait

about assert palette.shape[0] == len(self.CLASSES) error ?

zhanghongyong123456 opened this issue · 3 comments

image

my config set:
image

Ask a face alignment question:
I have an image(1920x1080 size) which contains faces,
Step 1: Detect faces(size 1024x1024)
Step 2: Face Alignment
Step 3: Operate the face to get the processed face
Step 4: put the processed face back to the original position of the original image
about Step4 ,How to restore the face alignment operation in the second step

Thank you for reaching out!

To help you solve the first problem, please set --palette=easy_portrait in your run configurations. Check the inference code example here.

About the face alignment problem:

You can use the original coordinates of face landmarks and restore the face box to its original position.