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

pytorch>1.0 安装错误 #46

Open
zhiweiguo opened this issue Jun 16, 2020 · 6 comments
Open

pytorch>1.0 安装错误 #46

zhiweiguo opened this issue Jun 16, 2020 · 6 comments

Comments

@zhiweiguo
Copy link

zhiweiguo commented Jun 16, 2020

针对这句话:Or to use Pytorch 1.0, just replace 'libs' with 'modules' in https://github.com/mapillary/inplace_abn, and rename it to 'libs'.

请问这句话应该如何理解?
我已经安装好pytorch,然后把https://github.com/mapillary/inplace_abn这个repo按照install的步骤安装好以后整个repo重命名为libs还是将scripts/moduels重命名为libs呢?
我尝试了上述两种方法之外,仍然不行,请教一下如何操作,感谢!

@thinwayliu
Copy link

针对这句话:Or to use Pytorch 1.0, just replace 'libs' with 'modules' in https://github.com/mapillary/inplace_abn, and rename it to 'libs'.

请问这句话应该如何理解?
我已经安装好pytorch,然后把https://github.com/mapillary/inplace_abn这个repo按照install的步骤安装好以后整个repo重命名为libs还是将scripts/moduels重命名为libs呢?
我尝试了上述两种方法之外,仍然不行,请教一下如何操作,感谢!

请问您解决了吗?我也不知道概怎么办

@zhiweiguo
Copy link
Author

针对这句话:Or to use Pytorch 1.0, just replace 'libs' with 'modules' in https://github.com/mapillary/inplace_abn, and rename it to 'libs'.
请问这句话应该如何理解?
我已经安装好pytorch,然后把https://github.com/mapillary/inplace_abn这个repo按照install的步骤安装好以后整个repo重命名为libs还是将scripts/moduels重命名为libs呢?
我尝试了上述两种方法之外,仍然不行,请教一下如何操作,感谢!

请问您解决了吗?我也不知道概怎么办

自己各种尝试后解决了。

  1. sudo apt-get install git # 安装git
  2. git clone https://github.com/mapillary/inplace_abn.git # 得到abn的repo
  3. cd inplace_abn # 进入该repo的根目录
  4. python setup.py install # 运行前修改setup.py,把setuptools.setup中的url,以及use_scm_version和setup_requires都屏蔽掉,就不依赖于git了
  5. 将build/lib.linux-x86_64-3.6/inplace_abn/_backend.cpython-36m-x86_64-linux-gnu.so放入hparsing/3rd/libs/中 # 该文件和系统环境有关

@thinwayliu
Copy link

针对这句话:Or to use Pytorch 1.0, just replace 'libs' with 'modules' in https://github.com/mapillary/inplace_abn, and rename it to 'libs'.
请问这句话应该如何理解?
我已经安装好pytorch,然后把https://github.com/mapillary/inplace_abn这个repo按照install的步骤安装好以后整个repo重命名为libs还是将scripts/moduels重命名为libs呢?
我尝试了上述两种方法之外,仍然不行,请教一下如何操作,感谢!

请问您解决了吗?我也不知道概怎么办

自己各种尝试后解决了。

  1. sudo apt-get install git # 安装git
  2. git clone https://github.com/mapillary/inplace_abn.git # 得到abn的repo
  3. cd inplace_abn # 进入该repo的根目录
  4. python setup.py install # 运行前修改setup.py,把setuptools.setup中的url,以及use_scm_version和setup_requires都屏蔽掉,就不依赖于git了
  5. 将build/lib.linux-x86_64-3.6/inplace_abn/_backend.cpython-36m-x86_64-linux-gnu.so放入hparsing/3rd/libs/中 # 该文件和系统环境有关

非常感谢,我按着一步步操作但是我在最后一步失败了,因为无法找到build/lib.linux-x86_64-3.6/inplace_abn/_backend.cpython-36m-x86_64-linux-gnu.so这个文件

