Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Update ML Decoder#2045

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
fffffgggg54 wants to merge109 commits intohuggingface:main
base:main
Choose a base branch
Loading
fromfffffgggg54:ml-decoder
Draft

Conversation

fffffgggg54
Copy link
Contributor

@fffffgggg54fffffgggg54 commentedNov 27, 2023
edited
Loading

Update ML Decoder'sTransformerDecoderLayerOptimal module to comply with whatnn.TransformerDecoder expects. Current changes work with resnet50.

add_ml_decoder_head needs to be updated for other models. In my limited testing, the following case works with RegNet:

elifhasattr(model,'head'):# ClassifierHead and ConvNextifhasattr(model.head,'flatten'):# ConvNext casemodel.head.flatten=nn.Identity()model.head.global_pool=nn.Identity()delmodel.head.fcnum_classes=model.num_classesnum_features=model.num_featuresmodel.head.fc=MLDecoder(num_classes=num_classes,initial_num_features=num_features)

@HuggingFaceDocBuilderDev

The docs for this PR livehere. All of your documentation changes will be reflected on that endpoint.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@fffffgggg54@HuggingFaceDocBuilderDev@rwightman

[8]ページ先頭

©2009-2025 Movatter.jp