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

Mapping OpenAI CLIP Modified ResNet weights -> ByobNet. #2198

Merged
merged 6 commits into from
Jun 12, 2024

Conversation

rwightman
Copy link
Collaborator

Improve AttenionPool2d layers.
Fix #1731

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@@ -7,12 +7,14 @@

Hacked together by / Copyright 2021 Ross Wightman
"""
from typing import Union, Tuple
from typing import Optional, Union, Tuple

import torch
import torch.nn as nn

Choose a reason for hiding this comment

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

from torch import nn

@@ -36,8 +36,8 @@
import torch
import torch.nn as nn

Choose a reason for hiding this comment

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

from torch import nn

@rwightman rwightman merged commit 7b0a532 into main Jun 12, 2024
24 checks passed
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

Successfully merging this pull request may close these issues.

Adding CLIP Pretrained Weights to ResNet
3 participants