braun-steven / DAFNe

Code for our paper "DAFNe: A One-Stage Anchor-Free Deep Model for Oriented Object Detection".
MIT License
61 stars 12 forks source link

Environment #9

Closed aikeet2927 closed 2 years ago

aikeet2927 commented 2 years ago

Whats the python version you are using?

braun-steven commented 2 years ago

The Dockerfile image uses Python 3.8 (see also: https://catalog.ngc.nvidia.com/orgs/nvidia/containers/pytorch).

aikeet2927 commented 2 years ago

I am not using docker, i am creating a conda environment. While installing, i am getting error with dafne installation. Screenshot from 2022-09-23 15-28-11

Is there anyspecific way to work upon without using docker

braun-steven commented 2 years ago

Yes, you don't need docker -- it was just a pointer to which Python version the Docker image is using :-)

If you share the full output of the command I can have a look at what is going wrong. Feel free to paste it here: https://pastebin.com and share the link.

aikeet2927 commented 2 years ago

You can see it here. https://pastebin.com/83kbRhGx

braun-steven commented 2 years ago
(base) ai21mtech13009@dgx1-2:~/DAFNe$ pip install dafne

This project, DAFNe, is not a package on pypi, i.e., you cannot install it with pip.

You are installing https://pypi.org/project/dafne, which is not related to this project.

You basically need to follow the same steps as outlined in the Dockerfile.

pip install tensorboard==1.15.0
pip install 'git+https://github.com/facebookresearch/fvcore'
git clone -b v0.5 https://github.com/facebookresearch/detectron2 detectron2_repo
pip install -e detectron2_repo
git clone https://github.com/CAPTAIN-WHU/DOTA_devkit && \
    cd DOTA_devkit && \
    git checkout 99388551054be9a6dabb01c8bb2a7eb562d57b4f && \
    swig -c++ -python polyiou.i && \
    python setup.py install && \
    cd poly_nms_gpu && \
    python setup.py install
pip install -r requirements.txt
pip install pdbpp ipython
aikeet2927 commented 2 years ago

I think since the folder dafne is not inside tools folder, thats why the "module not found " came. By coincide, theres a python package dafne also

braun-steven commented 2 years ago

No, the project just isn't "pip-installable" as it is right now (haven't written a proper setup.py). If you don't use docker, you need to install it as described above.

aikeet2927 commented 2 years ago

I am saying that if I put dafne folder inside the tools folder, then the code has started executing. Thanks