-
Notifications
You must be signed in to change notification settings - Fork 22
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
Can not read weights.pb files #8
Comments
@so-much-meta can you advise here? Very eager to continue progress on this project, but this seems to be a hard blocker. Happy to help update any code if you can point us in the right direction. Thanks! |
Sorry, it’s been a while since I’ve looked at this project. I’ll take a
look this evening and respond, and if I can get some time soon will try to
make some updates (eg, I know a big need is support for se-resnets).
…On Tue, Apr 23, 2019 at 9:00 PM Advait Shinde ***@***.***> wrote:
@so-much-meta <https://github.com/so-much-meta> can you advise here? Very
eager to continue progress on this project, but this seems to be a hard
blocker. Happy to help update any code if you can point us in the right
direction. Thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#8 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AJGXKCLI23ISADXWYVME6C3PR6WLDANCNFSM4G3EXCJA>
.
|
@so-much-meta could you provide some help with how to work with the .pb files which are currently available in LC0 page ? I tried renaming that to .txt but then it throws a size mismatch error - line 153, in from_weights_file |
You can convert the pb.gz to a txt.gz file using the save_txt function of the net class but this won't fix the issue because the nets on the website are a newer version and aren't compatible. You can try to make it compatible but I found it easier to do this: Download the model and config yaml files from here : https://www.comp.nus.edu.sg/~sergio-v/new/128x10-t60-2/ Load the model using the tfprocess module ` class KerasNet:
` |
@ZararB Thanks, this was very helpful! Do you happen to have a solution to read current training data? Using
|
@lzanini Sorry, I am only using the network for evaluation and haven't looked into training |
@ZararB thank you for your answer. Did you manage to get correct evaluations using I get the network to run, but output values are surprising to say the least, and very different from the ones I get with the engine limited to |
@lzanini yeah the code I wrote before was a bit misleading. The policy network output needs to be run through the softmax function to get probabilities. Here is the full thing: ` class KerasNet:
` I copied most of this from the lcztools code and just modified it a little so it worked with mine |
@ZararB Where does the term The usual definition (and the one defined in tensorflow) is simply
Since the training script uses the standard |
@lzanini Both definitions are equivalent. The max is usually subtracted from all the logits so that we can work with smaller numbers and to prevent NaN issues. You can use either one |
You're right! Thanks again 👍 |
Hi, I try to use the downloaded weights file (I got using download_latest_network.py).
It is not .txt.gz but .pb.gz and read_weights_file does not seem to be okay with that.
The text was updated successfully, but these errors were encountered: