我想获得图像文件的扩展来调用不同的图像解码器,我发现在tensorflow r0.11中有一个名为tf.string_split的函数。shuffle)img_src, img_bytes = reader.read(filename_queue)ValueError: Shape must be rank 1 but is rank 0 for 'StringSpli
现在,我已经将图像/路径移到TF数据集,然后使用tf.string_split从文件名本身提取各种信息。其中之一就是product_id。Below logic is in a mapped function used on a TF.Dataset core_file = tf.string_split([filename], '\\').values[-1]
product_id = tf.string_split([core_file]