Spaces:
Running
on
Zero
Running
on
Zero
Delete folder ./gradio_cache with huggingface_hub
Browse files- gradio_cache/0/input.png +0 -0
- gradio_cache/0/rembg.png +0 -0
- gradio_cache/0/textured_mesh.glb +0 -3
- gradio_cache/0/textured_mesh.html +0 -40
- gradio_cache/0/white_mesh.glb +0 -0
- gradio_cache/0/white_mesh.html +0 -57
- gradio_cache/1/input.png +0 -0
- gradio_cache/1/rembg.png +0 -0
- gradio_cache/1/white_mesh.glb +0 -0
- gradio_cache/1/white_mesh.html +0 -57
- gradio_cache/2/input.png +0 -0
- gradio_cache/2/rembg.png +0 -0
- gradio_cache/2/white_mesh.glb +0 -0
- gradio_cache/2/white_mesh.html +0 -57
- gradio_cache/3/input.png +0 -0
- gradio_cache/3/rembg.png +0 -0
- gradio_cache/3/textured_mesh.glb +0 -3
- gradio_cache/3/textured_mesh.html +0 -40
- gradio_cache/3/white_mesh.glb +0 -0
- gradio_cache/3/white_mesh.html +0 -57
- gradio_cache/4/input.png +0 -0
- gradio_cache/4/rembg.png +0 -0
- gradio_cache/4/textured_mesh.glb +0 -3
- gradio_cache/4/textured_mesh.html +0 -40
- gradio_cache/4/white_mesh.glb +0 -0
- gradio_cache/4/white_mesh.html +0 -57
- gradio_cache/5/input.png +0 -0
- gradio_cache/5/rembg.png +0 -0
- gradio_cache/5/textured_mesh.glb +0 -3
- gradio_cache/5/textured_mesh.html +0 -40
- gradio_cache/5/white_mesh.glb +0 -0
- gradio_cache/5/white_mesh.html +0 -57
gradio_cache/0/input.png
DELETED
Binary file (420 kB)
|
|
gradio_cache/0/rembg.png
DELETED
Binary file (546 kB)
|
|
gradio_cache/0/textured_mesh.glb
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:e264d411d95bf5b967418ca0bf185a22897d2d3c172d169830269b9d4813bcb4
|
3 |
-
size 2531000
|
|
|
|
|
|
|
|
gradio_cache/0/textured_mesh.html
DELETED
@@ -1,40 +0,0 @@
|
|
1 |
-
<!DOCTYPE html>
|
2 |
-
<html>
|
3 |
-
|
4 |
-
<head>
|
5 |
-
<!-- Import the component -->
|
6 |
-
<script src="https://ajax.googleapis.com/ajax/libs/model-viewer/3.1.1/model-viewer.min.js" type="module"></script>
|
7 |
-
|
8 |
-
<style>
|
9 |
-
body {
|
10 |
-
margin: 0;
|
11 |
-
font-family: Arial, sans-serif;
|
12 |
-
}
|
13 |
-
|
14 |
-
.centered-container {
|
15 |
-
display: flex;
|
16 |
-
justify-content: center;
|
17 |
-
align-items: center;
|
18 |
-
border-radius: 8px;
|
19 |
-
border-color: #e5e7eb;
|
20 |
-
border-style: solid;
|
21 |
-
border-width: 1px;
|
22 |
-
}
|
23 |
-
</style>
|
24 |
-
</head>
|
25 |
-
|
26 |
-
<body>
|
27 |
-
<div class="centered-container">
|
28 |
-
|
29 |
-
<div class="column is-mobile is-centered">
|
30 |
-
<model-viewer style="height: 586px; width: 700px;" rotation-per-second="10deg" id="modelViewer"
|
31 |
-
src="./textured_mesh.glb/" disable-tap
|
32 |
-
environment-image="neutral" auto-rotate camera-target="0m 0m 0m" orientation="0deg 0deg 170deg" shadow-intensity=".9"
|
33 |
-
ar auto-rotate camera-controls>
|
34 |
-
</model-viewer>
|
35 |
-
</div>
|
36 |
-
|
37 |
-
</div>
|
38 |
-
</body>
|
39 |
-
|
40 |
-
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gradio_cache/0/white_mesh.glb
DELETED
Binary file (723 kB)
|
|
gradio_cache/0/white_mesh.html
DELETED
@@ -1,57 +0,0 @@
|
|
1 |
-
<!DOCTYPE html>
|
2 |
-
<html>
|
3 |
-
|
4 |
-
<head>
|
5 |
-
<!-- Import the component -->
|
6 |
-
<script src="https://ajax.googleapis.com/ajax/libs/model-viewer/3.1.1/model-viewer.min.js" type="module"></script>
|
7 |
-
|
8 |
-
<script>
|
9 |
-
document.addEventListener('DOMContentLoaded', () => {
|
10 |
-
const modelViewers = document.querySelectorAll('model-viewer');
|
11 |
-
|
12 |
-
modelViewers.forEach(modelViewer => {
|
13 |
-
modelViewer.addEventListener('load', (event) => {
|
14 |
-
const [material] = modelViewer.model.materials;
|
15 |
-
let color = [43, 44, 46, 255];
|
16 |
-
color = color.map(x => x / 255);
|
17 |
-
material.pbrMetallicRoughness.setMetallicFactor(0.1); // 完全金属
|
18 |
-
material.pbrMetallicRoughness.setRoughnessFactor(0.7); // 低粗糙度
|
19 |
-
material.pbrMetallicRoughness.setBaseColorFactor(color); // CornflowerBlue in RGB
|
20 |
-
});
|
21 |
-
});
|
22 |
-
});
|
23 |
-
</script>
|
24 |
-
|
25 |
-
<style>
|
26 |
-
body {
|
27 |
-
margin: 0;
|
28 |
-
font-family: Arial, sans-serif;
|
29 |
-
}
|
30 |
-
|
31 |
-
.centered-container {
|
32 |
-
display: flex;
|
33 |
-
justify-content: center;
|
34 |
-
align-items: center;
|
35 |
-
border-radius: 8px;
|
36 |
-
border-color: #e5e7eb;
|
37 |
-
border-style: solid;
|
38 |
-
border-width: 1px;
|
39 |
-
}
|
40 |
-
</style>
|
41 |
-
</head>
|
42 |
-
|
43 |
-
<body>
|
44 |
-
<div class="centered-container">
|
45 |
-
|
46 |
-
<div class="column is-mobile is-centered">
|
47 |
-
<model-viewer style="height: 586px; width: 700px;" rotation-per-second="10deg" id="modelViewer"
|
48 |
-
src="./white_mesh.glb/" disable-tap
|
49 |
-
environment-image="neutral" auto-rotate camera-target="0m 0m 0m" orientation="0deg 0deg 170deg" shadow-intensity=".9"
|
50 |
-
ar auto-rotate camera-controls>
|
51 |
-
</model-viewer>
|
52 |
-
</div>
|
53 |
-
|
54 |
-
</div>
|
55 |
-
</body>
|
56 |
-
|
57 |
-
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gradio_cache/1/input.png
DELETED
Binary file (794 kB)
|
|
gradio_cache/1/rembg.png
DELETED
Binary file (717 kB)
|
|
gradio_cache/1/white_mesh.glb
DELETED
Binary file (721 kB)
|
|
gradio_cache/1/white_mesh.html
DELETED
@@ -1,57 +0,0 @@
|
|
1 |
-
<!DOCTYPE html>
|
2 |
-
<html>
|
3 |
-
|
4 |
-
<head>
|
5 |
-
<!-- Import the component -->
|
6 |
-
<script src="https://ajax.googleapis.com/ajax/libs/model-viewer/3.1.1/model-viewer.min.js" type="module"></script>
|
7 |
-
|
8 |
-
<script>
|
9 |
-
document.addEventListener('DOMContentLoaded', () => {
|
10 |
-
const modelViewers = document.querySelectorAll('model-viewer');
|
11 |
-
|
12 |
-
modelViewers.forEach(modelViewer => {
|
13 |
-
modelViewer.addEventListener('load', (event) => {
|
14 |
-
const [material] = modelViewer.model.materials;
|
15 |
-
let color = [43, 44, 46, 255];
|
16 |
-
color = color.map(x => x / 255);
|
17 |
-
material.pbrMetallicRoughness.setMetallicFactor(0.1); // 完全金属
|
18 |
-
material.pbrMetallicRoughness.setRoughnessFactor(0.7); // 低粗糙度
|
19 |
-
material.pbrMetallicRoughness.setBaseColorFactor(color); // CornflowerBlue in RGB
|
20 |
-
});
|
21 |
-
});
|
22 |
-
});
|
23 |
-
</script>
|
24 |
-
|
25 |
-
<style>
|
26 |
-
body {
|
27 |
-
margin: 0;
|
28 |
-
font-family: Arial, sans-serif;
|
29 |
-
}
|
30 |
-
|
31 |
-
.centered-container {
|
32 |
-
display: flex;
|
33 |
-
justify-content: center;
|
34 |
-
align-items: center;
|
35 |
-
border-radius: 8px;
|
36 |
-
border-color: #e5e7eb;
|
37 |
-
border-style: solid;
|
38 |
-
border-width: 1px;
|
39 |
-
}
|
40 |
-
</style>
|
41 |
-
</head>
|
42 |
-
|
43 |
-
<body>
|
44 |
-
<div class="centered-container">
|
45 |
-
|
46 |
-
<div class="column is-mobile is-centered">
|
47 |
-
<model-viewer style="height: 586px; width: 700px;" rotation-per-second="10deg" id="modelViewer"
|
48 |
-
src="./white_mesh.glb/" disable-tap
|
49 |
-
environment-image="neutral" auto-rotate camera-target="0m 0m 0m" orientation="0deg 0deg 170deg" shadow-intensity=".9"
|
50 |
-
ar auto-rotate camera-controls>
|
51 |
-
</model-viewer>
|
52 |
-
</div>
|
53 |
-
|
54 |
-
</div>
|
55 |
-
</body>
|
56 |
-
|
57 |
-
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gradio_cache/2/input.png
DELETED
Binary file (742 kB)
|
|
gradio_cache/2/rembg.png
DELETED
Binary file (629 kB)
|
|
gradio_cache/2/white_mesh.glb
DELETED
Binary file (721 kB)
|
|
gradio_cache/2/white_mesh.html
DELETED
@@ -1,57 +0,0 @@
|
|
1 |
-
<!DOCTYPE html>
|
2 |
-
<html>
|
3 |
-
|
4 |
-
<head>
|
5 |
-
<!-- Import the component -->
|
6 |
-
<script src="https://ajax.googleapis.com/ajax/libs/model-viewer/3.1.1/model-viewer.min.js" type="module"></script>
|
7 |
-
|
8 |
-
<script>
|
9 |
-
document.addEventListener('DOMContentLoaded', () => {
|
10 |
-
const modelViewers = document.querySelectorAll('model-viewer');
|
11 |
-
|
12 |
-
modelViewers.forEach(modelViewer => {
|
13 |
-
modelViewer.addEventListener('load', (event) => {
|
14 |
-
const [material] = modelViewer.model.materials;
|
15 |
-
let color = [43, 44, 46, 255];
|
16 |
-
color = color.map(x => x / 255);
|
17 |
-
material.pbrMetallicRoughness.setMetallicFactor(0.1); // 完全金属
|
18 |
-
material.pbrMetallicRoughness.setRoughnessFactor(0.7); // 低粗糙度
|
19 |
-
material.pbrMetallicRoughness.setBaseColorFactor(color); // CornflowerBlue in RGB
|
20 |
-
});
|
21 |
-
});
|
22 |
-
});
|
23 |
-
</script>
|
24 |
-
|
25 |
-
<style>
|
26 |
-
body {
|
27 |
-
margin: 0;
|
28 |
-
font-family: Arial, sans-serif;
|
29 |
-
}
|
30 |
-
|
31 |
-
.centered-container {
|
32 |
-
display: flex;
|
33 |
-
justify-content: center;
|
34 |
-
align-items: center;
|
35 |
-
border-radius: 8px;
|
36 |
-
border-color: #e5e7eb;
|
37 |
-
border-style: solid;
|
38 |
-
border-width: 1px;
|
39 |
-
}
|
40 |
-
</style>
|
41 |
-
</head>
|
42 |
-
|
43 |
-
<body>
|
44 |
-
<div class="centered-container">
|
45 |
-
|
46 |
-
<div class="column is-mobile is-centered">
|
47 |
-
<model-viewer style="height: 586px; width: 700px;" rotation-per-second="10deg" id="modelViewer"
|
48 |
-
src="./white_mesh.glb/" disable-tap
|
49 |
-
environment-image="neutral" auto-rotate camera-target="0m 0m 0m" orientation="0deg 0deg 170deg" shadow-intensity=".9"
|
50 |
-
ar auto-rotate camera-controls>
|
51 |
-
</model-viewer>
|
52 |
-
</div>
|
53 |
-
|
54 |
-
</div>
|
55 |
-
</body>
|
56 |
-
|
57 |
-
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gradio_cache/3/input.png
DELETED
Binary file (677 kB)
|
|
gradio_cache/3/rembg.png
DELETED
Binary file (553 kB)
|
|
gradio_cache/3/textured_mesh.glb
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:543f7425255ccd099285df7d54ffa62115be445d040b50bb9eaa52cde33e1b58
|
3 |
-
size 2489976
|
|
|
|
|
|
|
|
gradio_cache/3/textured_mesh.html
DELETED
@@ -1,40 +0,0 @@
|
|
1 |
-
<!DOCTYPE html>
|
2 |
-
<html>
|
3 |
-
|
4 |
-
<head>
|
5 |
-
<!-- Import the component -->
|
6 |
-
<script src="https://ajax.googleapis.com/ajax/libs/model-viewer/3.1.1/model-viewer.min.js" type="module"></script>
|
7 |
-
|
8 |
-
<style>
|
9 |
-
body {
|
10 |
-
margin: 0;
|
11 |
-
font-family: Arial, sans-serif;
|
12 |
-
}
|
13 |
-
|
14 |
-
.centered-container {
|
15 |
-
display: flex;
|
16 |
-
justify-content: center;
|
17 |
-
align-items: center;
|
18 |
-
border-radius: 8px;
|
19 |
-
border-color: #e5e7eb;
|
20 |
-
border-style: solid;
|
21 |
-
border-width: 1px;
|
22 |
-
}
|
23 |
-
</style>
|
24 |
-
</head>
|
25 |
-
|
26 |
-
<body>
|
27 |
-
<div class="centered-container">
|
28 |
-
|
29 |
-
<div class="column is-mobile is-centered">
|
30 |
-
<model-viewer style="height: 586px; width: 700px;" rotation-per-second="10deg" id="modelViewer"
|
31 |
-
src="./textured_mesh.glb/" disable-tap
|
32 |
-
environment-image="neutral" auto-rotate camera-target="0m 0m 0m" orientation="0deg 0deg 170deg" shadow-intensity=".9"
|
33 |
-
ar auto-rotate camera-controls>
|
34 |
-
</model-viewer>
|
35 |
-
</div>
|
36 |
-
|
37 |
-
</div>
|
38 |
-
</body>
|
39 |
-
|
40 |
-
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gradio_cache/3/white_mesh.glb
DELETED
Binary file (716 kB)
|
|
gradio_cache/3/white_mesh.html
DELETED
@@ -1,57 +0,0 @@
|
|
1 |
-
<!DOCTYPE html>
|
2 |
-
<html>
|
3 |
-
|
4 |
-
<head>
|
5 |
-
<!-- Import the component -->
|
6 |
-
<script src="https://ajax.googleapis.com/ajax/libs/model-viewer/3.1.1/model-viewer.min.js" type="module"></script>
|
7 |
-
|
8 |
-
<script>
|
9 |
-
document.addEventListener('DOMContentLoaded', () => {
|
10 |
-
const modelViewers = document.querySelectorAll('model-viewer');
|
11 |
-
|
12 |
-
modelViewers.forEach(modelViewer => {
|
13 |
-
modelViewer.addEventListener('load', (event) => {
|
14 |
-
const [material] = modelViewer.model.materials;
|
15 |
-
let color = [43, 44, 46, 255];
|
16 |
-
color = color.map(x => x / 255);
|
17 |
-
material.pbrMetallicRoughness.setMetallicFactor(0.1); // 完全金属
|
18 |
-
material.pbrMetallicRoughness.setRoughnessFactor(0.7); // 低粗糙度
|
19 |
-
material.pbrMetallicRoughness.setBaseColorFactor(color); // CornflowerBlue in RGB
|
20 |
-
});
|
21 |
-
});
|
22 |
-
});
|
23 |
-
</script>
|
24 |
-
|
25 |
-
<style>
|
26 |
-
body {
|
27 |
-
margin: 0;
|
28 |
-
font-family: Arial, sans-serif;
|
29 |
-
}
|
30 |
-
|
31 |
-
.centered-container {
|
32 |
-
display: flex;
|
33 |
-
justify-content: center;
|
34 |
-
align-items: center;
|
35 |
-
border-radius: 8px;
|
36 |
-
border-color: #e5e7eb;
|
37 |
-
border-style: solid;
|
38 |
-
border-width: 1px;
|
39 |
-
}
|
40 |
-
</style>
|
41 |
-
</head>
|
42 |
-
|
43 |
-
<body>
|
44 |
-
<div class="centered-container">
|
45 |
-
|
46 |
-
<div class="column is-mobile is-centered">
|
47 |
-
<model-viewer style="height: 586px; width: 700px;" rotation-per-second="10deg" id="modelViewer"
|
48 |
-
src="./white_mesh.glb/" disable-tap
|
49 |
-
environment-image="neutral" auto-rotate camera-target="0m 0m 0m" orientation="0deg 0deg 170deg" shadow-intensity=".9"
|
50 |
-
ar auto-rotate camera-controls>
|
51 |
-
</model-viewer>
|
52 |
-
</div>
|
53 |
-
|
54 |
-
</div>
|
55 |
-
</body>
|
56 |
-
|
57 |
-
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gradio_cache/4/input.png
DELETED
Binary file (794 kB)
|
|
gradio_cache/4/rembg.png
DELETED
Binary file (717 kB)
|
|
gradio_cache/4/textured_mesh.glb
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:8936d1a13f8388a410e83bfd42fdc2a580c4f8d82c3bb40e6bbc3cf0bbb9017b
|
3 |
-
size 2230620
|
|
|
|
|
|
|
|
gradio_cache/4/textured_mesh.html
DELETED
@@ -1,40 +0,0 @@
|
|
1 |
-
<!DOCTYPE html>
|
2 |
-
<html>
|
3 |
-
|
4 |
-
<head>
|
5 |
-
<!-- Import the component -->
|
6 |
-
<script src="https://ajax.googleapis.com/ajax/libs/model-viewer/3.1.1/model-viewer.min.js" type="module"></script>
|
7 |
-
|
8 |
-
<style>
|
9 |
-
body {
|
10 |
-
margin: 0;
|
11 |
-
font-family: Arial, sans-serif;
|
12 |
-
}
|
13 |
-
|
14 |
-
.centered-container {
|
15 |
-
display: flex;
|
16 |
-
justify-content: center;
|
17 |
-
align-items: center;
|
18 |
-
border-radius: 8px;
|
19 |
-
border-color: #e5e7eb;
|
20 |
-
border-style: solid;
|
21 |
-
border-width: 1px;
|
22 |
-
}
|
23 |
-
</style>
|
24 |
-
</head>
|
25 |
-
|
26 |
-
<body>
|
27 |
-
<div class="centered-container">
|
28 |
-
|
29 |
-
<div class="column is-mobile is-centered">
|
30 |
-
<model-viewer style="height: 586px; width: 700px;" rotation-per-second="10deg" id="modelViewer"
|
31 |
-
src="./textured_mesh.glb/" disable-tap
|
32 |
-
environment-image="neutral" auto-rotate camera-target="0m 0m 0m" orientation="0deg 0deg 170deg" shadow-intensity=".9"
|
33 |
-
ar auto-rotate camera-controls>
|
34 |
-
</model-viewer>
|
35 |
-
</div>
|
36 |
-
|
37 |
-
</div>
|
38 |
-
</body>
|
39 |
-
|
40 |
-
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gradio_cache/4/white_mesh.glb
DELETED
Binary file (721 kB)
|
|
gradio_cache/4/white_mesh.html
DELETED
@@ -1,57 +0,0 @@
|
|
1 |
-
<!DOCTYPE html>
|
2 |
-
<html>
|
3 |
-
|
4 |
-
<head>
|
5 |
-
<!-- Import the component -->
|
6 |
-
<script src="https://ajax.googleapis.com/ajax/libs/model-viewer/3.1.1/model-viewer.min.js" type="module"></script>
|
7 |
-
|
8 |
-
<script>
|
9 |
-
document.addEventListener('DOMContentLoaded', () => {
|
10 |
-
const modelViewers = document.querySelectorAll('model-viewer');
|
11 |
-
|
12 |
-
modelViewers.forEach(modelViewer => {
|
13 |
-
modelViewer.addEventListener('load', (event) => {
|
14 |
-
const [material] = modelViewer.model.materials;
|
15 |
-
let color = [43, 44, 46, 255];
|
16 |
-
color = color.map(x => x / 255);
|
17 |
-
material.pbrMetallicRoughness.setMetallicFactor(0.1); // 完全金属
|
18 |
-
material.pbrMetallicRoughness.setRoughnessFactor(0.7); // 低粗糙度
|
19 |
-
material.pbrMetallicRoughness.setBaseColorFactor(color); // CornflowerBlue in RGB
|
20 |
-
});
|
21 |
-
});
|
22 |
-
});
|
23 |
-
</script>
|
24 |
-
|
25 |
-
<style>
|
26 |
-
body {
|
27 |
-
margin: 0;
|
28 |
-
font-family: Arial, sans-serif;
|
29 |
-
}
|
30 |
-
|
31 |
-
.centered-container {
|
32 |
-
display: flex;
|
33 |
-
justify-content: center;
|
34 |
-
align-items: center;
|
35 |
-
border-radius: 8px;
|
36 |
-
border-color: #e5e7eb;
|
37 |
-
border-style: solid;
|
38 |
-
border-width: 1px;
|
39 |
-
}
|
40 |
-
</style>
|
41 |
-
</head>
|
42 |
-
|
43 |
-
<body>
|
44 |
-
<div class="centered-container">
|
45 |
-
|
46 |
-
<div class="column is-mobile is-centered">
|
47 |
-
<model-viewer style="height: 586px; width: 700px;" rotation-per-second="10deg" id="modelViewer"
|
48 |
-
src="./white_mesh.glb/" disable-tap
|
49 |
-
environment-image="neutral" auto-rotate camera-target="0m 0m 0m" orientation="0deg 0deg 170deg" shadow-intensity=".9"
|
50 |
-
ar auto-rotate camera-controls>
|
51 |
-
</model-viewer>
|
52 |
-
</div>
|
53 |
-
|
54 |
-
</div>
|
55 |
-
</body>
|
56 |
-
|
57 |
-
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gradio_cache/5/input.png
DELETED
Binary file (794 kB)
|
|
gradio_cache/5/rembg.png
DELETED
Binary file (717 kB)
|
|
gradio_cache/5/textured_mesh.glb
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:acc1b80df3fa7ab7b865660a34b6f57db16c1e9e1806a8cbb766d7a75bab125b
|
3 |
-
size 2230664
|
|
|
|
|
|
|
|
gradio_cache/5/textured_mesh.html
DELETED
@@ -1,40 +0,0 @@
|
|
1 |
-
<!DOCTYPE html>
|
2 |
-
<html>
|
3 |
-
|
4 |
-
<head>
|
5 |
-
<!-- Import the component -->
|
6 |
-
<script src="https://ajax.googleapis.com/ajax/libs/model-viewer/3.1.1/model-viewer.min.js" type="module"></script>
|
7 |
-
|
8 |
-
<style>
|
9 |
-
body {
|
10 |
-
margin: 0;
|
11 |
-
font-family: Arial, sans-serif;
|
12 |
-
}
|
13 |
-
|
14 |
-
.centered-container {
|
15 |
-
display: flex;
|
16 |
-
justify-content: center;
|
17 |
-
align-items: center;
|
18 |
-
border-radius: 8px;
|
19 |
-
border-color: #e5e7eb;
|
20 |
-
border-style: solid;
|
21 |
-
border-width: 1px;
|
22 |
-
}
|
23 |
-
</style>
|
24 |
-
</head>
|
25 |
-
|
26 |
-
<body>
|
27 |
-
<div class="centered-container">
|
28 |
-
|
29 |
-
<div class="column is-mobile is-centered">
|
30 |
-
<model-viewer style="height: 586px; width: 700px;" rotation-per-second="10deg" id="modelViewer"
|
31 |
-
src="./textured_mesh.glb/" disable-tap
|
32 |
-
environment-image="neutral" auto-rotate camera-target="0m 0m 0m" orientation="0deg 0deg 170deg" shadow-intensity=".9"
|
33 |
-
ar auto-rotate camera-controls>
|
34 |
-
</model-viewer>
|
35 |
-
</div>
|
36 |
-
|
37 |
-
</div>
|
38 |
-
</body>
|
39 |
-
|
40 |
-
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gradio_cache/5/white_mesh.glb
DELETED
Binary file (721 kB)
|
|
gradio_cache/5/white_mesh.html
DELETED
@@ -1,57 +0,0 @@
|
|
1 |
-
<!DOCTYPE html>
|
2 |
-
<html>
|
3 |
-
|
4 |
-
<head>
|
5 |
-
<!-- Import the component -->
|
6 |
-
<script src="https://ajax.googleapis.com/ajax/libs/model-viewer/3.1.1/model-viewer.min.js" type="module"></script>
|
7 |
-
|
8 |
-
<script>
|
9 |
-
document.addEventListener('DOMContentLoaded', () => {
|
10 |
-
const modelViewers = document.querySelectorAll('model-viewer');
|
11 |
-
|
12 |
-
modelViewers.forEach(modelViewer => {
|
13 |
-
modelViewer.addEventListener('load', (event) => {
|
14 |
-
const [material] = modelViewer.model.materials;
|
15 |
-
let color = [43, 44, 46, 255];
|
16 |
-
color = color.map(x => x / 255);
|
17 |
-
material.pbrMetallicRoughness.setMetallicFactor(0.1); // 完全金属
|
18 |
-
material.pbrMetallicRoughness.setRoughnessFactor(0.7); // 低粗糙度
|
19 |
-
material.pbrMetallicRoughness.setBaseColorFactor(color); // CornflowerBlue in RGB
|
20 |
-
});
|
21 |
-
});
|
22 |
-
});
|
23 |
-
</script>
|
24 |
-
|
25 |
-
<style>
|
26 |
-
body {
|
27 |
-
margin: 0;
|
28 |
-
font-family: Arial, sans-serif;
|
29 |
-
}
|
30 |
-
|
31 |
-
.centered-container {
|
32 |
-
display: flex;
|
33 |
-
justify-content: center;
|
34 |
-
align-items: center;
|
35 |
-
border-radius: 8px;
|
36 |
-
border-color: #e5e7eb;
|
37 |
-
border-style: solid;
|
38 |
-
border-width: 1px;
|
39 |
-
}
|
40 |
-
</style>
|
41 |
-
</head>
|
42 |
-
|
43 |
-
<body>
|
44 |
-
<div class="centered-container">
|
45 |
-
|
46 |
-
<div class="column is-mobile is-centered">
|
47 |
-
<model-viewer style="height: 586px; width: 700px;" rotation-per-second="10deg" id="modelViewer"
|
48 |
-
src="./white_mesh.glb/" disable-tap
|
49 |
-
environment-image="neutral" auto-rotate camera-target="0m 0m 0m" orientation="0deg 0deg 170deg" shadow-intensity=".9"
|
50 |
-
ar auto-rotate camera-controls>
|
51 |
-
</model-viewer>
|
52 |
-
</div>
|
53 |
-
|
54 |
-
</div>
|
55 |
-
</body>
|
56 |
-
|
57 |
-
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|