Spaces:
Runtime error
Runtime error
Work
commited on
Commit
•
0b6ff50
1
Parent(s):
8458acf
revert to working version for ply to glb converter and set appropriate rast flag
Browse files
Dockerfile
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
FROM
|
2 |
|
3 |
ARG DEBIAN_FRONTEND=noninteractive
|
4 |
|
@@ -10,6 +10,9 @@ COPY ./requirements.txt /code/
|
|
10 |
|
11 |
RUN apt-get update && apt-get install --no-install-recommends -y \
|
12 |
build-essential \
|
|
|
|
|
|
|
13 |
git \
|
14 |
ffmpeg \
|
15 |
# Install nvdiffrast dependencies
|
|
|
1 |
+
FROM nvidia/cuda:12.1.1-cudnn8-devel-ubuntu22.04
|
2 |
|
3 |
ARG DEBIAN_FRONTEND=noninteractive
|
4 |
|
|
|
10 |
|
11 |
RUN apt-get update && apt-get install --no-install-recommends -y \
|
12 |
build-essential \
|
13 |
+
python3.10 \
|
14 |
+
python3.10-dev \
|
15 |
+
python3-pip \
|
16 |
git \
|
17 |
ffmpeg \
|
18 |
# Install nvdiffrast dependencies
|
app.py
CHANGED
@@ -17,7 +17,7 @@ import gradio as gr
|
|
17 |
from huggingface_hub import hf_hub_download
|
18 |
ckpt_path = hf_hub_download(repo_id="ashawkey/LGM", filename="model_fp16.safetensors")
|
19 |
|
20 |
-
subprocess.run(shlex.split("pip install diff_gaussian_rasterization-0.0.0-cp310-cp310-linux_x86_64.whl"))
|
21 |
|
22 |
import kiui
|
23 |
from kiui.op import recenter
|
@@ -196,6 +196,7 @@ def process(input_image, prompt, prompt_neg='', input_elevation=0, input_num_ste
|
|
196 |
|
197 |
# load a saved ply and convert to mesh
|
198 |
opt.test_path = output_ply_path
|
|
|
199 |
|
200 |
converter = Converter(opt).cuda()
|
201 |
converter.fit_nerf()
|
|
|
17 |
from huggingface_hub import hf_hub_download
|
18 |
ckpt_path = hf_hub_download(repo_id="ashawkey/LGM", filename="model_fp16.safetensors")
|
19 |
|
20 |
+
subprocess.run(shlex.split("pip install wheel/diff_gaussian_rasterization-0.0.0-cp310-cp310-linux_x86_64.whl"))
|
21 |
|
22 |
import kiui
|
23 |
from kiui.op import recenter
|
|
|
196 |
|
197 |
# load a saved ply and convert to mesh
|
198 |
opt.test_path = output_ply_path
|
199 |
+
opt.force_cuda_rast = True # container compatability
|
200 |
|
201 |
converter = Converter(opt).cuda()
|
202 |
converter.fit_nerf()
|
diff_gaussian_rasterization-0.0.0-cp310-cp310-linux_x86_64.whl → wheel/diff_gaussian_rasterization-0.0.0-cp310-cp310-linux_x86_64.whl
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:42bf718442ba764469170abc09d99a70b7c1d891dc290f2e1247db09c95a0e88
|
3 |
+
size 3021758
|