kuaikuaikim / dface

Deep learning face detection and recognition, implemented by pytorch. (pytorch实现的人脸检测和人脸识别)
http://dface.tech
Apache License 2.0
1.24k stars 348 forks source link

RuntimeError: expected scalar type Double but found Float #39

Open zljnihao123 opened 1 year ago

zljnihao123 commented 1 year ago

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

kuaikuaikim commented 1 year ago

这是来自QQ邮箱的假期自动回复邮件。你好,我最近正在休假中,无法亲自回复你的邮件。我将在假期结束后,尽快给你回复。

qiwdqiddadadwda commented 9 months ago

你好,我直接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