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

ImportError: /usr/local/lib/python3.7/dist-packages/mmcv/_ext.cpython-37m-x86_64-linux-gnu.so #9

Open
toufique-imam opened this issue Jul 22, 2022 · 0 comments

Comments

@toufique-imam
Copy link

toufique-imam commented Jul 22, 2022

I am getting this error in
google colab

Traceback (most recent call last):
  File "demo/restoration_single_face_demo.py", line 12, in <module>
    from mmedit.apis import init_model, restoration_inference
  File "./mmedit/apis/__init__.py", line 5, in <module>
    from .train import init_random_seed, set_random_seed, train_model, init_model
  File "./mmedit/apis/train.py", line 21, in <module>
    from mmedit.models import build_model
  File "./mmedit/models/__init__.py", line 7, in <module>
    from .components import *  # noqa: F401, F403
  File "./mmedit/models/components/__init__.py", line 3, in <module>
    from .stylegan2 import StyleGAN2Discriminator, StyleGANv2Generator
  File "./mmedit/models/components/stylegan2/__init__.py", line 2, in <module>
    from .generator_discriminator import (StyleGAN2Discriminator,
  File "./mmedit/models/components/stylegan2/generator_discriminator.py", line 12, in <module>
    from .modules import (ConstantInput, ConvDownLayer, EqualLinearActModule,
  File "./mmedit/models/components/stylegan2/modules.py", line 13, in <module>
    from mmcv.ops.fused_bias_leakyrelu import (FusedBiasLeakyReLU,
  File "/usr/local/lib/python3.7/dist-packages/mmcv/ops/__init__.py", line 2, in <module>
    from .active_rotated_filter import active_rotated_filter
  File "/usr/local/lib/python3.7/dist-packages/mmcv/ops/active_rotated_filter.py", line 10, in <module>
    ['active_rotated_filter_forward', 'active_rotated_filter_backward'])
  File "/usr/local/lib/python3.7/dist-packages/mmcv/utils/ext_loader.py", line 13, in load_ext
    ext = importlib.import_module('mmcv.' + name)
  File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
ImportError: /usr/local/lib/python3.7/dist-packages/mmcv/_ext.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZNK3c1010TensorImpl36is_contiguous_nondefault_policy_implENS_12MemoryFormatE

how to fix this

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

1 participant