Crashes on non-GPU machines, or if config.pytorch.gpu == -1
Python 3.6.13 with the same packages as in the EPro-PnP-6PoF README.md
I tried to run this on a mac to try to step through the code with a visual IDE/debugger, like PyCharm. It crashes pretty early. Same if config.pytorch.gpu is -1 on GPU hardware. I had to make a few modifications to get it to work. While I was in there I also added a --forceCPU argument to force it to run on CPU when on GPU hardware without messing with the config files. Its something I like to add to all my projects. I tried making a PR, but GitHub won't let me. Here is the diff (file also attached):
Crashes on non-GPU machines, or if config.pytorch.gpu == -1
Python 3.6.13 with the same packages as in the EPro-PnP-6PoF README.md
I tried to run this on a mac to try to step through the code with a visual IDE/debugger, like PyCharm. It crashes pretty early. Same if config.pytorch.gpu is -1 on GPU hardware. I had to make a few modifications to get it to work. While I was in there I also added a --forceCPU argument to force it to run on CPU when on GPU hardware without messing with the config files. Its something I like to add to all my projects. I tried making a PR, but GitHub won't let me. Here is the diff (file also attached):
diff.txt