StructuredForests icon indicating copy to clipboard operation
StructuredForests copied to clipboard

Using the library externally is very difficult

Open aarslan opened this issue 9 years ago • 3 comments

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?

aarslan avatar Apr 08 '16 15:04 aarslan

yah I agree, I get Segmentation fault (core dumped)

IssamLaradji avatar May 13 '18 00:05 IssamLaradji

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.

dberman-argo avatar Feb 12 '19 18:02 dberman-argo

This code is a piece of trash. Waste of time

ManuBN786 avatar Jul 28 '21 08:07 ManuBN786