StructuredForests
StructuredForests copied to clipboard
Using the library externally is very difficult
I've been trying to use the model with my own set of images but every time I call the code from an external location, it tries to recompile itself and fails. I can only get it to work from within the directory.
I also tried creating my own StructuredForest from the base class but that also hasn't worked so far for the same reason.
any ideas?
yah I agree, I get Segmentation fault (core dumped)
After running the code at least once from within the directory, you can replace the
build_dir=".pyxbld" with build_dir=os.path.join(os.path.dirname(__file__), ".pyxbld") (in 3 different files) and the default model_dir in class StructuredForests to be os.path.join(os.path.dirname(file), "model").
Now StructuredForests can be imported from external locations and used without re-compilation.
This code is a piece of trash. Waste of time