models icon indicating copy to clipboard operation
models copied to clipboard

visualization_export_dir not saving images to specified folder when used in eval_config{}

Open marvision-ai opened this issue 7 years ago • 9 comments

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?

marvision-ai avatar Feb 01 '19 21:02 marvision-ai

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.

D-K-E avatar Feb 07 '19 03:02 D-K-E

Yes I used absolute paths with no luck. Any other suggestions?

marvision-ai avatar Mar 06 '19 15:03 marvision-ai

Hi! @mbufi have you solved it?

zhizunbao-y avatar Apr 02 '19 07:04 zhizunbao-y

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...

marvision-ai avatar Apr 02 '19 10:04 marvision-ai

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.

deercoder avatar Apr 16 '19 23:04 deercoder

I face the same problem in TF 1.12

kmadhugit avatar Apr 23 '19 16:04 kmadhugit

I have the same problem with TF 1.13.1

akashgoyal119 avatar Jun 20 '19 15:06 akashgoyal119

Try using the old eval.py script, in legacy folder.

noumanriazkhan avatar Jan 10 '20 10:01 noumanriazkhan

Hey there! I am using the new TF2 Object Detection API and I am still having that issue. Were you able to fix it ?

Snixells avatar Oct 22 '20 08:10 Snixells