Lakonik commited on
Commit
7be19c0
1 Parent(s): 0a7b4aa
.idea/.gitignore ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ # Default ignored files
2
+ /shelf/
3
+ /workspace.xml
4
+ # Editor-based HTTP Client requests
5
+ /httpRequests/
6
+ # Datasource local storage ignored files
7
+ /dataSources/
8
+ /dataSources.local.xml
.idea/deployment.xml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="PublishConfigData" exclude=".svn;.cvs;.idea;.DS_Store;.hg;*.hprof;*.pyc;*.pth;.vscode;__pycache__;*.so;*.o;*.egg-info;.eggs;work_dirs;build;*.so.*;*.o.*" remoteFilesAllowedToDisappearOnAutoupload="false" />
4
+ </project>
.idea/grm_hf.iml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="PYTHON_MODULE" version="4">
3
+ <component name="NewModuleRootManager">
4
+ <content url="file://$MODULE_DIR$" />
5
+ <orderEntry type="inheritedJdk" />
6
+ <orderEntry type="sourceFolder" forTests="false" />
7
+ </component>
8
+ </module>
.idea/inspectionProfiles/Project_Default.xml ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <component name="InspectionProjectProfileManager">
2
+ <profile version="1.0">
3
+ <option name="myName" value="Project Default" />
4
+ <inspection_tool class="DuplicatedCode" enabled="true" level="WEAK WARNING" enabled_by_default="true">
5
+ <Languages>
6
+ <language minSize="2596" name="Python" />
7
+ </Languages>
8
+ </inspection_tool>
9
+ <inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
10
+ <inspection_tool class="PyPackageRequirementsInspection" enabled="true" level="WARNING" enabled_by_default="true">
11
+ <option name="ignoredPackages">
12
+ <value>
13
+ <list size="34">
14
+ <item index="0" class="java.lang.String" itemvalue="checkpoint" />
15
+ <item index="1" class="java.lang.String" itemvalue="einops" />
16
+ <item index="2" class="java.lang.String" itemvalue="apex" />
17
+ <item index="3" class="java.lang.String" itemvalue="scipy" />
18
+ <item index="4" class="java.lang.String" itemvalue="six" />
19
+ <item index="5" class="java.lang.String" itemvalue="PyMCubes" />
20
+ <item index="6" class="java.lang.String" itemvalue="packaging" />
21
+ <item index="7" class="java.lang.String" itemvalue="setuptools" />
22
+ <item index="8" class="java.lang.String" itemvalue="numpy" />
23
+ <item index="9" class="java.lang.String" itemvalue="lpips" />
24
+ <item index="10" class="java.lang.String" itemvalue="trimesh" />
25
+ <item index="11" class="java.lang.String" itemvalue="tqdm" />
26
+ <item index="12" class="java.lang.String" itemvalue="tensorboard" />
27
+ <item index="13" class="java.lang.String" itemvalue="matplotlib" />
28
+ <item index="14" class="java.lang.String" itemvalue="dearpygui" />
29
+ <item index="15" class="java.lang.String" itemvalue="opencv_python" />
30
+ <item index="16" class="java.lang.String" itemvalue="timm" />
31
+ <item index="17" class="java.lang.String" itemvalue="pytorch_lightning" />
32
+ <item index="18" class="java.lang.String" itemvalue="rich" />
33
+ <item index="19" class="java.lang.String" itemvalue="videoio" />
34
+ <item index="20" class="java.lang.String" itemvalue="triton" />
35
+ <item index="21" class="java.lang.String" itemvalue="torch_redstone" />
36
+ <item index="22" class="java.lang.String" itemvalue="torchsde" />
37
+ <item index="23" class="java.lang.String" itemvalue="kornia" />
38
+ <item index="24" class="java.lang.String" itemvalue="yacs" />
39
+ <item index="25" class="java.lang.String" itemvalue="transformers" />
40
+ <item index="26" class="java.lang.String" itemvalue="gdown" />
41
+ <item index="27" class="java.lang.String" itemvalue="diffusers" />
42
+ <item index="28" class="java.lang.String" itemvalue="gradio" />
43
+ <item index="29" class="java.lang.String" itemvalue="xatlas" />
44
+ <item index="30" class="java.lang.String" itemvalue="MiniballCpp" />
45
+ <item index="31" class="java.lang.String" itemvalue="pygltflib" />
46
+ <item index="32" class="java.lang.String" itemvalue="open_clip_torch" />
47
+ <item index="33" class="java.lang.String" itemvalue="fast-simplification" />
48
+ </list>
49
+ </value>
50
+ </option>
51
+ </inspection_tool>
52
+ <inspection_tool class="SpellCheckingInspection" enabled="false" level="TYPO" enabled_by_default="false">
53
+ <option name="processCode" value="true" />
54
+ <option name="processLiterals" value="true" />
55
+ <option name="processComments" value="true" />
56
+ </inspection_tool>
57
+ </profile>
58
+ </component>
.idea/inspectionProfiles/profiles_settings.xml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ <component name="InspectionProjectProfileManager">
2
+ <settings>
3
+ <option name="USE_PROJECT_PROFILE" value="false" />
4
+ <version value="1.0" />
5
+ </settings>
6
+ </component>
.idea/misc.xml ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="Black">
4
+ <option name="sdkName" value="Python 3.10 (mvedit_hf)" />
5
+ </component>
6
+ <component name="ProjectRootManager" version="2" project-jdk-name="Python 3.10 (mvedit_hf)" project-jdk-type="Python SDK" />
7
+ </project>
.idea/modules.xml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/grm_hf.iml" filepath="$PROJECT_DIR$/.idea/grm_hf.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
+ </component>
6
+ </project>
README.md CHANGED
@@ -8,4 +8,4 @@ pinned: false
8
  license: mit
