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

error:Inference ERROR: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! #31

Open
nothingwdnmd opened this issue Mar 4, 2024 · 4 comments

Comments

@nothingwdnmd
Copy link

nothingwdnmd commented Mar 4, 2024

{'src_image_name': 'infer_out/tmp/cropped_src_img.png', 'drv_audio_name': 'C:\Users\YJJ\AppData\Local\Temp\gradio\10e38d2a0e8854b09cf1b695e2305e3219e729af\Obama_5s.wav', 'drv_pose_name': 'C:\User
s\YJJ\AppData\Local\Temp\gradio\ea1ab761e00e431654ac8293a6d1e93a2a4ca7ef\May_5s.mp4', 'bg_image_name': 'C:\Users\YJJ\AppData\Local\Temp\gradio\77e40a84169eb20cd5632ed343840895826c8a11\bg.pn
g', 'blink_mode': 'none', 'temperature': 0.2, 'mouth_amp': 0.45, 'out_mode': 'concat_debug', 'map_to_init_pose': True, 'low_memory_usage': True, 'hold_eye_opened': False, 'a2m_ckpt': 'D:\VMW\Real3DPortr
ait-main\checkpoints\240210_real3dportrait_orig\audio2secc_vae\model_ckpt_steps_400000.ckpt', 'head_ckpt': None, 'torso_ckpt': 'D:\VMW\Real3DPortrait-main\checkpoints\240210_real3dportrait_orig\audio2secc_vae\model_ckpt_steps_400000.ckpt', 'min_face_area_percent': 0.2, 'out_name': 'testout', 'seed': 42}
Inference ERROR: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!

What are the issues I encountered while using Gradio?

@a2658927017
Copy link

我也遇到同样的错误,导致我无法正常进行推理

@kangrl
Copy link

kangrl commented Apr 17, 2024

我遇到了同样的错误,无法正常推理

@WarlockZhang
Copy link

我也在使用gradio的时候遇到同样的错误,但是我使用cli推理却成功了,真奇怪,能否告诉我问题在哪

@WarlockZhang
Copy link

我想我知道问题在哪了,在选择模型的时候如果选择了同一个模型就会导致这个问题,在两个模型选择区域中必须分别选择对应的正确模型

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