google-research / deeplab2

DeepLab2 is a TensorFlow library for deep labeling, aiming to provide a unified and state-of-the-art TensorFlow codebase for dense pixel labeling tasks.
Apache License 2.0
1k stars 159 forks source link

evaluator_options/num_vis_samples in textproto file is not taken into account #127

Closed agaitanis closed 2 years ago

agaitanis commented 2 years ago

I set num_vis_samples: 20 in textproto file but I still get 10 images in the results/vis folder.

aquariusjay commented 2 years ago

Hi @agaitanis,

It shouldn't be the case. Please make sure your setting (e.g., config) is correct. Also, you could take a detailed look at the code (e.g., this line), which may help you debug.

Cheers,

agaitanis commented 2 years ago

This is my config options:

evaluator_options { continuous_eval_timeout: -1 save_predictions: true save_raw_predictions: false num_vis_samples : 20 detailed_ap_metrics : True }

Are you sure? Did you check it? Does it work?

agaitanis commented 2 years ago

I removed the space before the colon in the line num_vis_samples : 20 and it works.