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: Input type (double) and bias type (float) should be the same #40

Open
1markwang opened this issue May 8, 2023 · 4 comments

Comments

@1markwang
Copy link

您好,我出现了这样的问题,您有时间吗,可以给解答一下吗

@kuaikuaikim
Copy link
Owner

kuaikuaikim commented May 8, 2023 via email

@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

@jacktangs
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

It works. Thank you a lot.

@kuaikuaikim
Copy link
Owner

kuaikuaikim commented Mar 13, 2024 via email

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

4 participants