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

AbstractPainting02.ipynb. doesn't work on colab #4

Closed
shi3z opened this issue Feb 14, 2022 · 4 comments
Closed

AbstractPainting02.ipynb. doesn't work on colab #4

shi3z opened this issue Feb 14, 2022 · 4 comments
Assignees

Comments

@shi3z
Copy link

shi3z commented Feb 14, 2022

Hello, this is a really great code.

I was able to run "Abstract Painting 01" very well at Google coab.
However, when I ran "AbstractPainting02", an error occurred.

Exception                                 Traceback (most recent call last)
[<ipython-input-20-b16203d22159>](https://localhost:8080/#) in <module>()
      2 devices = jax.local_devices()
      3 
----> 4 image_fn, text_fn, jax_params, jax_preprocess = clip_jax.load('ViT-B/32', "cpu")
      5 
      6 target_text_ids = jnp.array(clip_jax.tokenize([prompt])) # already with batch dim

3 frames
[/content/CLIP_JAX/clip_jax/clip.py](https://localhost:8080/#) in process_node(value, name)
    117             new_tensor = jnp.array(pytorch_tensor)
    118         else:
--> 119             raise Exception("not implemented")
    120 
    121         assert new_tensor.shape == value.shape

Exception: not implemented

Which version of clip_jax when you made?

Best

@hardmaru
Copy link
Contributor

@alantian

@alantian
Copy link
Collaborator

alantian commented Feb 16, 2022

Hey @shi3z thanks for reporting this issue!

We can reproduce the issue and have identified it's related to a recent change in haiku (https://github.com/deepmind/dm-haiku/releases/tag/v0.0.6 , which was released 2 days ago).

Pushed a quick fix to our notebooks solving it for now.

@alantian
Copy link
Collaborator

@shi3z May I know if it works now on your side?

@shi3z
Copy link
Author

shi3z commented Mar 8, 2022

@alantian I'm sorry my reply is late. Thanks to you, I was able to confirm that it works well. I'm excited to encounter amazing software!

Best

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

3 participants