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

AttributeError: 'TensorBoardColabCallback' object has no attribute 'is_eager_execution' #6

Closed
simpleParadox opened this issue Dec 12, 2018 · 14 comments

Comments

@simpleParadox
Copy link

simpleParadox commented Dec 12, 2018

The callbacks parameter for Keras is not taking inputs for TensorBoardColabCallback. @taomanwai
https://colab.research.google.com/drive/19_QqEfi8WeNkbhRpxObukE8IggmMFJWY#scrollTo=UwtUJEjI51en

Please have a look or suggest a temporary solution.

@taomanwai
Copy link
Owner

taomanwai commented Dec 13, 2018 via email

@mrcmoresi
Copy link

Dear @taomanwai i have the same issue but i cant fix it upgrading the package, here is the problem with the callbacks

Colab Notebook

@simpleParadox
Copy link
Author

simpleParadox commented Dec 13, 2018

Hello, the issue has still not been fixed. The error till exists.

@taomanwai
Copy link
Owner

taomanwai commented Dec 14, 2018 via email

@mariomeissner
Copy link

Can confirm, I also have the same issue even after installing 0.0.21.

@taomanwai
Copy link
Owner

0.0.22 is available, & fully tested!

To ensure upgrade succeed, please:

  1. Restart colab server (to clear any cache mechanism)
  2. pip install -U tensorboardcolab

@mariomeissner
Copy link

Thank you, it works now! 😁

@chanckjoseph
Copy link

Applied !pip install -U tensorboardcolab. Still getting AttributeError: 'TensorBoardColabCallback' object has no attribute 'on_train_batch_begin'

@yejilee-herings
Copy link

Applied !pip install -U tensorboardcolab. Still getting AttributeError: 'TensorBoardColabCallback' object has no attribute 'on_train_batch_begin'

I am also getting the same error message.

@virtualdvid
Copy link

I got the same error even using !pip install -U --ignore-installed tensorboardcolab

@paweljedrzejewski
Copy link

I have the same issue. Do you guys know is there any way of using Tensor Board with Google Colab as a workaround?

@virtualdvid
Copy link

virtualdvid commented Mar 6, 2019

There is an alternative solution but we have to use TFv2.0 preview. So if you don't have problems with the migration try this:

install tfv2.0 for GPU or CPU (TPU no available yet)

CPU
tf-nightly-2.0-preview
GPU
tf-nightly-gpu-2.0-preview

%%capture
!pip install -q tf-nightly-gpu-2.0-preview
# Load the TensorBoard notebook extension
%load_ext tensorboard.notebook

import TensorBoard as usual:

from tensorflow.keras.callbacks import TensorBoard

Clean or Create folder where to save the logs (run this lines before run the training fit())

# Clear any logs from previous runs
import time

!rm -R ./logs/ # rf
log_dir="logs/fit/{}".format(time.strftime("%Y%m%d-%H%M%S", time.gmtime()))
tensorboard = TensorBoard(log_dir=log_dir, histogram_freq=1)

Have fun with TensorBoard! :)

%tensorboard --logdir logs/fit

Here the official colab notebook and the repo on github

New TFv2.0 alpha release:

CPU
!pip install -q tensorflow==2.0.0-alpha0
GPU
!pip install -q tensorflow-gpu==2.0.0-alpha0

@pankudo
Copy link

pankudo commented Mar 6, 2019

Thank you. It works nicely 🥇

@simpleParadox
Copy link
Author

Solved. Thanks!

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

9 participants