Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using the library externally is very difficult #1

Open
aarslan opened this issue Apr 8, 2016 · 3 comments
Open

Using the library externally is very difficult #1

aarslan opened this issue Apr 8, 2016 · 3 comments

Comments

@aarslan
Copy link

aarslan commented Apr 8, 2016

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?

@IssamLaradji
Copy link

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

@dberman-argo
Copy link

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.

@ManuBN786
Copy link

This code is a piece of trash. Waste of time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants