【发布时间】:2023-01-04 15:14:02
【问题描述】:
我有这行代码
out_filename = os.path.join(self.save_dir, self.current_video + ".txt")
我收到以下错误:
trackHelper.export_last_video() 文件 “C:\Users\Bharath\PointTrack\utils\mots_util.py”,第 130 行,在 导出最后一个视频 out_filename = os.path.join(self.save_dir, self.current_video + ".txt") 类型错误:+ 不支持的操作数类型:'NoneType' 和 '海峡'
任何帮助,将不胜感激。
【问题讨论】:
-
这主要是因为 self.current_video 返回 None,并且您不能将字符串与 None 连接
标签: python deep-learning anaconda3