Giter Site home page Giter Site logo

Comments (15)

lotuser1 avatar lotuser1 commented on September 26, 2024 2

自己回复自己吧 最后把报错那句话里面的fsdet全部改成detectron2 就好了,实际我已经用pip命令安装过detectron2包,具体我也不知道为什么改掉就好了

from fsce.

alphacyp avatar alphacyp commented on September 26, 2024

Maybe the versions of pytorch and fsdet do not match the author's.

from fsce.

zongdaoming avatar zongdaoming commented on September 26, 2024

My environment is set as follows

python -m pip install detectron2==0.2.1 -f
https://dl.fbaipublicfiles.com/detectron2/wheels/cu92/torch1.5/index.html
conda install pytorch==1.5.1 torchvision==0.6.1 cudatoolkit=9.2 -c pytorch

And this setting work! Wish to help you. @a07913838438

from fsce.

Jacobi93 avatar Jacobi93 commented on September 26, 2024

i am faced with the same problem and i could not fix it by changing different versions of packages. is there any other reason why someone may get this problem? Thanks.

from fsce.

ell-hol avatar ell-hol commented on September 26, 2024

@zongdaoming which python version are you using tho ?

from fsce.

lotuser1 avatar lotuser1 commented on September 26, 2024

我现在用的是torch1.5.1 cuda10.1。还是不能导入_c,和楼主一样的问题,但是我ubuntu是20.04版本,下载不了cuda9.2,你用的是哪个版本的ubuntu?

from fsce.

lotuser1 avatar lotuser1 commented on September 26, 2024

我把 from fsdet import _C 改成 from fsdet.config.default import _C,就没有这个错误了,但是在运行train_net时出现了AttributeError: roi_align_forward,定位到 output = _C.roi_align_forward(
input, roi, spatial_scale, output_size[0], output_size[1], sampling_ratio, aligned
)这行代码,_C中没有这个roi-align_forward方法,所以是不是第一个地方就改错了呢?有人解决_C这个问题了?求助

from fsce.

kike-0304 avatar kike-0304 commented on September 26, 2024

自己回复自己吧 最后把报错那句话里面的fsdet全部改成detectron2 就好了,实际我已经用pip命令安装过detectron2包,具体我也不知道为什么改掉就好了

请问您的detector的版本对应的cuda和torch版本是多少,我把fsdet改为detectot2后也会出现no attribute 'roi_align_forward'。

from fsce.

xyqqqfs avatar xyqqqfs commented on September 26, 2024

cuda11.1+torch1.9.0+detetron2 v0.2.1,把所有出错的from fsdet.config.default import _C改成from detectron2.config.default import _C就能跑了

from fsce.

lotuser1 avatar lotuser1 commented on September 26, 2024

自己回复自己吧 最后把报错那句话里面的fsdet全部改成detectron2 就好了,实际我已经用pip命令安装过detectron2包,具体我也不知道为什么改掉就好了

请问您的detector的版本对应的cuda和torch版本是多少,我把fsdet改为detectot2后也会出现no attribute 'roi_align_forward
torch 1.5.0 +cuda 10.1+detectron2 0.2.1

from fsce.

lotuser1 avatar lotuser1 commented on September 26, 2024

请问你怎么装的detectron2 v0.2.1,我换了一台机子环境是cuda11.1+torch1.8,但是我忘了怎么装detectron2的包了,在detectron2的tutorial里看到的v0.2.1 不支持这个环境,不知道该怎么办了

from fsce.

xyqqqfs avatar xyqqqfs commented on September 26, 2024

请问你怎么装的detectron2 v0.2.1,我换了一台机子环境是cuda11.1+torch1.8,但是我忘了怎么装detectron2的包了,在detectron2的tutorial里看到的v0.2.1 不支持这个环境,不知道该怎么办了

https://blog.csdn.net/qq_35030874/article/details/116915874
按这篇博文下的,高版本的detectron2会报别的错

from fsce.

lotuser1 avatar lotuser1 commented on September 26, 2024

这个博客写的是在win下面编译,你也用的win系统吗

from fsce.

xyqqqfs avatar xyqqqfs commented on September 26, 2024

这个博客写的是在win下面编译,你也用的win系统吗

我用的ubuntu20.04,差不多的

from fsce.

lotuser1 avatar lotuser1 commented on September 26, 2024

我也是ubuntu20,在执行sudo python setup.py build develop 编译这一步卡住了,会报nvcc fatal:Unsupported gpu architecture 'compute_86' error:command '/usr/bin/nvcc' failed with exit status 1,你有遇到过吗?我在1080ti都没遇到过 在3070才遇到

from fsce.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.