Skip to content

HunyuanVideo: A Systematic Framework For Large Video Generation Model

fix pytorch to 2.4.0

feifeibeare5e195720572
diff --git a/README.md b/README.md
index 6a0af14..c87e802 100644
--- a/README.md
+++ b/README.md
@@ -278,7 +278,7 @@ conda create -n hunyuanxdit python==3.10.9
conda activate hunyuanxdit
# 3. Install PyTorch component with CUDA 11.8
-conda install pytorch==2.5.0 torchvision==0.20.0 torchaudio==2.5.0 pytorch-cuda=11.8 -c pytorch -c nvidia
+conda install pytorch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0 pytorch-cuda=11.8 -c pytorch -c nvidia
# 4. Install pip dependencies
python -m pip install -r requirements_xdit.txt
diff --git a/docker/Dockerfile_xDiT b/docker/Dockerfile_xDiT
index ddc2c74..d258e3d 100644
--- a/docker/Dockerfile_xDiT
+++ b/docker/Dockerfile_xDiT
@@ -29,7 +29,7 @@ RUN echo "source activate myenv" > ~/.bashrc
ENV PATH /opt/conda/envs/myenv/bin:$PATH
# Install PyTorch and other dependencies using conda
-RUN conda install pytorch==2.1.1 torchvision==0.16.1 torchaudio==2.1.1 pytorch-cuda=11.8 -c pytorch -c nvidia
+RUN conda install pytorch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0 pytorch-cuda=11.8 -c pytorch -c nvidia
COPY ./requirements_xdit.txt /tmp/requirements_xdit.txt
RUN pip install --no-cache-dir -r /tmp/requirements_xdit.txt