./scripts/init.sh
alice-cool opened this issue · 4 comments
alice-cool commented
this code can't run because it has erros as the flowing.
running build_ext
building 'C_ROIPooling' extension
gcc -pthread -B /home/anaconda3/envs/vl-bert/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/tmp/pycharm_project_61/common/lib/roi_pooling -I/home/byd/.local/lib/python3.6/site-packages/torch/lib/include -I/home/byd/.local/lib/python3.6/site-packages/torch/lib/include/TH -I/home/byd/.local/lib/python3.6/site-packages/torch/lib/include/THC -I/usr/local/cuda/include -I/home/anaconda3/envs/vl-bert/include/python3.6m -c /tmp/pycharm_project_61/common/lib/roi_pooling/vision.cpp -o build/temp.linux-x86_64-3.6/tmp/pycharm_project_61/common/lib/roi_pooling/vision.o -DTORCH_EXTENSION_NAME=C_ROIPooling -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /tmp/pycharm_project_61/common/lib/roi_pooling/ROIAlign.h:4:0,
from /tmp/pycharm_project_61/common/lib/roi_pooling/vision.cpp:3:
/tmp/pycharm_project_61/common/lib/roi_pooling/cpu/vision.h:3:29: fatal error: torch/extension.h: 没有那个文件或目录
#include <torch/extension.h>
^
compilation terminated.
error: command 'gcc' failed with exit status 1
If you have ways, please tell me.
jackroos commented
What is the version of your pytorch?
alice-cool commented
pytorch1.1 0 I just follow your code to create new environment vl-bert. But the apex and. /scripts/init. bash code can't run. The other steps go well.
I guess whether the roi component should be compiled in other important procedures that you omitted?
To deal with the problem as the following but it also doen't work.
I install the warpctc pytorch1.0.0 but I don't know if the project needs warpctc-pytorch.
Thanks for your timely reply.
If you have ways, please tell me.
…---Original---
From: "Weijie Su"<notifications@github.com>
Date: Wed, Dec 30, 2020 11:52 AM
To: "jackroos/VL-BERT"<VL-BERT@noreply.github.com>;
Cc: "Author"<author@noreply.github.com>;"Donglearner"<2524981200@qq.com>;
Subject: Re: [jackroos/VL-BERT] ./scripts/init.sh (#69)
What is the version of your pytorch?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
alice-cool commented
Dear scholar, I use pip list ,I found torch 0.4.0. I use conda list, I found pytorch 1.1.0 py3.6_cuda9.0.176_cudnn7.5.1_0 pytorch
alice-cool commented
I upgrade my torch to 1.1.0 consistent with the version of Pytorch. 1.1.0 and it could run a long way.hah