TFX抱怨上游组件未在交互模式下运行

问题描述

请在这里找到笔记本 https://colab.research.google.com/drive/1Qb-uv5JtyZhMl1BEVHplZmfULgV-BN45?usp=sharing

上游组件(在此案例中,转换后的示例已使用context.run()成功执行,但是培训师仍然抱怨它未完成

笔记本使用TFX 0.22可以很好地进行训练,但是在TFX 0.23中出现此错误


ValueError                                Traceback (most recent call last)
<ipython-input-26-a501b7646f34> in <module>()
----> 1 context.run(trainer)

5 frames
/usr/local/lib/python3.6/dist-packages/tfx/components/base/base_driver.py in resolve_input_artifacts(self,input_dict,exec_properties,driver_args,pipeline_info)
    158                 'components must first be run with '
    159                 '`interactive_context.run(component)` before their outputs can '
--> 160                 'be used in downstream components.') % (artifact,name))
    161         result[name] = artifacts
    162       else:

ValueError: Unresolved input channel Artifact(artifact: custom_properties {
  key: "name"
  value {
    string_value: "transformed_examples"
  }
}
custom_properties {
  key: "pipeline_name"
  value {
    string_value: "tfx-segmentation"
  }
}
custom_properties {
  key: "producer_component"
  value {
    string_value: "Transform"
  }
},artifact_type: name: "Examples"
properties {
  key: "span"
  value: INT
}
properties {
  key: "split_names"
  value: STRING
}
properties {
  key: "version"
  value: INT
}
) for input 'examples' was passed in interactive mode. When running in interactive mode,upstream components must first be run with `interactive_context.run(component)` before their outputs can be used in downstream components.

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...