Real3DPortrait icon indicating copy to clipboard operation
Real3DPortrait copied to clipboard

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

Open nothingwdnmd opened this issue 1 year ago • 4 comments

{'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?

nothingwdnmd avatar Mar 04 '24 14:03 nothingwdnmd

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

a2658927017 avatar Mar 06 '24 10:03 a2658927017

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

kangrl avatar Apr 17 '24 02:04 kangrl

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

WarlockZhang avatar May 17 '24 16:05 WarlockZhang

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

WarlockZhang avatar May 21 '24 07:05 WarlockZhang