lilanxiao / Rotated_IoU

Differentiable IoU of rotated bounding boxes using Pytorch
MIT License
415 stars 64 forks source link

Not able to run Rotated_IoU in Spyder but works in Anaconda Prompt #26

Closed dominikj2 closed 3 years ago

dominikj2 commented 3 years ago

Hi,

I managed to run Rotated_IoU in the Anaconda Prompt by first running setup.py and then running demo.py.

I am not experienced with CUDAExtensions but when I try to run in spyder, i get the following error with setup.py:

DistutilsArgError: no commands supplied

During handling of the above exception, another exception occurred:

SystemExit: usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: no commands supplied

What are the required commands?

I am an R user that is trying to translate Rotated_IoU code into R. Can you explain why I can not get it to run in spyder?

lilanxiao commented 3 years ago

Hi, I'm not familiar with Spyder since I use VS Code. Here is my guess. Did you use this in Spyder? %run ./setup.py The proper command should be %run ./setup.py install

dominikj2 commented 3 years ago

Fantastic. That worked. Thank you