Spaces:
dylanebert
/
Running on Zero

dylanebert HF staff commited on
Commit
1803df3
1 Parent(s): 0a8057f

install from wheel

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip 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
 
 
33
  *.zip 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
+ *.whl filter=lfs diff=lfs merge=lfs -text
.gitmodules DELETED
@@ -1,3 +0,0 @@
1
- [submodule "diff-gaussian-rasterization"]
2
- path = diff-gaussian-rasterization
3
- url = https://github.com/ashawkey/diff-gaussian-rasterization.git
 
 
 
 
app.py CHANGED
@@ -1,20 +1,17 @@
1
  import os
2
-
 
3
  import gradio as gr
4
  import spaces
5
  import torch
6
  from diffusers import DiffusionPipeline
7
  from gradio_client import Client, file
8
 
9
- try:
10
- import diff_gaussian_rasterization # noqa: F401
11
- except ImportError:
12
-
13
- @spaces.GPU
14
- def install_diff_gaussian_rasterization():
15
- os.system("pip install ./diff-gaussian-rasterization")
16
-
17
- install_diff_gaussian_rasterization()
18
 
19
  TMP_DIR = "/tmp"
20
  os.makedirs(TMP_DIR, exist_ok=True)
 
1
  import os
2
+ import shlex
3
+ import subprocess
4
  import gradio as gr
5
  import spaces
6
  import torch
7
  from diffusers import DiffusionPipeline
8
  from gradio_client import Client, file
9
 
10
+ subprocess.run(
11
+ shlex.split(
12
+ "pip install wheel/diff_gaussian_rasterization-0.0.0-cp310-cp310-linux_x86_64.whl"
13
+ )
14
+ )
 
 
 
 
15
 
16
  TMP_DIR = "/tmp"
17
  os.makedirs(TMP_DIR, exist_ok=True)
diff-gaussian-rasterization DELETED
@@ -1 +0,0 @@
1
- Subproject commit d986da0d4cf2dfeb43b9a379b6e9fa0a7f3f7eea
 
 
requirements.txt CHANGED
@@ -31,3 +31,4 @@ torch == 2.2.0
31
  torchvision == 0.17.0
32
  torchaudio == 2.2.0
33
  xformers
 
 
31
  torchvision == 0.17.0
32
  torchaudio == 2.2.0
33
  xformers
34
+ ushlex
wheel/diff_gaussian_rasterization-0.0.0-cp310-cp310-linux_x86_64.whl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:957eac9a321f881c46e8d8a9206bd5f253b64685f5cc35f07d943b908ef2263f
3
+ size 3134028