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

gen_Onet_train_data.py ValueError: negative dimensions are not allowed #38

Open
longgao opened this issue Sep 27, 2022 · 1 comment
Open

Comments

@longgao
Copy link

longgao commented Sep 27, 2022

File "/home/mcw/PycharmProjects/DFace-master/dface/core/detect.py", line 391, in detect_rnet
tmp = np.zeros((tmph[i], tmpw[i], 3), dtype=np.uint8)

@qiwdqiddadadwda
Copy link

Don't change any other code from this repo and just replace row 20 in /dface/core/image_tools.py
return (transform(image) / 255).float()

It will work fine

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