hzxie commited on
Commit
f40b380
1 Parent(s): 5d31697

Fix some bugs.

Browse files
.gitattributes CHANGED
@@ -20,7 +20,6 @@
20
  *.pickle filter=lfs diff=lfs merge=lfs -text
21
  *.pkl filter=lfs diff=lfs merge=lfs -text
22
  *.pt filter=lfs diff=lfs merge=lfs -text
23
- *.pth filter=lfs diff=lfs merge=lfs -text
24
  *.rar filter=lfs diff=lfs merge=lfs -text
25
  *.safetensors filter=lfs diff=lfs merge=lfs -text
26
  saved_model/**/* filter=lfs diff=lfs merge=lfs -text
@@ -34,3 +33,5 @@ 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
  *.png filter=lfs diff=lfs merge=lfs -text
 
 
 
20
  *.pickle filter=lfs diff=lfs merge=lfs -text
21
  *.pkl filter=lfs diff=lfs merge=lfs -text
22
  *.pt filter=lfs diff=lfs merge=lfs -text
 
23
  *.rar filter=lfs diff=lfs merge=lfs -text
24
  *.safetensors filter=lfs diff=lfs merge=lfs -text
25
  saved_model/**/* filter=lfs diff=lfs merge=lfs -text
 
33
  *.zst filter=lfs diff=lfs merge=lfs -text
34
  *tfevents* filter=lfs diff=lfs merge=lfs -text
35
  *.png filter=lfs diff=lfs merge=lfs -text
36
+ *.pth filter=lfs diff=lfs merge=lfs -text
37
+ *.whl filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -7,7 +7,6 @@ sdk: gradio
7
  sdk_version: 4.44.0
8
  app_file: app.py
9
  pinned: false
10
- license: other
11
  ---
12
 
13
  Official demo for **[CityDreamer: Compositional Generative Model of Unbounded 3D Cities](https://github.com/hzxie/city-dreamer) (CVPR 2024).**
 
7
  sdk_version: 4.44.0
8
  app_file: app.py
9
  pinned: false
 
10
  ---
11
 
12
  Official demo for **[CityDreamer: Compositional Generative Model of Unbounded 3D Cities](https://github.com/hzxie/city-dreamer) (CVPR 2024).**
app.py CHANGED
@@ -27,15 +27,23 @@ sys.path.append(os.path.join(os.path.dirname(__file__), "citydreamer"))
27
 
28
 
29
  def setup_runtime_env():
30
- logging.info("CUDA version is %s" % subprocess.check_output(["nvcc", "--version"]))
 
 
 
 
31
  logging.info("GCC version is %s" % subprocess.check_output(["g++", "--version"]))
32
- # Compile CUDA extensions
33
- ext_dir = os.path.join(os.path.dirname(__file__), "citydreamer", "extensions")
34
  for e in os.listdir(ext_dir):
35
- if not os.path.isdir(os.path.join(ext_dir, e)):
36
- continue
37
 
38
- subprocess.call(["pip", "install", "."], cwd=os.path.join(ext_dir, e))
 
 
 
 
39
 
40
 
41
  def get_models(file_name):
 
27
 
28
 
29
  def setup_runtime_env():
30
+ try:
31
+ logging.info("CUDA version is %s" % subprocess.check_output(["nvcc", "--version"]))
32
+ except Exception as ex:
33
+ logging.exception(ex)
34
+
35
  logging.info("GCC version is %s" % subprocess.check_output(["g++", "--version"]))
36
+ # Instsall Pre-compiled CUDA extensions
37
+ ext_dir = os.path.join(os.path.dirname(__file__), "wheels")
38
  for e in os.listdir(ext_dir):
39
+ if not os.path.join(ext_dir, e).endswith(".whl"):
40
+ subprocess.call(["pip", "install", os.path.join(ext_dir, e)])
41
 
42
+ # Compile CUDA extensions
43
+ # ext_dir = os.path.join(os.path.dirname(__file__), "citydreamer", "extensions")
44
+ # for e in os.listdir(ext_dir):
45
+ # if os.path.isdir(os.path.join(ext_dir, e)):
46
+ # subprocess.call(["pip", "install", "."], cwd=os.path.join(ext_dir, e))
47
 
48
 
49
  def get_models(file_name):
requirements.txt CHANGED
@@ -1,10 +1,9 @@
1
  --extra-index-url https://download.pytorch.org/whl/cu118
2
- torch==2.4.1
3
  torchvision
4
 
5
  easydict
6
  gradio
7
- numpy
8
  opencv-python
9
  pillow
10
-
 
1
  --extra-index-url https://download.pytorch.org/whl/cu118
2
+ torch==2.2.2
3
  torchvision
4
 
5
  easydict
6
  gradio
7
+ numpy<2.0.0
8
  opencv-python
9
  pillow
 
wheels/extrude_tensor-1.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:58b87e506ae559cb11e6cb1375bdc6c119f02f3d9560b015b46d3561048b3fd2
3
+ size 237463
wheels/grid_encoder-1.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:8b271befcb1ed3603cf0d62d0599ad7288a70886c98a66b350fdf4a64529ed3f
3
+ size 2375579
wheels/voxrender-1.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:e65240d2379e48f9e4a541b146ad9b3f66bc0b6549c0732bfc2aa63bb7abc7eb
3
+ size 593162