mirror of
https://github.com/openai/CLIP.git
synced 2026-11-05 01:37:26 +00:00
[GH-ISSUE #71] Doesn't work on PyTorch 1.8 #65
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#65
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 @interfect on GitHub (Mar 25, 2021).
Original GitHub issue: https://github.com/openai/CLIP/issues/71
PyTorch recently had a 1.8 release, bringing much better support for backing
torch.cudatensors with AMD GPUs.However, CLIP hasn't been ported to PyTorch 1.8 yet.
In particular, CLIP still uses the deprecated and now removed
pytorch.irfft, which needs to be replaced with calls to methods in thetorch.fftnamespace to work on PyTorch 1.8.Unfortunately, the PR that removed support for the old methods doesn't provide a recipe for translating calls that can be executed by someone who doesn't understand the finer points of FFTs. It seems to me that the square-root-of-a-bunch-of-stuff normalization method of the old function isn't available as any of the normalization modes of
torch.fft.irfft, and I'm not sure of the number of dimensions involved here, or whether we have the input versus the output sizes handy.@interfect commented on GitHub (Mar 25, 2021):
Sorry, this is on the wrong project.
@jongwook commented on GitHub (Mar 25, 2021):
FWIW, CLIP doesn't work on 1.8 either. I'm keeping #49 open to track the compatibility fix.