All Questions

Tagged with
Filter by
Sorted by
Tagged with
20 votes
5 answers
22k views

How to graph tf.keras model in Tensorflow-2.0?

I upgraded to Tensorflow 2.0 and there is no tf.summary.FileWriter("tf_graphs", sess.graph). I was looking through some other StackOverflow questions on this and they said to use tf.compat.v1.summary ...
Colin Steidtmann's user avatar
9 votes
1 answer
4k views

Use TensorBoard with Keras Tuner

I ran into an apparent circular dependency trying to use log data for TensorBoard during a hyper-parameter search done with Keras Tuner, for a model built with TF2. The typical setup for the latter ...
wishihadabettername's user avatar
6 votes
1 answer
2k views

WARNING:tensorflow:`write_grads` will be ignored in TensorFlow 2.0 for the `TensorBoard` Callback

I am using the following lines of codes to visualise the gradients of an ANN model using tensorboard tensorboard_callback = tf.compat.v1.keras.callbacks.TensorBoard(log_dir='./Graph', histogram_freq=...
Kay's user avatar
  • 147
3 votes
0 answers
191 views

More elegant way of displaying distributions and activations in TensorBoard

Keras's Tensorboard callback has a write_images and a histogram_freq argument that allows the weights and activations to be saved to Tensorboard to visualize during training. The issue is, this saves ...
RodYt's user avatar
  • 157
3 votes
0 answers
897 views

Display currently used batch (input images, predictions) on tensorboard when using model.fit() with tf.Dataset in Tensorflow 2

I am training a deep network implementing the tf.keras.Model API using tf.keras.Model.fit() (Tensorflow 2.0) to segment images. The input data comes from a dataset using tf.data.TFRecordDataset. Thus, ...
user1723175's user avatar
2 votes
1 answer
455 views

Running model.fit() and TensorBoard at the same time?

I have an interesting (for me) question about running model.fit() and tensorboard at the same time. I did some research on internet about "Threading", "Processing", "Multi-processing", tried ...
Mustafa Mert Tunali's user avatar
2 votes
0 answers
363 views

How to prune weights in Tensorflow CNN model (Without migrating model to Keras)

I have a TF CNN model and now I want to use the weight pruning API of tensor flow with this but all the examples I checked online, it works only with Keras model I want to prune wights of my ...
user1616773's user avatar
1 vote
2 answers
3k views

Failed to load Tensorboard

ERROR: Failed to launch TensorBoard (exited with 1). Contents of stderr: Traceback (most recent call last): File "/home/arshad/anaconda3/bin/tensorboard", line 10, in sys.exit(run_main()) ...
Arshad Khan's user avatar
1 vote
0 answers
327 views

Tensorboard page is empty

I'm using tensorflow 2.4.1 and tensorboard 2.4.1 in centos 6.5 I'm trying to track a keras model undergoing training using a tensorboard call back, but I'm always getting a blank page when I start the ...
mhk777's user avatar
  • 93
1 vote
2 answers
4k views

history=model.fit_generator() Why is keras history empty?{}

I can't obtain history from model.fit_generator() net_history=densenet_model.fit_generator( generator=train_loader, steps_per_epoch=len(train_dataset), max_queue_size=500, workers=1, ...
ll C's user avatar
  • 41
1 vote
0 answers
423 views

I'm struggling to implement tensorboard monitoring into the Mask_RCNN training process

I've been using the balloon.py example script in the Matterport Mask R-CNN repo [https://github.com/matterport/Mask_RCNN/blob/master/samples/balloon/balloon.py] for learning how to implement ...
Jon's user avatar
  • 21
1 vote
0 answers
209 views

How to compute gradients w.r.t weights in tf.keras and logging the same for gradients monitoring on tensorboard?

I'm actually working on basic GANs using TF keras, here I use train_on_batch method for training generator and discriminator alternatively which has no callbacks parameter for writing tensorboard logs ...
Sanjay's user avatar
  • 71
1 vote
0 answers
160 views

Keras) How to get input and output image from callback to visualize in tensorboard

First of all, I must use the function fit_generator() , model.fit_generator(...) In this situation, I have to visualize the input image and output image by tensorboard. Even though I use the ...
LKM's user avatar
  • 2,430
0 votes
1 answer
110 views

Specifying separate tf.summary file_writers for training and validation

I would like to visualize some scalars such as Train loss, val loss (among others) as my training progresses. I am using tf.Keras with tf2.3. However I am unable to specify separate filewriters for ...
Rms45's user avatar
  • 23
0 votes
1 answer
396 views

ValueError: Output tensors of a Functional model must be the output of a TensorFlow `Layer` when using custom callback to plot conv layer feature maps

I'm trying to implement a custom callback to get the feature maps of each Conv2D layer in the network plotted in TensorBoard. When I run the code in Example 1 I get the following error: <ipython-...
Michael's user avatar
  • 2,283
-1 votes
1 answer
144 views

Tensorflow / Tensorboard missing output from one of hparams during profiling

TF / TB running a profile with the following setup : HP_NUM_NODES_ONE = hp.HParam('nodes_one', hp.Discrete([128])) HP_NUM_NODES_TWO = hp.HParam('nodes_two', hp.Discrete([64, 128, 256])) ...
Jim Maas's user avatar
  • 1,571
-1 votes
1 answer
145 views

Long waiting when running training model with ML

I have trouble for long waiting when I run my training model with Machine Learning using CNNs. Maybe this because my pc has such a bad specs for machine learning. I have 50000 images for my X_training ...
Ardian's user avatar
  • 1