9
  ---
10
 
11
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
8
  license: mit
9
  ---
10
 
11
+ Official demo of the paper [GRM: Large Gaussian Reconstruction Model for Efficient 3D Reconstruction and Generation](https://arxiv.org/abs/2403.14621)
index.html CHANGED
@@ -1,19 +1,62 @@
1
- <!doctype html>
2
  <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  </html>
 
1
+ <!DOCTYPE html>
2
  <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <!-- Meta tags for social media banners, these should be filled in appropriatly as they are your "business card" -->
6
+ <!-- Replace the content tag with appropriate information -->
7
+ <meta property="og:title" content="GRM Live Demo"/>
8
+ <meta name="twitter:title" content="GRM Live Demo">
9
+ <meta name="viewport" content="width=device-width, initial-scale=1">
10
+ <title>GRM Live Demo</title>
11
+ <link rel="icon" type="image/x-icon" href="static/images/favicon.ico">
12
+ <style>
13
+ #maintenanceMessage, #loadingMessage {
14
+ display: none;
15
+ position: absolute;
16
+ top: 0;
17
+ left: 0;
18
+ width: 100%;
19
+ height: 100%;
20
+ background: white;
21
+ color: black;
22
+ display: flex;
23
+ justify-content: center;
24
+ align-items: center;
25
+ text-align: center;
26
+ }
27
+ </style>
28
+ <script>
29
+ let iframeLoadedFlag = false;
30
+
31
+ function iframeLoaded() {
32
+ iframeLoadedFlag = true;
33
+ document.getElementById('maintenanceMessage').style.display = 'none';
34
+ document.getElementById('loadingMessage').style.display = 'none';
35
+ }
36
+
37
+ // Check after a certain time if the iframe has loaded
38
+ setTimeout(() => {
39
+ if (!iframeLoadedFlag) {
40
+ // If the iframe hasn't flagged as loaded, assume it's down and show the message
41
+ document.getElementById('maintenanceMessage').style.display = 'flex';
42
+ document.getElementById('siteIframe').style.display = 'none';
43
+ document.getElementById('loadingMessage').style.display = 'none';
44
+ }
45
+ }, 10000); // 10 seconds; adjust as necessary
46
+ </script>
47
+ </head>
48
+ <body style="margin:0;padding:0px;overflow:hidden">
49
+ <iframe id="siteIframe"
50
+ src="https://grm.hanshengchen.com"
51
+ frameborder="0"
52
+ style="overflow:hidden;height:100vh;width:100%;"
53
+ onload="iframeLoaded()">
54
+ </iframe>
55
+ <div id="loadingMessage">
56
+ <p>Loading...</p>
57
+ </div>
58
+ <div id="maintenanceMessage" style="display: none">
59
+ <p>The site is currently under maintenance. Please check back later.</p>
60
+ </div>
61
+ </body>
62
  </html>
static/images/favicon.ico ADDED
style.css DELETED
@@ -1,28 +0,0 @@
1
- body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
4
- }
5
-
6
- h1 {
7
- font-size: 16px;
8
- margin-top: 0;
9
- }
10
-
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
16
- }
17
-
18
- .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
24
- }
25
-
26
- .card p:last-child {
27
- margin-bottom: 0;
28
- }