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

dest_evaluate can't work with dest.bin #15

Closed
qianyunw opened this issue Mar 10, 2018 · 5 comments
Closed

dest_evaluate can't work with dest.bin #15

qianyunw opened this issue Mar 10, 2018 · 5 comments

Comments

@qianyunw
Copy link

I tried different max depths with "dest_train --load-mirrored --load-max-size 640 --rectangles helen\trainset100\rectangles.csv --create-num-shapes 60 --train-num-pixels 600 --train-num-splits 40 --train-max-depth X --train-learn 0.15 helen\trainset100"

but when train-max-depth > 6, dest_evaluate can't work, and it said "Failed to load tracker."

It has bothered me for three days, thank you so much!

@cheind
Copy link
Owner

cheind commented Mar 10, 2018

If it can't load the tracker it seems to be that the tracker hasn't been written to disk. Could you verify if training gives you any error or does not write the tracking file?

@qianyunw
Copy link
Author

Thank you so much!
I found it is because vertifier._max_tables in dest_evaluate is smaller than that in dest.bin. When I set _max_tables to a bigger number, It works! Thank you!

@cheind
Copy link
Owner

cheind commented Mar 12, 2018 via email

@qianyunw
Copy link
Author

Sure. In tracker.cpp I changed from:
"flatbuffers::Verifier v(reinterpret_cast<const uint8_t*>(buf.data()), buf.size());"
to
"flatbuffers::Verifier v(reinterpret_cast<const uint8_t*>(buf.data()), buf.size(), 64, 900000000000);"

@cheind
Copy link
Owner

cheind commented Mar 12, 2018

Thanks, I will consider changing the code, or, at least keep this in the back of my mind.

@cheind cheind closed this as completed Mar 12, 2018
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

2 participants