Poetry 安装失败,并显示 ChefBuildError:后端操作失败:HookMissing('build_editable')
我的诗歌版本是1.4.2
嗨,我真的试图将 TFX 管道作为一项练习。我正在使用从磁盘ImportExampleGen加载TFRecords。每个Example在TFRecord包含在一个字节串,高度,宽度,深度,转向和油门标签的形式一个jpg。
我正在尝试使用,StatisticsGen但收到此警告;
WARNING:root:Feature "image_raw" has bytes value "None" which cannot be decoded as a UTF-8 string.并使我的 Colab Notebook 崩溃。据我所知,TFRecord 中的所有字节字符串图像都没有损坏。
我找不到有关StatisticsGen和处理图像数据的具体示例。根据文档Tensorflow Data Validation 可以处理图像数据。
除了计算一组默认的数据统计数据外,TFDV 还可以计算语义域(例如,图像、文本)的统计数据。要启用语义域统计的计算,请将 enable_semantic_domain_stats 设置为 True 的 tfdv.StatsOptions 对象传递给 tfdv.generate_statistics_from_tfrecord。
但我不确定这与StatisticsGen.
这是实例化ImportExampleGen然后的代码StatisticsGen
from tfx.utils.dsl_utils import tfrecord_input
from tfx.components.example_gen.import_example_gen.component import ImportExampleGen
from tfx.proto import example_gen_pb2
examples = tfrecord_input(_tf_record_dir)
# https://www.tensorflow.org/tfx/guide/examplegen#custom_inputoutput_split
# has a good explanation of …Run Code Online (Sandbox Code Playgroud)