Torchvision 会出现错误,原因是一个参数错误
作者: KeenanWang创建于 2025年10月13日更新于 2025年10月13日
Firstly, thanks for your excellent work! It's simple and helpful. When a video has been tracked and is ready to be written to disk, the app.py will call up a function named torchvision.io.write_video. However, the function will raise a bug that AttributeError: 'numpy.float64' object has no attribute 'numerator'[1]. This bug cannot be solved by changing the version of torch[2]. However, there is another way to save the video, which is already in this work.
内容来源: gaomingqi/Track-Anything