Browse Source
Merge pull request #18 from JustinPack/main
Changed the Readme to reflect updated installation steps and commente…
main
Jiale Xu
11 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
14 additions and
2 deletions
-
README.md
-
app.py
|
|
@ -27,17 +27,29 @@ https://github.com/TencentARC/InstantMesh/assets/20635237/dab3511e-e7c6-4c0b-bab |
|
|
|
|
|
|
|
# ⚙️ Dependencies and Installation |
|
|
|
|
|
|
|
We recommend using `Python>=3.10`, `PyTorch>=2.1.0`, and `CUDA=12.1`. |
|
|
|
We recommend using `Python>=3.10`, `PyTorch>=2.1.0`, and `CUDA>=12.1`. |
|
|
|
```bash |
|
|
|
conda create --name instantmesh python=3.10 |
|
|
|
conda activate instantmesh |
|
|
|
pip install -U pip |
|
|
|
|
|
|
|
# Ensure Ninja is installed |
|
|
|
conda install Ninja |
|
|
|
|
|
|
|
# Install the correct version of CUDA |
|
|
|
conda install cuda -c nvidia/label/cuda-12.1.0 |
|
|
|
|
|
|
|
# Install PyTorch and xformers |
|
|
|
# You may need to install another xformers version if you use a different PyTorch version |
|
|
|
pip install torch==2.1.0 torchvision==0.16.0 torchaudio==2.1.0 --index-url https://download.pytorch.org/whl/cu121 |
|
|
|
pip install xformers==0.0.22.post7 |
|
|
|
|
|
|
|
# For Linux users: Install Triton |
|
|
|
pip install triton |
|
|
|
|
|
|
|
# For Windows users: Use the prebuilt version of Triton provided here: |
|
|
|
pip install https://huggingface.co/r4ziel/xformers_pre_built/resolve/main/triton-2.0.0-cp310-cp310-win_amd64.whlpip install https://huggingface.co/r4ziel/xformers_pre_built/resolve/main/triton-2.0.0-cp310-cp310-win_amd64.whl |
|
|
|
|
|
|
|
# Install other requirements |
|
|
|
pip install -r requirements.txt |
|
|
|
``` |
|
|
|
|
|
@ -318,7 +318,7 @@ with gr.Blocks() as demo: |
|
|
|
with gr.Row(): |
|
|
|
output_model_obj = gr.Model3D( |
|
|
|
label="Output Model (OBJ Format)", |
|
|
|
width=768, |
|
|
|
# width=768, |
|
|
|
interactive=False, |
|
|
|
) |
|
|
|
with gr.Row(): |
|
|
|