Spaces:
Running
Running
Commit
·
3028fc0
1
Parent(s):
ed35d05
added dreamfusion scenes
Browse files- viewer/src/lib/data/models.json +1 -0
- viewer/src/lib/data/scenes.json +56 -0
- viewer/src/routes/viewer/[slug]/+page.svelte +15 -2
- viewer/static/thumbnails/dreamfusion-chick.png +0 -0
- viewer/static/thumbnails/dreamfusion-corgi.png +0 -0
- viewer/static/thumbnails/dreamfusion-crab.png +0 -0
- viewer/static/thumbnails/dreamfusion-eagle.png +0 -0
- viewer/static/thumbnails/dreamfusion-ghost.png +0 -0
- viewer/static/thumbnails/dreamfusion-lemur.png +0 -0
- viewer/static/thumbnails/dreamfusion-pig.png +0 -0
- viewer/static/thumbnails/dreamfusion-sweaterfrog.png +0 -0
viewer/src/lib/data/models.json
CHANGED
@@ -12,6 +12,7 @@
|
|
12 |
"title": "DreamFusion",
|
13 |
"paper": "https://arxiv.org/abs/2209.14988",
|
14 |
"project": "https://dreamfusion3d.github.io/index.html",
|
|
|
15 |
"spaces": []
|
16 |
},
|
17 |
{
|
|
|
12 |
"title": "DreamFusion",
|
13 |
"paper": "https://arxiv.org/abs/2209.14988",
|
14 |
"project": "https://dreamfusion3d.github.io/index.html",
|
15 |
+
"code": "https://github.com/ashawkey/stable-dreamfusion",
|
16 |
"spaces": []
|
17 |
},
|
18 |
{
|
viewer/src/lib/data/scenes.json
CHANGED
@@ -40,5 +40,61 @@
|
|
40 |
"model": "sync-dreamer",
|
41 |
"title": "train",
|
42 |
"url": "https://huggingface.co/datasets/dylanebert/igf-results/resolve/main/sync-dreamer/train.glb"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
}
|
44 |
]
|
|
|
40 |
"model": "sync-dreamer",
|
41 |
"title": "train",
|
42 |
"url": "https://huggingface.co/datasets/dylanebert/igf-results/resolve/main/sync-dreamer/train.glb"
|
43 |
+
},
|
44 |
+
{
|
45 |
+
"slug": "dreamfusion-sweaterfrog",
|
46 |
+
"model": "dreamfusion",
|
47 |
+
"title": "sweater frog",
|
48 |
+
"url": "https://dreamfusion3d.github.io/assets/meshes2/sweaterfrog_1step.glb",
|
49 |
+
"prompt": "frog wearing a sweater"
|
50 |
+
},
|
51 |
+
{
|
52 |
+
"slug": "dreamfusion-chick",
|
53 |
+
"model": "dreamfusion",
|
54 |
+
"title": "chick",
|
55 |
+
"url": "https://dreamfusion3d.github.io/assets/meshes2/44855521_sept18_hero16_047a_DSLR_photo_of_an_eggshell_broken_in_two_with_an_adorable_chick_standing_next_to_it_1step.glb",
|
56 |
+
"prompt": "eggshell broken in two with an adorable chick standing next to it"
|
57 |
+
},
|
58 |
+
{
|
59 |
+
"slug": "dreamfusion-ghost",
|
60 |
+
"model": "dreamfusion",
|
61 |
+
"title": "ghost",
|
62 |
+
"url": "https://dreamfusion3d.github.io/assets/meshes2/44934035_sept18_hero19_113a_DSLR_photo_of_a_ghost_eating_a_hamburger_1step.glb",
|
63 |
+
"prompt": "ghost eating a hamburger"
|
64 |
+
},
|
65 |
+
{
|
66 |
+
"slug": "dreamfusion-pig",
|
67 |
+
"model": "dreamfusion",
|
68 |
+
"title": "pig",
|
69 |
+
"url": "https://dreamfusion3d.github.io/assets/meshes2/44844973_sept18_hero14_076a_pig_wearing_a_backpack_1step.glb",
|
70 |
+
"prompt": "a pig wearing a backback"
|
71 |
+
},
|
72 |
+
{
|
73 |
+
"slug": "dreamfusion-eagle",
|
74 |
+
"model": "dreamfusion",
|
75 |
+
"title": "eagle",
|
76 |
+
"url": "https://dreamfusion3d.github.io/assets/meshes2/44853505_sept18_hero15_145a_bald_eagle_carved_out_of_wood_1step.glb",
|
77 |
+
"prompt": "a bald eagle carved out of wood"
|
78 |
+
},
|
79 |
+
{
|
80 |
+
"slug": "dreamfusion-crab",
|
81 |
+
"model": "dreamfusion",
|
82 |
+
"title": "crab",
|
83 |
+
"url": "https://dreamfusion3d.github.io/assets/meshes2/44930695_sept18_hero18_103a_crab,_low_poly_1step.glb",
|
84 |
+
"prompt": "a crab, low poly"
|
85 |
+
},
|
86 |
+
{
|
87 |
+
"slug": "dreamfusion-lemur",
|
88 |
+
"model": "dreamfusion",
|
89 |
+
"title": "lemur",
|
90 |
+
"url": "https://dreamfusion3d.github.io/assets/meshes2/44853505_sept18_hero15_124a_lemur_taking_notes_in_a_journal_1step.glb",
|
91 |
+
"prompt": "a lemur taking notes in a journal"
|
92 |
+
},
|
93 |
+
{
|
94 |
+
"slug": "dreamfusion-corgi",
|
95 |
+
"model": "dreamfusion",
|
96 |
+
"title": "corgi",
|
97 |
+
"url": "https://dreamfusion3d.github.io/assets/meshes2/44960400_sept18_hero20peter_117a_plush_toy_of_a_corgi_nurse_1step.glb",
|
98 |
+
"prompt": "a plush toy of a corgi nurse"
|
99 |
}
|
100 |
]
|
viewer/src/routes/viewer/[slug]/+page.svelte
CHANGED
@@ -9,6 +9,7 @@
|
|
9 |
title: string;
|
10 |
model: string;
|
11 |
url: string;
|
|
|
12 |
};
|
13 |
model: {
|
14 |
title: string;
|
@@ -115,11 +116,15 @@
|
|
115 |
camera!.panningSensibility = 10000 / camera!.radius;
|
116 |
});
|
117 |
|
118 |
-
const light = new BABYLON.HemisphericLight("hemi", new BABYLON.Vector3(
|
119 |
-
light.intensity =
|
120 |
light.diffuse = new BABYLON.Color3(1, 1, 1);
|
121 |
light.groundColor = new BABYLON.Color3(0.3, 0.3, 0.3);
|
122 |
|
|
|
|
|
|
|
|
|
123 |
const standardSize = 10;
|
124 |
let scaleFactor = 1;
|
125 |
let center = BABYLON.Vector3.Zero();
|
@@ -220,6 +225,14 @@
|
|
220 |
{/if}
|
221 |
</div>
|
222 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
223 |
<div class="section">
|
224 |
<div class="section-title">Stats</div>
|
225 |
<div class="info-panel">
|
|
|
9 |
title: string;
|
10 |
model: string;
|
11 |
url: string;
|
12 |
+
prompt: string;
|
13 |
};
|
14 |
model: {
|
15 |
title: string;
|
|
|
116 |
camera!.panningSensibility = 10000 / camera!.radius;
|
117 |
});
|
118 |
|
119 |
+
const light = new BABYLON.HemisphericLight("hemi", new BABYLON.Vector3(0, 1, 0), scene);
|
120 |
+
light.intensity = 1;
|
121 |
light.diffuse = new BABYLON.Color3(1, 1, 1);
|
122 |
light.groundColor = new BABYLON.Color3(0.3, 0.3, 0.3);
|
123 |
|
124 |
+
const sun = new BABYLON.DirectionalLight("sun", new BABYLON.Vector3(-.5, -1, -.5), scene);
|
125 |
+
sun.intensity = 2;
|
126 |
+
sun.diffuse = new BABYLON.Color3(1, 1, 1);
|
127 |
+
|
128 |
const standardSize = 10;
|
129 |
let scaleFactor = 1;
|
130 |
let center = BABYLON.Vector3.Zero();
|
|
|
225 |
{/if}
|
226 |
</div>
|
227 |
</div>
|
228 |
+
{#if data.scene.prompt}
|
229 |
+
<div class="section">
|
230 |
+
<div class="section-title">Prompt</div>
|
231 |
+
<div class="info-panel">
|
232 |
+
<div class="section-label">{data.scene.prompt}</div>
|
233 |
+
</div>
|
234 |
+
</div>
|
235 |
+
{/if}
|
236 |
<div class="section">
|
237 |
<div class="section-title">Stats</div>
|
238 |
<div class="info-panel">
|
viewer/static/thumbnails/dreamfusion-chick.png
ADDED
viewer/static/thumbnails/dreamfusion-corgi.png
ADDED
viewer/static/thumbnails/dreamfusion-crab.png
ADDED
viewer/static/thumbnails/dreamfusion-eagle.png
ADDED
viewer/static/thumbnails/dreamfusion-ghost.png
ADDED
viewer/static/thumbnails/dreamfusion-lemur.png
ADDED
viewer/static/thumbnails/dreamfusion-pig.png
ADDED
viewer/static/thumbnails/dreamfusion-sweaterfrog.png
ADDED