FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Upgrade lucid to use tensorflow v2 APIs and make it work on Colab platform by ercaronte · Pull Request #305 · tensorflow/lucid · GitHub

This repository was archived by the owner on Apr 10, 2024. It is now read-only.
/ lucid Public archive

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

Open
ercaronte wants to merge 38 commits into
tensorflow:masterfrom
ercaronte:feature/tf2compatibility
Open

Upgrade lucid to use tensorflow v2 APIs and make it work on Colab platform#305
ercaronte wants to merge 38 commits into
tensorflow:masterfrom
ercaronte:feature/tf2compatibility

Conversation

Copy link
Copy Markdown

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:

  • upgrade a handful of notebooks in the misc directory,
  • upgrade the opengl code so that is works in kaggle,
  • complete the migration to tensorflow v2 to remove any dependency to the tf.compat.v1 code.

All tox testing are passing. Tested on python 3.7 only.
All tox testing are passing for python 3.7 and 3.9
One exception with 3.9 is the test_channel_reducer_trivial that fails, but it seems a precision error.
All tox testing are passing for python 3.7 and 3.9
Fixed some small issues with some tests.
…ontent

Adding missing images that are loaded by lucid notebook
…ivation-atlas-collect) that requires the imagenet dataset.

Few other minor fixes.
Few other minor fixes in the lucid core python library.
…ontent

Bugfix/missing notebook static content
…g off to later on the necessary fixes or refactoring.
Notes: 3D rendering is broken and pyopengl rendering code works only in colab (does not in kaggle).

Copy link
Copy Markdown

Check out this pull request on 

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Copy link
Copy Markdown
Author

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

Copy link
Copy Markdown

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

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL