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

device error converting SD upscale model on CUDA #119

Closed
ssube opened this issue Feb 10, 2023 · 0 comments
Closed

device error converting SD upscale model on CUDA #119

ssube opened this issue Feb 10, 2023 · 0 comments
Assignees
Labels
status/fixed issues that have been fixed and released type/bug broken features
Milestone

Comments

@ssube
Copy link
Owner

ssube commented Feb 10, 2023

Traceback (most recent call last):            
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main                                                                                                                               
    return _run_code(code, main_globals, None,                                                                                                                                                        
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code                                                                                                                                          
    exec(code, run_globals)                                                                                                                                                                           
  File "/home/ssube/onnx-web/api/onnx_web/convert/__main__.py", line 174, in <module>                                                                                                                 
    exit(main())                                                                                                                                                                                      
  File "/home/ssube/onnx-web/api/onnx_web/convert/__main__.py", line 157, in main                                                                                                                     
    load_models(args, ctx, base_models)                                                                                                                                                               
  File "/home/ssube/onnx-web/api/onnx_web/convert/__main__.py", line 94, in load_models                                                                                                               
    convert_diffusion_stable(                                                                                                                                                                         
  File "/home/ssube/onnx-web/api/onnx_env/lib/python3.10/site-packages/torch/autograd/grad_mode.py", line 27, in decorate_context                                                                     
    return func(*args, **kwargs)                                                                                                                                                                      
  File "/home/ssube/onnx-web/api/onnx_web/convert/diffusion_stable.py", line 122, in convert_diffusion_stable                                                                                         
    onnx_export(                                                                                                                                                                                      
  File "/home/ssube/onnx-web/api/onnx_web/convert/diffusion_stable.py", line 36, in onnx_export                                                                                                       
    export(                                      
  File "/home/ssube/onnx-web/api/onnx_env/lib/python3.10/site-packages/torch/onnx/utils.py", line 504, in export
    _export(                                     
...
  File "/home/ssube/onnx-web/api/onnx_env/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1182, in _slow_forward
    result = self.forward(*input, **kwargs)
  File "/home/ssube/onnx-web/api/onnx_env/lib/python3.10/site-packages/torch/nn/modules/sparse.py", line 160, in forward
    return F.embedding(
  File "/home/ssube/onnx-web/api/onnx_env/lib/python3.10/site-packages/torch/nn/functional.py", line 2210, in embedding
    return torch.embedding(weight, input, padding_idx, scale_grad_by_freq, sparse)
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! (when checking argument for argument index in method wrapper__index_select)
@ssube ssube added status/fixed issues that have been fixed and released type/bug broken features labels Feb 10, 2023
@ssube ssube self-assigned this Feb 10, 2023
@ssube ssube added this to the v0.7 milestone Feb 10, 2023
@ssube ssube closed this as completed Feb 11, 2023
@ssube ssube mentioned this issue Feb 14, 2023
51 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/fixed issues that have been fixed and released type/bug broken features
Projects
None yet
Development

No branches or pull requests

1 participant