Skip to content
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

Jupyter Keeps crashing when trying to initialize CLIP #448

Open
SSdevelop opened this issue Jun 2, 2024 · 2 comments
Open

Jupyter Keeps crashing when trying to initialize CLIP #448

SSdevelop opened this issue Jun 2, 2024 · 2 comments

Comments

@SSdevelop
Copy link

SSdevelop commented Jun 2, 2024

I have the following code in a jupyter cell:

device = "cuda" if torch.cuda.is_available() else "cpu"
model, preprocess = clip.load("ViT-L/14", device=device)

My kernel keeps crashing.
I have tried to run the same cell on Google Colab as well (Using T4 GPU with high RAM).
Has anyone faced the same issue?
Message from local Jupyter Lab:
Screenshot 2024-06-02 233022
Message from Google Colab:
Screenshot 2024-06-02 233055
App Logs from Google Colab:
Screenshot 2024-06-02 233123

@SSdevelop
Copy link
Author

SSdevelop commented Jun 2, 2024

Turns out if I remove decord, it works perfectly fine. Anyone knows why?

@rakhon9
Copy link

rakhon9 commented Jun 10, 2024

Not really a solution, but I have come accross this issue before. My kernel kept dying. It turned out it was because of conda environment. I accidentally installed some library versions that crash with each other. I have solved the problem by creating a brand new conda environment and only installing required libraries for CLIP running. I hope it helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants