DVC An End-to-end Deep Video Compression Framework (pytorch)代码复现问题解决

这篇博客记录了复现PyTorch项目PyTorchVideoCompression的环境配置过程,包括所需Python、PyTorch和cudatoolkit的版本。在安装过程中遇到了tensorflow、pypng、torchac、tensorboardX等模块的缺失问题,通过pip安装解决了。此外,还解决了Microsoft Visual C++ 14.0的依赖问题,以及ninja的安装。遇到的错误和解决方案都一一列出,为读者提供参考。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

参考github DVC的pytorch版本进行环境和代码复现工作

https://github.com/ZhihaoHu/PyTorchVideoCompression

环境设置

  • python==3.6.13
  • pytorch==1.7.1
  • cudatoolkit==11.0.3

安装步骤

  1. pytorch ,安装pytorch;
  2. ModuleNotFoundError: No module named 'tensorflow’
    pip install tensorflow
  3. No module named 'png’
    pip install pypng
  4. No module named 'torchac’
    pip install torchac
  5. subprocess.CalledProcessError: Command ‘[‘where’, ‘cl’]’ returned non-zero exit status 1.
http://github.tbz.io/Blog/17/04/CL_CL_VS17.html
  1. No module named 'tensorboardX’
    pip install tensorboardX
  2. error: Microsoft Visual C++ 14.0 or greater is required.的解决办法
https://blog.csdn.net/weiweichun/article/details/116904033

不需要离线安装VS2015,会提示安装包丢失或者损坏。

  1. UserWarning: Error checking compiler version for cl: ‘utf-8’ codec can’t decode byte 0xd3 in position 0: invalid continuation byte warnings.warn(f’Error checking compiler version for {compiler}: {error}’)
https://blog.csdn.net/qq_16792139/article/details/109275413
  1. 安装ninja
https://blog.csdn.net/darren2015zdc/article/details/74504917
https://blog.csdn.net/qq_20373723/article/details/84061647

结果训练图

总结

暂时就总结了这么多,如果有新的问题我会补充,如果大家有什么问题,我上面没有提到的,也可以留言我再解决。

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值