zhanghang1989 / PyTorch-Encoding

A CV toolkit for my papers.
https://hangzhang.org/PyTorch-Encoding/
MIT License
2.04k stars 450 forks source link

torch/tensor.h no such file or directory #394

Open cannonli7 opened 3 years ago

cannonli7 commented 3 years ago

after I enter "importing encoding" in command line, there is an error "torch/tensor.h no such file or directory", do you know how to fix it

xialang2012 commented 3 years ago

Did you install the Pytorch-Encoding well?

cannonli7 commented 3 years ago

Yes, I suggest installing by command " pip install git+https://github.com/zhanghang1989/PyTorch-Encoding/ ", you may need to try multiple times. Once you succeed, go to anaconda3/envs/.../site-packages/encoding/ , copy some .py files you need from folder Pytorch-Encoding(such as folder "dilated", log.py, lr_scheduler.py from folder "utils")

At 2021-05-25 17:40:41, "xialang2012" @.***> wrote:

Did you install the Pytorch-Encoding well?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.