tensorflow / lucid

A collection of infrastructure and tools for research in neural network interpretability.
Apache License 2.0
4.65k stars 655 forks source link

Upgrade lucid to use tensorflow v2 APIs and make it work on Colab platform #305

Open ercaronte opened 1 year ago

ercaronte commented 1 year ago

This PR is to update the lucid repository so that it is possible to use it in Colab, now that it does not longer support the magic command %tensorflow_version 1.x. I have updated the python library python code and most of the notebooks. Since the lucid gs bucket is down, I have also fixed some of the links to static content, pointing temporarely to my lucid fork. If the PR is accepted, it will be possible to update those links to point to the official repo. As a future work to maintain this repo:

review-notebook-app[bot] commented 1 year ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

ercaronte commented 1 year ago

While this is being handled by the lucid team, I have merged these changes on my fork https://github.com/ercaronte/lucid.

For anybody willing to use the lucid library on Colab and Kaggle feel free to use it by replacing the lucid package install with: !pip install --quiet git+https://github.com/ercaronte/lucid.git

smith-kyle commented 8 months ago

A bit of an old PR but I noticed that the ReviewNB link is perma-loading. These notebook changes are reviewable in GitNotebooks: https://gitnotebooks.com/tensorflow/lucid/pull/305