tensorflow / lucid

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

Module 'lucid.misc' has no attribute 'io' #251

Closed fferlito closed 4 years ago

fferlito commented 4 years ago

I used to use notebooks flawlessly. Recently, I get this error

module 'lucid.misc' has no attribute 'io'

when importing some modules from the lucid library. Does anyone know how to solve this annoying error?

fferlito commented 4 years ago

Solved.. it was an tensorflow version issue (there's no support for TF 2). It's enough to add this line before the importing phase:

!pip install --quiet lucid==0.2.3

!pip install --quiet --upgrade-strategy=only-if-needed git+https://github.com/tensorflow/lucid.git

%tensorflow_version only works on colab

%tensorflow_version 1.x