Spaces:
Sleeping
Sleeping
Commit
·
a69c64f
1
Parent(s):
dbd2d8d
update
Browse files- Dockerfile +2 -2
- run.sh +3 -0
Dockerfile
CHANGED
|
@@ -29,8 +29,8 @@ USER user
|
|
| 29 |
|
| 30 |
RUN conda create -n gradio-user python=3.11
|
| 31 |
RUN conda run -n gradio-user pip install --upgrade pip
|
| 32 |
-
RUN conda install -n gradio-user pytorch3d=0.7.7 -c pytorch3d -c conda-forge
|
| 33 |
-
RUN conda install -n gradio-user -c conda-forge open-clip-torch pytorch-lightning
|
| 34 |
RUN conda run -n gradio-user pip install diffusers transformers accelerate xformers controlnet-aux gradio trimesh xatlas scikit-learn opencv-python omegaconf
|
| 35 |
|
| 36 |
# Set home to the user's home directory
|
|
|
|
| 29 |
|
| 30 |
RUN conda create -n gradio-user python=3.11
|
| 31 |
RUN conda run -n gradio-user pip install --upgrade pip
|
| 32 |
+
# RUN conda install -n gradio-user pytorch3d=0.7.7 -c pytorch3d -c conda-forge
|
| 33 |
+
# RUN conda install -n gradio-user -c conda-forge open-clip-torch pytorch-lightning
|
| 34 |
RUN conda run -n gradio-user pip install diffusers transformers accelerate xformers controlnet-aux gradio trimesh xatlas scikit-learn opencv-python omegaconf
|
| 35 |
|
| 36 |
# Set home to the user's home directory
|
run.sh
CHANGED
|
@@ -4,6 +4,9 @@ CONDA_ENV=$(head -1 /code/environment.yml | cut -d" " -f2)
|
|
| 4 |
eval "$(conda shell.bash hook)"
|
| 5 |
conda activate gradio-user
|
| 6 |
|
|
|
|
|
|
|
|
|
|
| 7 |
# Start app.py
|
| 8 |
echo "Starting app.py..."
|
| 9 |
export OMP_NUM_THREADS=4 # default is a wrong value: 7500m
|
|
|
|
| 4 |
eval "$(conda shell.bash hook)"
|
| 5 |
conda activate gradio-user
|
| 6 |
|
| 7 |
+
conda install -n gradio-user pytorch3d=0.7.7 -c pytorch3d -c conda-forge
|
| 8 |
+
conda install -n gradio-user -c conda-forge open-clip-torch pytorch-lightning
|
| 9 |
+
|
| 10 |
# Start app.py
|
| 11 |
echo "Starting app.py..."
|
| 12 |
export OMP_NUM_THREADS=4 # default is a wrong value: 7500m
|