File size: 1,574 Bytes
a6ce4c7 7118d20 8fc5ab1 b2c004c 8fc5ab1 b515eec d32c51d ce03a18 62cf6c3 ce03a18 b515eec a6ce4c7 b515eec 8fc5ab1 b515eec 602bd91 a6ce4c7 dbecd1e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
import gradio as gr
_TITLE = '''
# Direct3D-S2 Gigascale 3D Generation Made Easy with Spatial Sparse Attention
'''
_DESCRIPTION = '''
### [GitHub](https://github.com/DreamTechAI/Direct3D-S2) | [Arxiv](https://arxiv.org/pdf/2505.17412) | [Project Page](https://www.neural4d.com/research/direct3d-s2)
'''
_CITE_ = r"""
---
📝 **Citation**
If you find our work useful for your research or applications, please cite using this bibtex:
```bibtex
@article{wu2025direct3ds2gigascale3dgeneration,
title={Direct3D-S2: Gigascale 3D Generation Made Easy with Spatial Sparse Attention},
author={Shuang Wu and Youtian Lin and Feihu Zhang and Yifei Zeng and Yikang Yang and Yajie Bao and Jiachen Qian and Siyu Zhu and Philip Torr and Xun Cao and Yao Yao},
journal={arXiv preprint arXiv:2505.17412},
year={2025}
}
```
📧 **Contact**
If you have any questions, feel free to contact us at <b>wushuang9811@outlook.com</b>.
"""
html = '''
<!DOCTYPE html>
<html>
<body>
<iframe id="myIframe" width="100%" height="1000" frameborder="0" allow="fullscreen"></iframe>
</body>
</html>
'''
script = '''
function createGradio() {
const urls = [
"https://api.zmkj.site/",
"https://api1.zmkj.site/",
"https://api2.zmkj.site/",
"https://api3.zmkj.site/",
];
const randomIndex = Math.floor(Math.random() * urls.length);
document.getElementById("myIframe").src = urls[randomIndex];
}
'''
with gr.Blocks(js=script) as demo:
gr.Markdown(_TITLE)
gr.Markdown(_DESCRIPTION)
gr.HTML(html)
gr.Markdown(_CITE_)
demo.launch() |