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

AttributeError: module 'torch' has no attribute 'complex' #31

Open
yosun opened this issue Jun 21, 2023 · 1 comment
Open

AttributeError: module 'torch' has no attribute 'complex' #31

yosun opened this issue Jun 21, 2023 · 1 comment

Comments

@yosun
Copy link

yosun commented Jun 21, 2023

(HRN) yc@razer3080ti:~/testing3dai/HRN/HRN$ pip install torch-complex
Keyring is skipped due to an exception: 'keyring.backends'
Requirement already satisfied: torch-complex in /home/yc/anaconda3/lib/python3.7/site-packages (0.4.3)
Requirement already satisfied: numpy in /home/yc/anaconda3/lib/python3.7/site-packages (from torch-complex) (1.18.1)
(HRN) yc@razer3080ti:~/testing3dai/HRN/HRN$ CUDA_VISIBLE_DEVICES=0 python demo.py --input_type single_view --input_root ./assets/examples/single_view_image --output_root ./assets/examples/single_view_image_results
Traceback (most recent call last):
  File "demo.py", line 2, in <module>
    from models.hrn import Reconstructor
  File "/home/yc/testing3dai/HRN/HRN/models/__init__.py", line 22, in <module>
    from models.base_model import BaseModel
  File "/home/yc/testing3dai/HRN/HRN/models/base_model.py", line 6, in <module>
    from . import networks
  File "/home/yc/testing3dai/HRN/HRN/models/networks.py", line 16, in <module>
    from kornia.geometry import warp_affine
  File "/home/yc/anaconda3/lib/python3.7/site-packages/kornia/__init__.py", line 3, in <module>
    from . import filters
  File "/home/yc/anaconda3/lib/python3.7/site-packages/kornia/filters/__init__.py", line 3, in <module>
    from .bilateral import BilateralBlur, JointBilateralBlur, bilateral_blur, joint_bilateral_blur
  File "/home/yc/anaconda3/lib/python3.7/site-packages/kornia/filters/bilateral.py", line 3, in <module>
    from kornia.core import Module, Tensor, pad
  File "/home/yc/anaconda3/lib/python3.7/site-packages/kornia/core/__init__.py", line 1, in <module>
    from ._backend import (
  File "/home/yc/anaconda3/lib/python3.7/site-packages/kornia/core/_backend.py", line 24, in <module>
    complex = torch.complex
AttributeError: module 'torch' has no attribute 'complex'
@Dutra-Apex
Copy link

What torch version are you using?

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

2 participants