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

Import error during training #34

Open
albusdemens opened this issue Feb 11, 2020 · 2 comments
Open

Import error during training #34

albusdemens opened this issue Feb 11, 2020 · 2 comments

Comments

@albusdemens
Copy link

Hi, when I train the model as recommended in the README (python train.py --name pose --dataset_mode fewshot_pose --adaptive_spade --warp_ref --spade_combine --remove_face_labels --add_face_D --niter_single 100 --niter 200 --batchSize 2), I get the error import resample2d_cuda due to an undefined symbol (full output below). Does anyone have tips on how to fix that? I followed the recommended steps to compile a snapshot of FlowNet2.

File "train.py", line 34, in train
    model, flowNet = create_model(opt, trainer.start_epoch)
  File "/home/alberto/Documents/few-shot-vid2vid/models/models.py", line 27, in create_model
    flowNet.initialize(opt)
  File "/home/alberto/Documents/few-shot-vid2vid/models/flownet.py", line 23, in initialize
    from .networks.flownet2_pytorch import models as flownet2_models
  File "/home/alberto/Documents/few-shot-vid2vid/models/networks/flownet2_pytorch/models.py", line 8, in <module>
    from .networks.resample2d_package.resample2d import Resample2d
  File "/home/alberto/Documents/few-shot-vid2vid/models/networks/flownet2_pytorch/networks/resample2d_package/resample2d.py", line 3, in <module>
    import resample2d_cuda
ImportError: /home/alberto/.local/lib/python3.6/site-packages/resample2d_cuda-0.0.0-py3.6-linux-x86_64.egg/resample2d_cuda.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN3c105ErrorC1ENS_14SourceLocationERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE

@thefattestcat
Copy link

I have this issue as well. Have you tried this?
NVIDIA/vid2vid#30 (comment)

@albusdemens
Copy link
Author

albusdemens commented Feb 14, 2020

Hi, I tried following the commands in the link but they don't fix the issue. In detail, python3 setup.py build gives the errors reported here (error: command '/usr/bin/nvcc' failed with exit status 1).

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