-
Notifications
You must be signed in to change notification settings - Fork 509
[Fix] Tensorflow MASTER implementation #949
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
Conversation
Codecov Report
@@ Coverage Diff @@
## main #949 +/- ##
==========================================
+ Coverage 94.89% 95.16% +0.26%
==========================================
Files 134 134
Lines 5542 5520 -22
==========================================
- Hits 5259 5253 -6
+ Misses 283 267 -16
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@frgfm If you should get to it before me, please take a look at the decoding and code improvements in advance would also be quite good 👍 |
MJSynth 500K train 100K val FUNSD: But decoding while inference is still broken : complete pipe:
@frgfm @charlesmindee i don't see what i missed, so i think a second pair of eyes would be quite good 👀 I would recommend that one of you two takes this stand and validates it again, because there is a clear difference to the toy benchmark on the pyTorch side implementation which works fine 😅 |
d00adc6
to
74318ff
Compare
@frgfm this PR would be very happy to get your help 🤣 |
5e4299a
to
86433e4
Compare
Again 500K MJSynth toy run: Inference: Line( |
86433e4
to
2d7a01c
Compare
) | ||
pe = pe.numpy() | ||
pe[:, 0::2] = tf.math.sin(position * div_term) | ||
pe[:, 1::2] = tf.math.cos(position * div_term) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@frgfm Any idea how to do this in TF and remove the numpy cast? 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @felixdittrich92, I know this but I think it is still a bit experimental
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, LGTM!
) | ||
pe = pe.numpy() | ||
pe[:, 0::2] = tf.math.sin(position * div_term) | ||
pe[:, 1::2] = tf.math.cos(position * div_term) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @felixdittrich92, I know this but I think it is still a bit experimental
2d7a01c
to
b77e6b6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! LGTM
This PR:
Any feedback is welcome 🤗
@charlesmindee @frgfm feel free to take a first look some improvements are very welcome :D
Todo:
Issue:
Cannot train pytorch sar_resnet31 and master recognition model #802