@zhiweiguo
Copy link
Author

针对这句话:Or to use Pytorch 1.0, just replace 'libs' with 'modules' in https://github.com/mapillary/inplace_abn, and rename it to 'libs'.
请问这句话应该如何理解?
我已经安装好pytorch,然后把https://github.com/mapillary/inplace_abn这个repo按照install的步骤安装好以后整个repo重命名为libs还是将scripts/moduels重命名为libs呢?
我尝试了上述两种方法之外,仍然不行,请教一下如何操作,感谢!

请问您解决了吗?我也不知道概怎么办

自己各种尝试后解决了。

  1. sudo apt-get install git # 安装git
  2. git clone https://github.com/mapillary/inplace_abn.git # 得到abn的repo
  3. cd inplace_abn # 进入该repo的根目录
  4. python setup.py install # 运行前修改setup.py,把setuptools.setup中的url,以及use_scm_version和setup_requires都屏蔽掉,就不依赖于git了
  5. 将build/lib.linux-x86_64-3.6/inplace_abn/_backend.cpython-36m-x86_64-linux-gnu.so放入hparsing/3rd/libs/中 # 该文件和系统环境有关

非常感谢,我按着一步步操作但是我在最后一步失败了,因为无法找到build/lib.linux-x86_64-3.6/inplace_abn/_backend.cpython-36m-x86_64-linux-gnu.so这个文件

build/lib.linux-x86_64-3.6/inplace_abn/_backend.cpython-36m-x86_64-linux-gnu.so是在inplace_abn这个repo中的,这个和你实际的环境有关,可能名称会不完全一致,拷贝到的位置就是CE2P的libs/中, 我那个路径是我个人的目录;

@thinwayliu
Copy link

针对这句话:Or to use Pytorch 1.0, just replace 'libs' with 'modules' in https://github.com/mapillary/inplace_abn, and rename it to 'libs'.
请问这句话应该如何理解?
我已经安装好pytorch,然后把https://github.com/mapillary/inplace_abn这个repo按照install的步骤安装好以后整个repo重命名为libs还是将scripts/moduels重命名为libs呢?
我尝试了上述两种方法之外,仍然不行,请教一下如何操作,感谢!

请问您解决了吗?我也不知道概怎么办

自己各种尝试后解决了。

  1. sudo apt-get install git # 安装git
  2. git clone https://github.com/mapillary/inplace_abn.git # 得到abn的repo
  3. cd inplace_abn # 进入该repo的根目录
  4. python setup.py install # 运行前修改setup.py,把setuptools.setup中的url,以及use_scm_version和setup_requires都屏蔽掉,就不依赖于git了
  5. 将build/lib.linux-x86_64-3.6/inplace_abn/_backend.cpython-36m-x86_64-linux-gnu.so放入hparsing/3rd/libs/中 # 该文件和系统环境有关

非常感谢,我按着一步步操作但是我在最后一步失败了,因为无法找到build/lib.linux-x86_64-3.6/inplace_abn/_backend.cpython-36m-x86_64-linux-gnu.so这个文件

build/lib.linux-x86_64-3.6/inplace_abn/_backend.cpython-36m-x86_64-linux-gnu.so是在inplace_abn这个repo中的,这个和你实际的环境有关,可能名称会不完全一致,拷贝到的位置就是CE2P的libs/中, 我那个路径是我个人的目录;

我上面这些步骤都做完了,请问我还需要执行sh build.sh python build.py操作吗?执行之后还会报错torch.utils.ffi is deprecated. Please use cpp extensions instead,不执行这条命令直接run 好像也不成功。再次十分感谢回复!

@wertjy
Copy link

wertjy commented Nov 12, 2021

请问您的问题解决了吗,具体怎么解决的呢,是否在执行完这些步骤后出现ValueError: Unknown activation function none这个错误,期待您的回复,感谢

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