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

"undefined symbol: _ZN3c105ErrorC1ENS_14SourceLocationERKSs #47

Closed
wang99711123 opened this issue Feb 23, 2020 · 3 comments
Closed

"undefined symbol: _ZN3c105ErrorC1ENS_14SourceLocationERKSs #47

wang99711123 opened this issue Feb 23, 2020 · 3 comments

Comments

@wang99711123
Copy link

Hi.Thanks for the wonderful work!

I copied the virtual environment using “environment.yaml”which is provided.
And I execute build.sh successfully.

Now facing below the issue:
undefined symbol: _ZN3c105ErrorC1ENS_14SourceLocationERKSs

Any suggestion?

@laomao0
Copy link

laomao0 commented Feb 29, 2020

This may be your CUDA version is not compilable with your PyTorch version.
Check your cuda version by:
$ python
$ import torch
$ print('torch.version.cuda')

then check your installed pytorch version supports the cuda or not?
If not, re-install the pytorch, then re-compile the cuda codes in my_packages.

@wang99711123
Copy link
Author

This may be your CUDA version is not compilable with your PyTorch version.
Check your cuda version by:
$ python
$ import torch
$ print('torch.version.cuda')

then check your installed pytorch version supports the cuda or not?
If not, re-install the pytorch, then re-compile the cuda codes in my_packages.

Got it!Thank you for help!
And I am trying to reproduce your experimental results with the guide of Readme.
CUDA_VISIBLE_DEVICES=0 python train.py --datasetPath /path/to/your/dataset --batch_size 1 --save_which 1 --lr 0.0005 --rectify_lr 0.0005 --flow_lr_coe 0.01 --occ_lr_coe 0.0 --filter_lr_coe 1.0 --ctx_lr_coe 1.0 --alpha 0.0 1.0 --patience 4 --factor 0.2
But the IE and PSNR of the model I trained are not as good as the pre-trained model.
Do I need to resize the batch?
Thank you for your reading!

@laomao0
Copy link

laomao0 commented Mar 14, 2020

This may be your CUDA version is not compilable with your PyTorch version.
Check your cuda version by:
$ python
$ import torch
$ print('torch.version.cuda')
then check your installed pytorch version supports the cuda or not?
If not, re-install the pytorch, then re-compile the cuda codes in my_packages.

Got it!Thank you for help!
And I am trying to reproduce your experimental results with the guide of Readme.
CUDA_VISIBLE_DEVICES=0 python train.py --datasetPath /path/to/your/dataset --batch_size 1 --save_which 1 --lr 0.0005 --rectify_lr 0.0005 --flow_lr_coe 0.01 --occ_lr_coe 0.0 --filter_lr_coe 1.0 --ctx_lr_coe 1.0 --alpha 0.0 1.0 --patience 4 --factor 0.2
But the IE and PSNR of the model I trained are not as good as the pre-trained model.
Do I need to resize the batch?
Thank you for your reading!

maybe you should pre-load the pre-trained model, then setting a small learning rate to train the model on your own datasets.

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

3 participants