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

Some problems during installation #10

Closed
speedinghzl opened this issue Nov 3, 2017 · 4 comments
Closed

Some problems during installation #10

speedinghzl opened this issue Nov 3, 2017 · 4 comments

Comments

@speedinghzl
Copy link

Hi @zhanghang1989, thanks for your sharing! When installing the Encoding package, I encounter some problems and solve these problems.

  1. thc_encoding.h: No such file or directory /home/PyTorch-Encoding-Layer-master/encoding/src/encoding_lib.cpp:12:26: fatal error: thc_encoding.h: No such file or directory #8
    the thc_encoding.h is stored in encoding/kernel, so I just add include path in build.py
    os.path.join(this_file,'encoding/src/'), os.path.join(this_file,'encoding/kernel/')]

  2. THCDeviceTensor.cuh: No such file or directory
    git clone https://github.com/zhanghang1989/PyTorch-Encoding & git checkout v0.2.0.
    I switch pytorch branch from master to v0.2, because in master branch, there is no such file.

  3. SyntaxError: invalid syntax in File "/home/hzl/anaconda2/lib/python2.7/site-packages/encoding/parallel.py", line 232
    return (modules[0](*inputs[0], *targets[0], **kwargs_tup[0]), )
    I just remove *before inputs[0]

  4. test fail in test_dilated_avgpool
    $$ I just ignore it.

Finally, I want to use the synchronized BatchNorm, could you please provide some example code to show how to use it?
Thanks again!

@zhanghang1989
Copy link
Owner

Thanks for providing the compiling steps @speedinghzl ! I will make it easier to use the code in future version. Currently, I am working on a conference deadline, so I don't have time to provide an example. But I will definitely release the example code after the conference submission together with arXiv report.

The code is not hard to read, and it has some comments. If you would like it to use it immediately, I will suggest spending some time to go through it.

@zhanghang1989
Copy link
Owner

See the new commit c92a7c2

@IAmUnbounded
Copy link

I face exactly same issues. Cant resolve them even after the commit too. Please provide some fix.

@zhanghang1989
Copy link
Owner

Please use python3. Let me know if you still have the problem. Thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants