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

Google Colab GPU Error #53

Closed
rohaldb opened this issue Mar 14, 2022 · 2 comments
Closed

Google Colab GPU Error #53

rohaldb opened this issue Mar 14, 2022 · 2 comments

Comments

@rohaldb
Copy link

rohaldb commented Mar 14, 2022

When running es_clip in the accompanying google colab instance with more than 0 GPU's, I get the following error:

Traceback (most recent call last):
  File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
    self.run()
  File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.7/multiprocessing/pool.py", line 105, in worker
    initializer(*initargs)
  File "/content/brain-tokyo-workshop/es-clip/es_clip.py", line 97, in init_worker
    model, preprocess = clip.load('ViT-B/32', device, jit=True)  # change jit=True
  File "/usr/local/lib/python3.7/dist-packages/clip/clip.py", line 137, in load
    model = build_model(state_dict or model.state_dict()).to(device)
  File "/usr/local/lib/python3.7/dist-packages/clip/model.py", line 396, in build_model
    vit = "visual.proj" in state_dict
  File "/usr/local/lib/python3.7/dist-packages/torch/jit/_script.py", line 816, in __contains__
    return self.forward_magic_method("__contains__", key)
  File "/usr/local/lib/python3.7/dist-packages/torch/jit/_script.py", line 803, in forward_magic_method
    raise NotImplementedError()

Has anyone figured out how to solve this?

@alantian
Copy link
Collaborator

alantian commented Mar 17, 2022

Hey @rohaldb , thanks for your interest on ES-CLIP!

We have re-implemented ES-CLIP in JAX, which is more suitable for running on Colab here:

Maybe you want to check it out?

@rohaldb
Copy link
Author

rohaldb commented Mar 17, 2022

Ah excellent, thanks!

@rohaldb rohaldb closed this as completed Mar 17, 2022
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