mirror of
https://github.com/openai/CLIP.git
synced 2026-11-05 01:37:26 +00:00
[GH-ISSUE #49] RuntimeError: Method 'forward' is not defined. #44
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#44
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 @austinmw on GitHub (Mar 3, 2021).
Original GitHub issue: https://github.com/openai/CLIP/issues/49
Hi, I need to use a nightly version of PyTorch in order to get GPU support for my RTX 3080, and am facing an issue where,
model, preprocess = clip.load("ViT-B/32")gives a RuntimeError:Is there any chance this could be made forward compatible with latest PyTorch releases?
@jongwook commented on GitHub (Mar 3, 2021):
Hi, currently it is not tested on versions other than 1.7.1, but we'll look into supporting future PyTorch versions. Did you need CUDA 11.1 for your GPU? You might try building pytorch 1.7.1 yourself, but YMMV.
In the meantime, can you try loading the model with the
jit=Falseflag and see if that works? This might be a JIT-specific issue.@crowsonkb commented on GitHub (Mar 5, 2021):
I tried loading the model with the
jit=Falseflag and it worked for me.@nreimers commented on GitHub (Mar 19, 2021):
Setting jit=False and comment out line 134 +135:
https://github.com/openai/CLIP/blob/main/clip/clip.py#L134
solved the issue for me
@mitchellnw commented on GitHub (Apr 20, 2021):
Works when
jit=Falsebut is their any plans/recommendations for fixes whenjit=Truewith PyTorch >= 1.8?@jongwook commented on GitHub (Jul 19, 2021):
Fixed with
db20393!