mirror of
https://github.com/openai/CLIP.git
synced 2026-11-05 01:37:26 +00:00
[GH-ISSUE #292] Question: Is it possible to use the image tensor as float32 without converting it to float16? #252
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
openai/CLIP#252
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @blackbeandu on GitHub (Sep 28, 2022).
Original GitHub issue: https://github.com/openai/CLIP/issues/292
The title is the content.
Thank you.
@Asthestarsfalll commented on GitHub (Sep 28, 2022):
There you may find the way of converting weights dtype to float32.
Just modify like this:
or you can convert it after load model:
Btw, I test the clip with dtype float32, but the acc on ImageNet has a litlle decrease.
@blackbeandu commented on GitHub (Sep 28, 2022):
Thanks for the answers @Asthestarsfalll
I solved it.