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

RuntimeError: expected scalar type Double but found Float #39

Open
zljnihao123 opened this issue Mar 3, 2023 · 2 comments
Open

RuntimeError: expected scalar type Double but found Float #39

zljnihao123 opened this issue Mar 3, 2023 · 2 comments

Comments

@zljnihao123
Copy link

你好,我直接test_image.py运行的时候出现了这个问题,能否帮我解答一下,谢谢

@kuaikuaikim
Copy link
Owner

kuaikuaikim commented Mar 3, 2023 via email

@qiwdqiddadadwda
Copy link

你好,我直接test_image.py运行的时候出现了这个问题,能否帮我解答一下,谢谢

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

3 participants