Spaces:
Build error
Build error
Commit
•
7c8cefe
1
Parent(s):
fa9c639
persistent wheels
Browse files- .gitattributes +0 -1
- Dockerfile +2 -2
- convert.py +1 -1
.gitattributes
CHANGED
@@ -34,4 +34,3 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
*.ply filter=lfs diff=lfs merge=lfs -text
|
37 |
-
*.whl filter=lfs diff=lfs merge=lfs -text
|
|
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
*.ply filter=lfs diff=lfs merge=lfs -text
|
|
Dockerfile
CHANGED
@@ -41,8 +41,8 @@ RUN pip install wheel
|
|
41 |
RUN pip install torch==2.1.0+cu121 torchvision==0.16.0+cu121 torchaudio==2.1.0+cu121 torchtext==0.16.0 torchdata==0.7.0 --extra-index-url https://download.pytorch.org/whl/cu121 -U
|
42 |
RUN sed -i 's/return caster.operator typename make_caster<T>::template cast_op_type<T>();/return caster;/' /home/user/.local/lib/python3.10/site-packages/torch/include/pybind11/cast.h
|
43 |
RUN pip install tyro kiui PyMCubes nerfacc trimesh pymeshlab ninja plyfile xatlas pygltflib gradio opencv-python scikit-learn
|
44 |
-
RUN pip install https://github.com/
|
45 |
-
RUN pip install https://github.com/
|
46 |
RUN pip install git+https://github.com/ashawkey/kiuikit.git
|
47 |
|
48 |
# Copy all files to the working directory
|
|
|
41 |
RUN pip install torch==2.1.0+cu121 torchvision==0.16.0+cu121 torchaudio==2.1.0+cu121 torchtext==0.16.0 torchdata==0.7.0 --extra-index-url https://download.pytorch.org/whl/cu121 -U
|
42 |
RUN sed -i 's/return caster.operator typename make_caster<T>::template cast_op_type<T>();/return caster;/' /home/user/.local/lib/python3.10/site-packages/torch/include/pybind11/cast.h
|
43 |
RUN pip install tyro kiui PyMCubes nerfacc trimesh pymeshlab ninja plyfile xatlas pygltflib gradio opencv-python scikit-learn
|
44 |
+
RUN pip install https://github.com/dylanebert/wheels/releases/download/1.0.0/diff_gaussian_rasterization-0.0.0-cp310-cp310-linux_x86_64.whl
|
45 |
+
RUN pip install https://github.com/dylanebert/wheels/releases/download/1.0.0/nvdiffrast-0.3.1-py3-none-any.whl
|
46 |
RUN pip install git+https://github.com/ashawkey/kiuikit.git
|
47 |
|
48 |
# Copy all files to the working directory
|
convert.py
CHANGED
@@ -422,7 +422,7 @@ class Converter(nn.Module):
|
|
422 |
vertices, triangles = clean_mesh(vertices, triangles, remesh=False)
|
423 |
|
424 |
rotation_matrix = np.array(
|
425 |
-
[[1, 0, 0], [0, -1, 0], [0, 0,
|
426 |
)
|
427 |
vertices = vertices @ rotation_matrix.T
|
428 |
|
|
|
422 |
vertices, triangles = clean_mesh(vertices, triangles, remesh=False)
|
423 |
|
424 |
rotation_matrix = np.array(
|
425 |
+
[[-1, 0, 0], [0, -1, 0], [0, 0, 1]], dtype=np.float32
|
426 |
)
|
427 |
vertices = vertices @ rotation_matrix.T
|
428 |
|