Open forresti opened 4 months ago
Try the following. It worked for me.
# update the path and hugging face API key
export WORKSPACE_DIR=/your/workspace/dir
export LD_LIBRARY_PATH=/usr/local/cuda/lib64/
cd $WORKSPACE_DIR/repos
git clone https://github.com/OpenTexture/Paint3D.git
cd $WORKSPACE_DIR/repos/Paint3D/
conda create -y -n paint3d python=3.8.5
conda activate paint3d
export LD_LIBRARY_PATH=/usr/local/cuda/lib64/
pip3 install torch==2.0.0 torchvision==0.15.1 torchaudio==2.0.1 --index-url https://download.pytorch.org/whl/cu118
pip3 install kaolin==0.14.0 -f https://nvidia-kaolin.s3.us-east-2.amazonaws.com/torch-2.0.0_cu118.html
pip3 install albumentations==1.3.0
pip3 install opencv-python==4.6.0.66
pip3 install imageio==2.9.0
pip3 install imageio-ffmpeg==0.4.2
pip3 install pytorch-lightning==1.4.2
pip3 install omegaconf==2.1.1
pip3 install test-tube>=0.7.5
pip3 install streamlit==1.12.1
pip3 install einops==0.3.0
pip3 install transformers==4.27.1
pip3 install webdataset==0.2.5
pip3 install kornia==0.6
pip3 install open_clip_torch==2.0.2
pip3 install invisible-watermark>=0.1.5
pip3 install streamlit-drawable-canvas==0.8.0
pip3 install torchmetrics==0.6.0
pip3 install diffusers==0.25.0
pip3 install accelerate==0.29.2
pip3 install loguru==0.7.2
pip3 install trimesh==3.20.2
pip3 install xatlas==0.0.7
pip3 install "huggingface_hub[cli]"
python3 -c "from huggingface_hub.hf_api import HfFolder; HfFolder.save_token('Your hugging face api key')"
python pipeline_paint3d_stage1.py --sd_config controlnet/config/depth_based_inpaint_template.yaml --render_config paint3d/config/train_config_paint3d.py --mesh_path demo/objs/Suzanne_monkey/Suzanne_monkey.obj --outdir outputs/stage1
python pipeline_paint3d_stage2.py --sd_config controlnet/config/UV_based_inpaint_template.yaml --render_config paint3d/config/train_config_paint3d.py --mesh_path demo/objs/Suzanne_monkey/Suzanne_monkey.obj --texture_path outputs/stage1/res-0/albedo.png --outdir outputs/stage2
python pipeline_UV_only.py --sd_config controlnet/config/UV_gen_template.yaml --render_config paint3d/config/train_config_paint3d.py --mesh_path demo/objs/teapot/scene.obj --outdir outputs/test_teapot
python pipeline_paint3d_stage1.py --sd_config controlnet/config/depth_based_inpaint_template.yaml --render_config paint3d/config/train_config_paint3d.py --mesh_path demo/objs/Suzanne_monkey/Suzanne_monkey.obj --prompt " " --ip_adapter_image_path demo/objs/Suzanne_monkey/img_prompt.png --outdir outputs/img_stage1
python pipeline_paint3d_stage2.py --sd_config controlnet/config/UV_based_inpaint_template.yaml --render_config paint3d/config/train_config_paint3d.py --mesh_path demo/objs/Suzanne_monkey/Suzanne_monkey.obj --texture_path outputs/img_stage1/res-0/albedo.png --prompt " " --ip_adapter_image_path demo/objs/Suzanne_monkey/img_prompt.png --outdir outputs/img_stage2
conda deactivate
On Linux, I am trying to follow your exact recipe with:
It fails with the following error:
Any suggestions on this? Or, are there any tips on how to get the right version of pytorch, compiled with the right version of cuda?