Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix s3prl upstream attribute bug#5003

Merged
sw005320 merged 3 commits intoespnet:masterfrom
jwrh:master
Mar 14, 2023
Merged

fix s3prl upstream attribute bug#5003
sw005320 merged 3 commits intoespnet:masterfrom
jwrh:master

Conversation

@jwrh
Copy link
Contributor

@jwrh jwrh commented Mar 13, 2023

fix s3prl upstream attribute bug: variable upstream of the class S3PRLUpstream does not have an model attribute and thus the if statement that is responsible for setting encoder.layerdrop = 0 never gets evaluated to True. Quick Fix includes using the upstream attribute of upstream to correctly get attribute values.

jwrh added 2 commits March 13, 2023 13:09
fix upstream attribute bug that interferes with layerdrop on Wav2vec2 and Hubert.  `upstream` has an attribute ` upstream` that acctually contains the `model` attribute
@mergify mergify bot added the ESPnet2 label Mar 13, 2023
@sw005320 sw005320 added Bugfix SSL self-supervised learning labels Mar 13, 2023
@sw005320 sw005320 added this to the v.202303 milestone Mar 13, 2023
@codecov
Copy link

codecov bot commented Mar 13, 2023

Codecov Report

Merging #5003 (832b361) into master (611a291) will increase coverage by 0.02%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master    #5003      +/-   ##
==========================================
+ Coverage   76.98%   77.00%   +0.02%     
==========================================
  Files         606      606              
  Lines       53748    53748              
==========================================
+ Hits        41377    41388      +11     
+ Misses      12371    12360      -11     
Flag Coverage Δ
test_integration_espnet1 66.29% <ø> (+0.14%) ⬆️
test_integration_espnet2 47.76% <0.00%> (+0.16%) ⬆️
test_python 66.84% <0.00%> (ø)
test_utils 23.28% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
espnet2/asr/frontend/s3prl.py 78.46% <0.00%> (ø)

... and 5 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Collaborator

@simpleoier simpleoier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fix looks good to me. The model name is at one level deeper.
Thanks!

@sw005320 sw005320 merged commit 510b75e into espnet:master Mar 14, 2023
@sw005320
Copy link
Contributor

Thanks for your quick action!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bugfix ESPnet2 SSL self-supervised learning

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants