Stable Video Diffusion(SV3D)安装和测试(windows10)

SVD 安装教程

1.安装miniconda

https://docs.anaconda.com/free/miniconda/index.html
在这里插入图片描述

2.创建python环境

conda create --name sv3d python==3.10

conda activate sv3d

3.安装triton==2.0.0

下载地址:https://huggingface.co/r4ziel/xformers_pre_built/resolve/main/triton-2.0.0-cp310-cp310-win_amd64.whl

安装

pip install ./triton-2.0.0-cp310-cp310-win_amd64.whl

这个包,安装一直有问题,所以单独安装

4.安装requirements/pt2.txt

在requirements/pt2.txt文件中删除下面的包
删除triton==2.0.0
删除 torch相关包:

triton==2.0.0
torch>=2.0.1
torchaudio>=2.0.2
torchdata==0.6.1
torchmetrics>=1.0.1
torchvision>=0.15.2

单独安装pytorch

conda install pytorch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2 pytorch-cuda=11.7 -c pytorch -c nvidia

安装其他依赖包

pip install -r requirements/pt2.txt

5.获取clip模型

百度网盘下载 cache文件夹,放到用户跟目录 修改文件名为: .cache
C:\Users\ads.cache

我下载好的模型

链接:https://pan.baidu.com/s/1Y7WjpUBzyR11XAk3KA3Ntg 
提取码:oo20 

6.下载模型

我在linux下安装遇到这个问题, 在windows上没有,请自我修正。

Downloading data from 'https://github.com/danielgatis/rembg/releases/download/v0.0.0/u2net.onnx' to file '/root/.u2net/u2net.onnx'.

7.安装ffmpeg

https://www.geeksforgeeks.org/how-to-install-ffmpeg-on-windows/
在这里插入图片描述

报错

报错1

AttributeError: module 'sgm.modules.diffusionmodules.guiders' has no attribute 'TrianglePredictionGuider'. Did you mean: 'LinearPredictionGuider'?

在这里插入图片描述

报错2

TypeError: TiffWriter.write() got an unexpected keyword argument 'fps'

在这里插入图片描述
安装

pip install imageio==2.19.3
pip install imageio-ffmpeg==0.4.7

报错3

[in#0 @ 000002b06e26b400] Error opening input: No such file or directory
Error opening input file 'outputs/demo/vid/sv3d_u\samples\000003.mp4'.
Error opening input files: No such file or directory

在这里插入图片描述

打开文件

scripts\demo\streamlit_helpers.py

os.system(f"ffmpeg -i '{video_path}' -c:v libx264 '{video_path_h264}'")

修改为

os.system(f"ffmpeg -i {video_path} -c:v libx264 {video_path_h264}")

一直以为是 ffmpeg的包安装问题,反复折腾了,才发现是单引号的问题。这个地方有点坑,可能只是程序处理字符串出了点问题,在ubuntu下是没问题的,在windows下就报错。 姑且这样处理吧,按道理来说 有单引号应该没问题,但跑起来就是挂。
参看:https://video.stackexchange.com/questions/27885/ffmpeg-no-such-file-or-directory-problem
END

加群交流,备注:进AIGC群
在这里插入图片描述
在这里插入图片描述

  • 8
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

且漫CN

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值