开发者社区 > 云原生 > Serverless > 正文

函数计算FC文生图时,生成出错,怎么解决?

函数计算FC文生图时,生成出错,怎么解决?RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cpu and cuda:0! (when checking argument for argument index in method wrapper_CUDA__index_select)
c-65a4f47a-0709fb26-6a7f96bfe7fc2024-01-15 17:08:56[GIN] 2024/01/15 - 09:08:55 | 422 | 891.286µs | 103.232.212.91 | POST "/internal/progress"

[GIN] 2024/01/15 - 09:08:55 | 422 | 715.813µs | 103.232.212.91 | POST "/run/predict"

[GIN] 2024/01/15 - 09:08:55 | 422 | 724.581µs | 103.232.212.91 | POST "/run/predict"

[GIN] 2024/01/15 - 09:08:55 | 422 | 707.779µs | 103.232.212.91 | POST "/run/predict"

[GIN] 2024/01/15 - 09:08:55 | 422 | 684.884µs | 103.232.212.91 | POST "/run/predict"

[GIN] 2024/01/15 - 09:08:56 | 422 | 735.541µs | 103.232.212.91 | POST "/internal/progress"

[GIN] 2024/01/15 - 09:08:56 | 404 | 728.18222ms | 103.232.212.91 | GET "/queue/join"

c-65a4f47a-0709fb26-6a7f96bfe7fc2024-01-15 17:08:57

FC Invoke End RequestId: 1-65a4f628-07f0db59-5029d756da97

c-65a4f47a-0709fb26-6a7f96bfe7fc2024-01-15 17:08:57* Error completing request


Arguments: ('task(hp2lvjjnuel7jck)', 'masterpiece, best quality, very detailed, extremely detailed beautiful, super detailed, tousled hair, illustration, dynamic angles, girly, fashion clothing, standing, mannequin, looking at viewer, interview, beach, beautiful detailed eyes, exquisitely beautiful face, floating, high saturation, beautiful and detailed light and shadow', 'loli,nsfw,logo,text,badhandv4,EasyNegative,ng_deepnegative_v1_75t,rev2-badprompt,verybadimagenegative_v1.3,negative_hand-neg,mutated hands and fingers,poorly drawn face,extra limb,missing limb,disconnected limbs,malformed hands,ugly', [], 20, 'Euler a', 1, 1, 7, 512, 512, False, 0.7, 2, 'Latent', 0, 0, 0, 'Use same checkpoint', 'Use same sampler', '', '', [], , 0, False, '', 0.8, -1, False, -1, 0, 0, 0, False, {}, {}, , , , 1, False, False, 'positive', 'comma', 0, False, False, '', 1, '', [], 0, '', [], 0, '', [], True, False, False, False, 0, False, None, None, False, None, None, False, None, None, False, 50) {}

Traceback (most recent call last):



  File "/stable-diffusion-webui/modules/call_queue.py", line 57, in f



    res = list(func(*args, **kwargs))



  File "/stable-diffusion-webui/modules/call_queue.py", line 36, in f



    res = func(*args, **kwargs)



  File "/stable-diffusion-webui/modules/txt2img.py", line 55, in txt2img



    processed = processing.process_images(p)



  File "/stable-diffusion-webui/modules/processing.py", line 732, in process_images



    res = process_images_inner(p)



  File "/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/batch_hijack.py", line 42, in processing_process_images_hijack

展开
收起
三分钟热度的鱼 2024-01-24 14:26:51 52 0
0 条回答
写回答
取消 提交回答

快速交付实现商业价值。

相关产品

  • 函数计算
  • 热门讨论

    热门文章

    相关电子书

    更多
    MaxCompute Serverless 架构演进 立即下载
    Hologres Serverless之路:揭秘弹性计算组 立即下载
    通义万相:视觉生成大模型的进化与应用 立即下载