River-Zhang / SIFU

[CVPR 2024 Highlight] Official repository for paper "SIFU: Side-view Conditioned Implicit Function for Real-world Usable Clothed Human Reconstruction"
https://river-zhang.github.io/SIFU-projectpage/
MIT License
206 stars 9 forks source link

Solution to being stuck in "Solving environment" #32

Open YujiaLin-523 opened 3 months ago

YujiaLin-523 commented 3 months ago

Thanks to @levnikolaevich, here is his solution which was tested on Ubuntu 20.04:

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 'numpy._import_array' to disable if you are certain you don't need it)."

pip install -r requirements.txt

Originally posted by @levnikolaevich in https://github.com/River-Zhang/SIFU/issues/20#issuecomment-2067735376