Giter Site home page Giter Site logo

thunderhoser / ai2es_xai_course Goto Github PK

View Code? Open in Web Editor NEW
14.0 14.0 5.0 188.98 MB

Notebooks for AI2ES (NSF Institute for Research on Trustworthy Artificial Intelligence in Weather, Climate, and Coastal Oceanography) short course on XAI (explainable artificial intelligence).

License: MIT License

Python 0.28% Jupyter Notebook 99.72%

ai2es_xai_course's People

Contributors

ralager avatar thunderhoser avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ai2es_xai_course's Issues

lecture 3 notebook: error running cell in Google Colab

I am trying to run this notebook with no changes: https://colab.research.google.com/drive/1s0V0uTZrsHoEzmnGcvGM_MeX2NbPOI2U?usp=sharing#scrollTo=G_PdfMRZYGl6

But there is an error that I suspect is because of recent tensorflow/keras version changes in colab.

On the cell following the heading Random example, it fails on cnn.apply_model

FailedPreconditionError: 2 root error(s) found.
  (0) Failed precondition: Could not find variable conv2d/bias. This could mean that the variable has been deleted. In TF1, it can also mean the variable is uninitialized. Debug info: container=localhost, status=Not found: Container localhost does not exist. (Could not find resource: localhost/conv2d/bias)
	 [[{{node conv2d/BiasAdd/ReadVariableOp}}]]
	 [[batch_normalization_4/cond/Identity/_5]]
  (1) Failed precondition: Could not find variable conv2d/bias. This could mean that the variable has been deleted. In TF1, it can also mean the variable is uninitialized. Debug info: container=localhost, status=Not found: Container localhost does not exist. (Could not find resource: localhost/conv2d/bias)
	 [[{{node conv2d/BiasAdd/ReadVariableOp}}]]
0 successful operations.
0 derived errors ignored.

I was able to get past this error with another version of tensorflow/keras, adding the following to the top of the notebook:

!pip uninstall keras-nightly
!pip uninstall -y tensorflow
!pip install h5py==2.10.0  yy
!pip install tensorflow==2.4.0
!pip install keras==2.4.3

But the next error was on the cell following CAM for random example, failing on class_activation.run_gradcam.

AttributeError: module 'tensorflow' has no attribute 'get_default_session'

I have been trying a few other tensorflow/keras version combos without success.

If you happen to know a quick fix, I would greatly appreciate it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.