You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered quite a lot problem with opengm, so I come back here..
1.run python setup.py build_ext --inplace
1.You will got some errors, change the setup.py file: delete the QPBOinstall.
3.Go to the QPBO-v1.3.src and find the instance.ini, change it to:
which moves the instantiation to the bottom.
4.run python setup.py build_ext --inplace again.
And now you can use it normally I think. Copy the pyqpbo dir to your own project and then you'll be able to: from pyqpbo import binary_grid, alpha_expansion_grid, binary_graph
The text was updated successfully, but these errors were encountered:
Hi, can you be a little more clear with what you mean when you say: delete the QPBOInstall in setup.py. I've been having this issue and this guide is very helpful!
class QPBOInstall(build_ext):
def run(self):
# locate urlretrieve: with Python3, this has been moved to urllib.request
import urllib
if hasattr(urllib, "urlretrieve"):
urlretrieve = urllib.urlretrieve
else:
import urllib.request
urlretrieve = urllib.request.urlretrieve
# fetch and unpack the archive. Not the nicest way...
urlretrieve("http://pub.ist.ac.at/~vnk/software/QPBO-v1.3.src.tar.gz",
"QPBO-v1.3.src.tar.gz")
tfile = tarfile.open("QPBO-v1.3.src.tar.gz", 'r:gz')
tfile.extractall('.')
build_ext.run(self)
Since you have changed the file in QPBO, while if you run setup.py these lines will download QPBO again, which will make your changing useless.
Steps 1-3 worked well on Mac OS Big Sur, but running pip install . --use-feature=2020-resolver made it so I didn't have to copy the pyqpbo dir to my project.
I encountered quite a lot problem with opengm, so I come back here..
1.run
python setup.py build_ext --inplace
1.You will got some errors, change the setup.py file: delete the QPBOinstall.
3.Go to the QPBO-v1.3.src and find the instance.ini, change it to:
which moves the instantiation to the bottom.
4.run
python setup.py build_ext --inplace
again.And now you can use it normally I think. Copy the pyqpbo dir to your own project and then you'll be able to:
from pyqpbo import binary_grid, alpha_expansion_grid, binary_graph
The text was updated successfully, but these errors were encountered: