Closed levnikolaevich closed 5 months ago
Hi @levnikolaevich , I'm sorry that the environment setting wasted you too much time. I'll examine this as soon as possible. Here is the content in environment.yml when I use conda env export > environment.yml
:
environment.zip
@River-Zhang , thank you very much!!
@River-Zhang, hello! This is what ultimately worked on a clean Ubuntu 20.04. It might be useful if you decide to update the instructions:
sudo apt-get update && \
sudo apt-get upgrade -y && \
sudo apt-get install unzip libeigen3-dev ffmpeg build-essential nvidia-cuda-toolkit
mkdir -p ~/miniconda3 && \
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh && \
bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3 && \
rm -rf ~/miniconda3/miniconda.sh && \
~/miniconda3/bin/conda init bash && \
~/miniconda3/bin/conda init zsh
========= close and re-open current shell =========
git clone https://github.com/River-Zhang/SIFU.git
cd SIFU
-->add "mkl=2024.0.0" in the "environment.yaml" https://github.com/pytorch/pytorch/issues/123097
conda env create -f environment.yaml
conda activate sifu
changes in requirements.txt:
--> delete "pymeshlab" (because there is "pymeshlab==2022.2.post4")
--> change git+https://github.com/YuliangXiu/rembg.git@hf
--> git+https://github.com/YuliangXiu/rembg.git
(because there is no longer a tag "hf")
--> add open3d==0.17.0
mediapipe
einops
gdown
--> set numpy==1.24.4
because of "ImportError: numpy.core.multiarray failed to import (auto-generated because you didn't call 'numpy.import_array()' after cimporting numpy; use '
pip install -r requirements.txt
And to be honest, I would specify more clearly that you need to run the fetch_hps.sh
and fetch_data.sh
scripts to download the necessary data. As a newcomer, I honestly didn't understand this right away =))
Thank you in advance!
Thanks very much for your valuable suggestions! We'll update that as soon as possible! Thanks very much!
@levnikolaevich The installation has been updated. Thanks sincerely again!
@River-Zhang , thank you very much! good luck!
Good afternoon!
I tried to set up the environment on a clean Ubuntu 20.04 (wsl Windows 11), following the instructions:
git clone https://github.com/River-Zhang/SIFU.git
sudo apt-get install libeigen3-dev ffmpeg
cd SIFU
conda env create -f environment.yaml
conda activate sifu
pip install -r requirements.txt
However, I encountered several missing dependencies, conflicts, and other issues. For example, I needed to first install build essentials with:
sudo apt-get install build-essential
And for the mlt package, it is necessary to install version 2024.0.0, otherwise, an error occurs https://github.com/pytorch/pytorch/issues/123097.
Eventually, I forked the repository https://github.com/levnikolaevich/SIFU and tried to fix the packages, but I gave up when I encountered an error trying to execute the command:
python -m apps.infer -cfg ./configs/sifu.yaml -gpu 0 -in_dir ./examples -out_dir ./results -loop_smpl 100 -loop_cloth 200 -hps_type pixie
The error message was:
=============
Could you please commit an
environment.yml
file created with the command in an environment where everything works for you?conda env export > environment.yml
Then, you can remove the
requirements.txt
file, which currently lists the packagepymeshlab
twice.Thank you in advance, and congratulations on your acceptance to CVPR 2024!