visualization_export_dir not saving images to specified folder when used in eval_config{}
System information
- What is the top-level directory of the model you are using: Object Detection
- Have I written custom code (as opposed to using a stock example script provided in TensorFlow): NO
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 16.04
- TensorFlow installed from (source or binary): binary
- TensorFlow version (use command below): tf-nightly-gpu
- Bazel version (if compiling from source):
- CUDA/cuDNN version: 10/7.4
- GPU model and memory: 2080ti x 2 and 32 gig ram
- Exact command to reproduce:
The problem
As the title states, I would like to save the detection vs. ground truth images of the eval from Tensorboard.
From the eval proto:
// Path to directory to store visualizations in. If empty, visualization
// images are not exported (only shown on Tensorboard).
optional string visualization_export_dir = 6 [default=""];
Therefore I have added it to my model.config file as such. Keep in mind I am working from the /Object-Detection/ directory.
eval_config: {
num_examples: 57
visualization_export_dir: "bevelgear_training/eval_images/"
num_visualizations: 57
metrics_set: "pascal_voc_detection_metrics"
}
Training finishes as normal, I can see all the eval images in tensorboard BUT the "bevelgear_training/eval_images/ " folder is empty.
Am I overlooking something? Anyone get this working?
It is a random guess, but have you tried using absolute paths ? I noticed that I only used absolute paths in my config but I did not know that we could export visualizations that's neat.
Yes I used absolute paths with no luck. Any other suggestions?
Hi! @mbufi have you solved it?
No unfortunately I have not. I heard mention that it was part of the old evaluation.py script but it is no longer supported. We will have to wait for for tf2.0 I guess...
I also have the same issue, the tf version is old(v1.9.0), tried to use relative path and absolute path, but both of them fails to save.
I face the same problem in TF 1.12
I have the same problem with TF 1.13.1
Try using the old eval.py script, in legacy folder.
Hey there! I am using the new TF2 Object Detection API and I am still having that issue. Were you able to fix it ?