Spaces:
Sleeping
Sleeping
Update README.
Browse files
README.md
CHANGED
|
@@ -9,14 +9,10 @@ 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).**
|
| 13 |
|
| 14 |
- 🔥 CityDreamer is a unbounded 3D city generator.
|
| 15 |
- 🤗 Try CityDreamer to generate photolistic 3D cities.
|
| 16 |
- ⚠️ Due to the limited computational resources at Hugging Face, this demo only generates **A SINGLE IMAGE** based on the New York City layout. If you wish to experience more comprehensive functionality, please visit the demo on [GitHub](https://github.com/hzxie/city-dreamer?tab=readme-ov-file#iterative-demo-%EF%B8%8F).
|
| 17 |
-
|
| 18 |
-
<p style="color:red">
|
| 19 |
-
❕IMPORTANT NOTE: The HF team and we are currently working on migrating to ZeroGPU, so the demo may be temporarily unavailable.<br>
|
| 20 |
-
Track the debugging progress on <a href="https://huggingface.co/spaces/zero-gpu-explorers/README/discussions/111">the community of zero-gpu-explorers</a>.
|
| 21 |
-
</p>
|
| 22 |
-
|
|
|
|
| 9 |
pinned: false
|
| 10 |
---
|
| 11 |
|
| 12 |
+
<img src="https://www.infinitescript.com/projects/CityDreamer/CityDreamer-Logo.png" style="height: 150px; margin: 0 auto">
|
| 13 |
+
|
| 14 |
Official demo for **[CityDreamer: Compositional Generative Model of Unbounded 3D Cities](https://github.com/hzxie/city-dreamer) (CVPR 2024).**
|
| 15 |
|
| 16 |
- 🔥 CityDreamer is a unbounded 3D city generator.
|
| 17 |
- 🤗 Try CityDreamer to generate photolistic 3D cities.
|
| 18 |
- ⚠️ Due to the limited computational resources at Hugging Face, this demo only generates **A SINGLE IMAGE** based on the New York City layout. If you wish to experience more comprehensive functionality, please visit the demo on [GitHub](https://github.com/hzxie/city-dreamer?tab=readme-ov-file#iterative-demo-%EF%B8%8F).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app.py
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
# @Author: Haozhe Xie
|
| 5 |
# @Date: 2024-03-02 16:30:00
|
| 6 |
# @Last Modified by: Haozhe Xie
|
| 7 |
-
# @Last Modified at: 2024-09-
|
| 8 |
# @Email: [email protected]
|
| 9 |
|
| 10 |
import gradio as gr
|
|
@@ -36,6 +36,7 @@ import torch
|
|
| 36 |
if os.environ.get("SPACES_ZERO_GPU") is not None:
|
| 37 |
import spaces
|
| 38 |
else:
|
|
|
|
| 39 |
class spaces:
|
| 40 |
@staticmethod
|
| 41 |
def GPU(func):
|
|
@@ -45,6 +46,7 @@ else:
|
|
| 45 |
|
| 46 |
return wrapper
|
| 47 |
|
|
|
|
| 48 |
# Fix: ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed
|
| 49 |
ssl._create_default_https_context = ssl._create_unverified_context
|
| 50 |
# Import CityDreamer modules
|
|
@@ -151,7 +153,7 @@ def get_generated_city(
|
|
| 151 |
|
| 152 |
|
| 153 |
def main(debug):
|
| 154 |
-
title = "
|
| 155 |
with open("README.md", "r") as f:
|
| 156 |
markdown = f.read()
|
| 157 |
desc = markdown[markdown.rfind("---") + 3 :]
|
|
|
|
| 4 |
# @Author: Haozhe Xie
|
| 5 |
# @Date: 2024-03-02 16:30:00
|
| 6 |
# @Last Modified by: Haozhe Xie
|
| 7 |
+
# @Last Modified at: 2024-09-25 09:09:53
|
| 8 |
# @Email: [email protected]
|
| 9 |
|
| 10 |
import gradio as gr
|
|
|
|
| 36 |
if os.environ.get("SPACES_ZERO_GPU") is not None:
|
| 37 |
import spaces
|
| 38 |
else:
|
| 39 |
+
|
| 40 |
class spaces:
|
| 41 |
@staticmethod
|
| 42 |
def GPU(func):
|
|
|
|
| 46 |
|
| 47 |
return wrapper
|
| 48 |
|
| 49 |
+
|
| 50 |
# Fix: ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed
|
| 51 |
ssl._create_default_https_context = ssl._create_unverified_context
|
| 52 |
# Import CityDreamer modules
|
|
|
|
| 153 |
|
| 154 |
|
| 155 |
def main(debug):
|
| 156 |
+
title = "Compositional Generative Model of Unbounded 3D Cities"
|
| 157 |
with open("README.md", "r") as f:
|
| 158 |
markdown = f.read()
|
| 159 |
desc = markdown[markdown.rfind("---") + 3 :]
|