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

关于Libtorch版本的问题 Issues about Libtorch version #5

Open
Gatsby23 opened this issue Jun 3, 2023 · 7 comments
Open

关于Libtorch版本的问题 Issues about Libtorch version #5

Gatsby23 opened this issue Jun 3, 2023 · 7 comments

Comments

@Gatsby23
Copy link

Gatsby23 commented Jun 3, 2023

您好,我依据Dockfile下载了libtorch,但编译的时候遇上了C++版本不统一的问题。libtorch里用的是17,而我们项目里用的是14,我直接docker编译,在pc上编译不过,想问下您用的torch版本是多少,具体是怎么解决的

Hello, I downloaded libtorch based on the Dockfile, but encountered a problem of inconsistent C++ versions during compilation. The libtorch version is compiled with C++17, while our project uses C++14. I tried to compile it directly with Docker, but it failed on my PC. I would like to ask what version of Torch you are using and how you specifically resolved this issue.

@Peize-Liu
Copy link
Contributor

Peize-Liu commented Jun 4, 2023

您好,我依据Dockfile下载了libtorch,但编译的时候遇上了C++版本不统一的问题。libtorch里用的是17,而我们项目里用的是14,我直接docker编译,在pc上编译不过,想问下您用的torch版本是多少,具体是怎么解决的

@Gatsby23 ,你好,请问是否方便将仓库切入fix_dockerfile 分支再编译试试呢,我们最近进行了一些修复,目前还在进行多平台测试
Hello, may I ask if it's convenient for you to switch to the "fix_dockerfile" branch of the repository and try to compile again? We have recently made some fixes and are currently conducting multi-platform testing.

@Gatsby23
Copy link
Author

Gatsby23 commented Jun 4, 2023

您好,我依据Dockfile下载了libtorch,但编译的时候遇上了C++版本不统一的问题。libtorch里用的是17,而我们项目里用的是14,我直接docker编译,在pc上编译不过,想问下您用的torch版本是多少,具体是怎么解决的

@Gatsby23 ,你好,请问是否方便将仓库切入fix_dockerfile 分支再编译试试呢,我们最近进行了一些修复,目前还在进行多平台测试

好的,我这边的平台是ubuntu20.04,不知道可以吗?我这边尝试了多个版本。现在来看wget https://download.pytorch.org/libtorch/cu113/libtorch-shared-with-deps-1.10.1%2Bcu113.zip可以使用,但是OpenCV不行,按DockerFile里的描述在编译的时候会遇到OpenCV三方Module缺少的问题.

@Peize-Liu
Copy link
Contributor

Peize-Liu commented Jun 4, 2023

@Gatsby23 你好,支持20.04,编译时间比较久,建议选择良好的网络环境编译
Ubuntu 20.04 is supported, but the compilation time is relatively long. We recommend compiling with a good network environment.

@Gatsby23
Copy link
Author

Gatsby23 commented Jun 5, 2023

@Gatsby23 你好,支持20.04,编译时间比较久,建议选择良好的网络环境编译

您好,实例测试数据集麻烦能放到百度网盘吗?126G实在太大了,国内Dropbox实在下不下来。

@Peize-Liu
Copy link
Contributor

@Gatsby23
这周工作日结束之前会放过去,下载链接会更新到Readme种,届时我会发邮件提醒。

@Peize-Liu Peize-Liu changed the title 关于Libtorch版本的问题 关于Libtorch版本的问题 Issues about Libtorch version Jun 5, 2023
@xuhao1
Copy link
Collaborator

xuhao1 commented Aug 5, 2023

@Gatsby23 libtorch do not need CPU support. We are on 1.13.0.dev20220917+cpu.
I have update the docker file.

@Nick-0814
Copy link

您好,我依据Dockfile下载了libtorch,但编译的时候遇上了C++版本不统一的问题。libtorch里用的是17,而我们项目里用的是14,我直接docker编译,在pc上编译不过,想问下您用的torch版本是多少,具体是怎么解决的

@Gatsby23 ,你好,请问是否方便将仓库切入fix_dockerfile 分支再编译试试呢,我们最近进行了一些修复,目前还在进行多平台测试

好的,我这边的平台是ubuntu20.04,不知道可以吗?我这边尝试了多个版本。现在来看wget https://download.pytorch.org/libtorch/cu113/libtorch-shared-with-deps-1.10.1%2Bcu113.zip可以使用,但是OpenCV不行,按DockerFile里的描述在编译的时候会遇到OpenCV三方Module缺少的问题.

您好,我在使用docker进行本地pc安装时,按照dockerfile直接安装的,但是opencv部分一直编译不过,提示如下错误,之前不用docker安装opencv时没遇到过这种错误,想问您有什么好的建议吗?

problem_docker

problem_docker1 png

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

4 participants