GithubHelp home page GithubHelp logo

Comments (8)

lucasjinreal avatar lucasjinreal commented on June 4, 2024 1

@fabrizioschiano @Bavesh-B Be note don't messy with python or python3 which might be your virtual env or your system python.
So please check if it is the right interporator you want build with.

from dcnv2_latest.

lucasjinreal avatar lucasjinreal commented on June 4, 2024 1

@fabrizioschiano If you install to your system path, using sudo, if you using anaconda, then you needn't to do that.

from dcnv2_latest.

fabrizioschiano avatar fabrizioschiano commented on June 4, 2024

I have the same problem. It is quite strange since if I run instead the repository https://github.com/lbin/DCNv2.git I don't have any problems doing the ./make.sh

I am using a virtualenvironment and if the environment is active and I do:

python -c "import torch; print(torch.__version__)"

I get (indeed)

1.9.1+cu102

@Bavesh-B , did you figure out how to solve this problem?

from dcnv2_latest.

fabrizioschiano avatar fabrizioschiano commented on June 4, 2024

I probably found a solution to the problem by looking into the make.sh file.

The make.sh of this repository looks like this:

#!/usr/bin/env bash
sudo rm *.so
sudo rm -r build/
sudo python3 setup.py build develop

while the make.sh of the other repo looks like this

#!/usr/bin/env bash
python setup.py build develop

What I just did is to remove the sudo from the make.sh file.

I think that this must be related to the fact that in the DCNv2_latest repo they assume you don't use a virtualenvironment maybe.

I hope this helps someone in the same situation. Let me know also if I did something wrong.

(also, I don't like doing sudo python3 ... to be honest)

from dcnv2_latest.

Bavesh-B avatar Bavesh-B commented on June 4, 2024

Hey @fabrizioschiano ,
For me the problem was sudo because when I installed pytorch, I did not use sudo on the command. So in that case, there are 2 solutions. Either remove the sudo in the shell file and run or install pytorch again with sudo. Also, I have a question. Is the dcn_v2.git repository compatible for pytorch 1.9.1?

from dcnv2_latest.

fabrizioschiano avatar fabrizioschiano commented on June 4, 2024

Yes, exactly, the problem was the sudo for me too. I don't know if it is compatible, that's a good question actually!

What I assumed is that it is since before ending on this repository I was using the following:
https://github.com/lbin/DCNv2.git

This repository has a branch dedicated to pytorch_1.9

@Bavesh-B , are you also using a virtualenvironment or conda or similar?

from dcnv2_latest.

Bavesh-B avatar Bavesh-B commented on June 4, 2024

No I am not using any environment. I am just using a virtual instance.

from dcnv2_latest.

fabrizioschiano avatar fabrizioschiano commented on June 4, 2024

@jinfagang , thanks for your comment. is there a particular reason why you needed a sudo in the make.sh file?

from dcnv2_latest.

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.