Open RayanMoarkech opened 1 month ago
Hi @RayanMoarkech I worked on the problem and reproduced the issue of No image data was found, I added piece of code to the existing, i.e in the show_batch function added this line and made necessary changes.
with summary_writer.as_default():
tf.summary.image(f'Image_with_bboxes_{i+1}', np.expand_dims(image, axis=0), step=train_steps)
and I found that it is working, here is the notebook that I worked on. Please check it here is the screenshot.
But this will not create an image log at every summary interval while training the model with:
tfm.core.train_lib.run_experiment
Correct me if I'm wrong. But I was not able to connect the training to produce an image summary at the same time I am doing a summary_interval
. So this means this option is only a manual code that I should run on every train step I want to stop at?
Based on your screenshot, you can see the data is from a .
RUN
Prerequisites
Please answer the following questions for yourself before submitting an issue.
1. The entire URL of the file you are using
https://www.tensorflow.org/tfmodels/vision/object_detection#load_logs_in_tensorboard
2. Describe the bug
I am following this documentation, https://www.tensorflow.org/tfmodels/vision/object_detection#load_logs_in_tensorboard When I open tensorboard, and select images, I get "No image data was found."
I also tried to add
EXPERIMENT_CONFIG.task.allow_image_summary = True
, but I got an error, even with the dataset and code given by the documentation.The error:
The code:
3. Steps to reproduce
Now, try to train again with
EXPERIMENT_CONFIG.task.allow_image_summary = True
4. Expected behavior
I would like to see the evaluated images per epochs saved on tensorboard.
5. Additional context
Let me know if you need anything extra
6. System information