<p dir="auto">I want to visualize detection results on images using <code class="notranslate">tf.summary.image</code> and record the original name of this image at the same time.<br>
In the old version <code class="notranslate">tf.image_summary()</code>, I can pass a placeholder for an image name and feed the name in <code class="notranslate">sess.run</code>.  Like this,</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="log_image_data = tf.placeholder(tf.uint8, [None, None, 3])
log_image_name = tf.placeholder(tf.string)
log_image = tf.image_summary(log_image_name, tf.expand_dims(log_image_data, 0), max_images=1)"><pre class="notranslate"><code class="notranslate">log_image_data = tf.placeholder(tf.uint8, [None, None, 3])
log_image_name = tf.placeholder(tf.string)
log_image = tf.image_summary(log_image_name, tf.expand_dims(log_image_data, 0), max_images=1)
</code></pre></div>
<p dir="auto">But the new version of api only allows to speficy a fixed <code class="notranslate">name</code> in string type instead of a placeholder when building the summry graph.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="tf.summary.image(name, tensor, max_outputs=3, collections=None) 
# Args: 
# name: A name for the generated node, which cannot be a placeholder"><pre class="notranslate"><code class="notranslate">tf.summary.image(name, tensor, max_outputs=3, collections=None) 
# Args: 
# name: A name for the generated node, which cannot be a placeholder
</code></pre></div>
<p dir="auto">How can I name the visualized image on the fly?</p>
<p dir="auto">I enter this command : tflite_convert \ --output_file=/tmp/foo.tflite \ --keras_model_file=C:/Users/n.muthuraj/Desktop/cnn/02/dataset/ashik.h5</p>
<p dir="auto">The Output is : Traceback (most recent call last):</p>
<p dir="auto">File "c:\users\n.muthuraj\appdata\local\programs\python\python35\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 14, in swig_import_helper return importlib.import_module(mname) File "c:\users\n.muthuraj\appdata\local\programs\python\python35\lib\importlib_init_.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 986, in _gcd_import File "", line 969, in _find_and_load File "", line 958, in _find_and_load_unlocked File "", line 666, in _load_unlocked File "", line 577, in module_from_spec File "", line 906, in create_module File "", line 222, in _call_with_frames_removed ImportError: DLL load failed: The specified module could not be found. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "c:\users\n.muthuraj\appdata\local\programs\python\python35\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in from tensorflow.python.pywrap_tensorflow_internal import * File "c:\users\n.muthuraj\appdata\local\programs\python\python35\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 17, in _pywrap_tensorflow_internal = swig_import_helper() File "c:\users\n.muthuraj\appdata\local\programs\python\python35\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 16, in swig_import_helper return importlib.import_module('pywrap_tensorflow_internal') File "c:\users\n.muthuraj\appdata\local\programs\python\python35\lib\importlib_init.py", line 126, in import_module return _bootstrap.gcd_import(name[level:], package, level) ImportError: No module named 'pywrap_tensorflow_internal' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "c:\users\n.muthuraj\appdata\local\programs\python\python35\lib\runpy.py", line 184, in run_module_as_main "main", mod_spec) File "c:\users\n.muthuraj\appdata\local\programs\python\python35\lib\runpy.py", line 85, in run_code exec(code, run_globals) File "C:\Users\n.muthuraj\AppData\Local\Programs\Python\Python35\Scripts\tflite_convert.exe_main.py", line 5, in File "c:\users\n.muthuraj\appdata\local\programs\python\python35\lib\site-packages\tensorflow_init.py", line 22, in from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import File "c:\users\n.muthuraj\appdata\local\programs\python\python35\lib\site-packages\tensorflow\python_init.py", line 49, in from tensorflow.python import pywrap_tensorflow File "c:\users\n.muthuraj\appdata\local\programs\python\python35\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 74, in raise ImportError(msg) ImportError: Traceback (most recent call last): File "c:\users\n.muthuraj\appdata\local\programs\python\python35\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 14, in swig_import_helper return importlib.import_module(mname) File "c:\users\n.muthuraj\appdata\local\programs\python\python35\lib\importlib_init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 986, in _gcd_import File "", line 969, in _find_and_load File "", line 958, in _find_and_load_unlocked File "", line 666, in _load_unlocked File "", line 577, in module_from_spec File "", line 906, in create_module File "", line 222, in _call_with_frames_removed ImportError: DLL load failed: The specified module could not be found. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "c:\users\n.muthuraj\appdata\local\programs\python\python35\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in from tensorflow.python.pywrap_tensorflow_internal import * File "c:\users\n.muthuraj\appdata\local\programs\python\python35\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 17, in _pywrap_tensorflow_internal = swig_import_helper() File "c:\users\n.muthuraj\appdata\local\programs\python\python35\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 16, in swig_import_helper return importlib.import_module('pywrap_tensorflow_internal') File "c:\users\n.muthuraj\appdata\local\programs\python\python35\lib\importlib_init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ImportError: No module named '_pywrap_tensorflow_internal' Failed to load the native TensorFlow runtime. See <a href="https://www.tensorflow.org/install/install_sources#common_installation_problems" rel="nofollow">https://www.tensorflow.org/install/install_sources#common_installation_problems</a> for some common reasons and solutions. Include the entire stack trace above this error message when asking for help.</p>
<p dir="auto">I am not sure where i am going wrong</p>