MubarizZaffar / CoHOG_Results_RAL2019

This repository contains the results for our publication titled "CoHOG: A Real-time, Light-weight and Training-free Visual Place Recognition Technique for Loop-closure in Changing Environments"
12 stars 0 forks source link

the path Hog_feature.Hog_feature.hog #2

Open zyh778 opened 1 month ago

zyh778 commented 1 month ago

"Hello, I have recently read your paper 'CoHOG: A Light-Weight, Compute-Efficient, and Training-Free Visual Place Recognition Technique for Changing Environments' and am very interested in it. I would like to run the open-source code you provided on GitHub. However, in the main.py file, I found these two lines of code for importing packages:

from Hog_feature.Hog_feature.hog import initialize from Hog_feature.Hog_feature.hog import extract

I am unable to locate the files at the path Hog_feature.Hog_feature.hog. Could you please advise how to resolve this issue?"

MubarizZaffar commented 1 month ago

Hey, thanks for your interest. Yes, it's already in the repo. See here.

zyh778 commented 1 month ago

I found these files in this zip, where hog is a .so file, do I need to import this so file first before I import the package? image image

MubarizZaffar commented 1 month ago

No, just extract the Zip folder in the directory. The paths will work as is, you don't need to change anything, just need to extract the Zip folder.

A .so is a Python library file, you can import it like a typical Python module.

zyh778 commented 1 month ago

image image But I get the above problem when importing, it also shows that my python version is inconsistent, which version of python is compatible please!

MubarizZaffar commented 1 month ago

Looks like a Cython compilation error. Perhaps you are running the Python 2 version with Python 3? There is also a separate Python3 compiled version available.

Even if you don't want to use the Cython compiled libraries, the source code is also available for the library in this repo.

zyh778 commented 1 month ago

Thank you very much for your reply again. At first I did use python3.10 to run python2, but I immediately found the problem and used python3.10 to run python3, but the problem still occurs.