Skip to content

Conversation

ebsmothers
Copy link
Contributor

@ebsmothers ebsmothers commented Nov 1, 2023

@ebsmothers ebsmothers mentioned this pull request Nov 1, 2023
ebsmothers added a commit that referenced this pull request Nov 1, 2023
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 1, 2023
@ebsmothers ebsmothers marked this pull request as draft November 1, 2023 16:43
ebsmothers added a commit that referenced this pull request Nov 2, 2023
@ebsmothers
Copy link
Contributor Author

ebsmothers commented Nov 2, 2023

Note: This PR is not to land and is instead meant for verification purposes.

Some modifications to CoCa class and an evaluation script to validate that our implementation matches the ImageNet zero-shot performance of the one in open_clip repo on their pretrained ViT-L/14.

Test:

python eval.py --pretrained /home/ebs/checkpoints/open_clip_coca_vit_l_14_laion2B-s13B-b90k-remapped.pt
...
TorchMultimodal zero-shot accuracy: {'imagenet-zeroshot-test-top1': 0.75628, 'imagenet-zeroshot-test-top5': 0.94284}
...
    accuracy                          0.757     50000
   macro avg      0.768     0.757     0.751     50000
weighted avg      0.768     0.757     0.751     50000

ebsmothers added a commit that referenced this pull request Nov 2, 2023
ebsmothers added a commit that referenced this pull request Nov 2, 2023
ebsmothers added a commit that referenced this pull request Nov 15, 2023
@ebsmothers
Copy link
Contributor Author

@ebsmothers has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

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

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants