在使用mmaction2写入视频的时候,出现了
TypeError: must be real number, not NoneType。
问题原因:当 moviepy 和装饰器模块不兼容时(例如,装饰器模块升级到最新版本后),就会出现这种情况。
解决方案
pip uninstall moviepy decorator
pip install moviepy
只需要重新安装就行了。
在使用mmaction2写入视频的时候,出现了
TypeError: must be real number, not NoneType。
问题原因:当 moviepy 和装饰器模块不兼容时(例如,装饰器模块升级到最新版本后),就会出现这种情况。
解决方案
pip uninstall moviepy decorator
pip install moviepy
只需要重新安装就行了。