在我尝试上传 pandas Dataframe 之前,海王星记录器在 pytorch 闪电中运行良好。
测试代码:
data = {'col_1': [3, 2, 1, 0], 'col_2': ['a', 'b', 'c', 'd']}
data_pd = pd.DataFrame.from_dict(data)
data_html = File.as_html(data_pd)
self.logger.experiment['val/report'].upload(data_html)
错误:
self.logger.experiment['val/report'].upload(data_html)
TypeError: list indices must be integers or slices, not st
有谁知道如何解决它?非常感谢。