-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
RuntimeError: Method 'forward' is not defined. #49
Comments
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 |
I tried loading the model with the |
Setting jit=False and comment out line 134 +135: #patch_device(model.encode_image)
#patch_device(model.encode_text) solved the issue for me |
Works when |
Fixed with db20393 ! |
This change follows from the discussion[1,2] OpenAI CLIP issue tracker and final fix[3] of the following error: ``` TypeError: 'torch._C.Node' object is not subscriptable ``` [1]: openai/CLIP#79 [2]: openai/CLIP#49 [3]: openai/CLIP@db20393
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?
The text was updated successfully, but these errors were encountered: