Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A small bug when preprocessing the VFHQ dataset #142

Open
lxycopper opened this issue Apr 29, 2024 · 1 comment
Open

A small bug when preprocessing the VFHQ dataset #142

lxycopper opened this issue Apr 29, 2024 · 1 comment

Comments

@lxycopper
Copy link

lxycopper commented Apr 29, 2024

Good work and congratulations!

I came across a small bug when I preprocess the VFHQ dataset with the scripts scripts/preprocess_dataset.py. It is about reading files:

ibpng error: Read Error
cv2.error: OpenCV(4.8.1) /io/opencv/modules/imgproc/src/color.cpp:182: error: (-215:Assertion failed...

That's because there is an image in the VFHQ dataset which has a transparent part.
image
The image's location is at
"VFHQ_dataset/Clip+8jwB6QSzjy4+P0+C1+F17517-17845/00000184.png"
simply removing this image or adding a judgement sentence at line100-line101 in scripts/preprocess_dataset.py can fix this issue.

if img is None:
    continue

Hope this can help someone.

@Zejun-Yang
Copy link
Owner

Oh yes, excluding the invalid images is crucial. Thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants